The invention relates to a full-
optical logic gate (10), which can be reused to achieve opposite phase operations of an
AND gate, an OR gate, an NOT gate, an
NAND gate, an
NOR gate, an XOR gate, an
XNOR gate and combination thereof, and can also achieve a half
adder. The full-
optical logic gate comprises light input ports (2, 3) for receiving two control light signals respectively, a light input port (1) for receiving a synchronous light
clock signal, a light output port (8) for outputting the result for expressing logic application, and a light output port (9) for outputting opposite phase operation. The full-
optical logic gate is characterized by comprising a light combination device (4) and a
nonlinear optical device (7), wherein the light combination device (4) is used for combining the two control light signals to generate corresponding combined signals with a
wavelength division
multiplexer or a polarization beam combiner; and the
nonlinear optical device (7) is used for receiving the combined signals and the synchronous light
clock signal and emitting two paths of light output signals mutual in opposite phase operations. The full-optical logic function depends on the characteristic of the
nonlinear optical device, wherein the characteristic is selected so that the power of the output signals and the light power of the
clock signal are redistributed and associated through the selected logic function.