To provide a system in which a configuration is simple and a switching of an optical line can be performed at a high speed. The processor is configured to receive a temperature signal from a temperature sensor indicating an operating temperature of an resonator. An insulator is then formed to cover the first gate and a portion of the substrate.