The invention discloses a universal linear optical all-
optical logic gate and an implement method thereof. According to the universal linear optical all-
optical logic gate, a first logic input port, asecond logic input port and an invariant input port are adopted and connected to a main
waveguide through first to third waveguides respectively, the main
waveguide is connected to an output port, and therefore an all-
optical logic gate structure is formed; the
light intensity of first excitation light, the
light intensity of second excitation light and the
light intensity of third excitation light are adjusted separately, the
phase difference from the first excitation light to the third excitation light is adjusted, optical-field
complex amplitude which is contributed by the first and secondlogic input ports and the invariant input port to the output port is controlled, and therefore seven kinds of different linear optical all-
optical logic gates are achieved on the single all-optical
logic gate structure; regarding OR-logic gates, NOT-logic gates, XOR-logic gates, XNOR-logic gates and NAND-logic gates, under the two conditions that the output sates of the linear optical all-opticallogic gates are logic '1' and logic '0', theoretically, the maximum output
signal beam
intensity ratio is infinity.