PURPOSE: To form a logic arithmetic circuit by forming photoreceiving regions in the prescribed layer of a multilayer semiconductor layer formed in a high resistance substrate and light emitting regions in the other layer, and associating to connect the photoreceiving regions and the light emitting regions existing in different layers in series with each other.
CONSTITUTION: Photoreceiving regions D1, D2 are formed of semiconductor layers 2, 3, 4, 6, and a light emitting region S1 is formed of a semiconductor layer 2, semiconductor regions 7(5), 8(6), 9(5), and diffraction gratings 8(4), 10(4)A of distributed feedback type laser. When a light is not emitted to the regions D1, D2, the regions are electrically non-conductive, but when input light X1 or X2 is absorbed to the layer 3, the regions D1, D2 become conductive, a current is flowed to the region S1 to emit is a light, thereby producing an output light Y1.