An optical integrated device includes a plurality of input optical
waveguides connected respectively to a plurality of input ports provided
on one end face of the optical integrated device, a single output optical
waveguide connected to an output port, an optical coupler for optically
coupling signal lights propagated along the plural input optical
waveguides to the single output optical waveguide, and a semiconductor
optical amplifier gate array formed from a plurality of semiconductor
optical amplifiers provided on the input optical waveguides,
respectively, and each having an electrode on the surface thereof. The
optical integrated device further includes a plurality of signal lines
formed on the surface of the optical integrated device in such a manner
as to extend from the electrodes to an end face of the optical integrated
device on which none of the input ports and the output port is provided.