The invention relates to an all-
optical logic gate with a Michelson structure, which can be reused for realizing an
AND gate, an OR gate, an NOT gate, an
NAND gate, an
NOR gate, an XOR gate and an
XNOR gate as well as the reverse operation thereof, and also realizing a half-
adder. The all-
optical logic gate with a Michelson structure comprises two control optical signals, a synchronous optical detection
signal and an output detection
signal, wherein the two control optical signals are input into an arm (2) of symmetrical Michelson interferometers by a coupler (1); the synchronous optical detection
signal is divided into two beams of equal light to be projected into the arm (2) and an arm (3) of the Michelson interferometers and used for outputting a reflecting output opening (4) for expressing the application of the logic result and a transmitting output opening (5) of the reverse operation; the output detection signal is results of the self-
phase modulation of a detection optical signal, the intersection
phase modulation of the two control optical signals on detection light and average intersection
phase modulation on the detection light in two times of arm length and is expressed into a corresponding
logic gate relation. The all-
optical logic gate has the characteristic of self-phase modulation in the symmetrical Michelson interferometers, preferably the two arms adopt different
nonlinear optical fibers and the input arm (2) of the control optical signals adopts a high
nonlinear optical fiber.