The embodiment of the application discloses a divider and an
optical processor, and belongs to the technical field of
optical computing. In the divider, a first optical
signal source sends a pulse optical
signal into a
waveguide loop, and the ratio of the amplitude of the pulse optical
signal to a dividend is equal to a preset ratio; a second optical
signal source sends a continuous optical signal into a second
waveguide, and the ratio of the amplitude of the continuous optical signal to a divisor is equal to the preset ratio; a coupler couples the continuous optical signal and the pulse optical signal, and the amplitude of the
coupled pulse optical signal is equal to the amplitude of the uncoupled pulse optical signal minus the amplitude of the continuous optical signal; a
detector detects the amplitude of the pulse optical signal after each
coupling; and a controller determines the number of times that the pulse optical signal after the
coupling is detected by the
detector as a quotient when receiving a target amplitude sent by the
detector and smaller than the amplitude of the continuous optical signal, and determines the product of the target amplitude and the preset ratio as a remainder. It can be seen that the application provides a divider for realizing a division operation in an optical
chip.