An optical processing device includes: a light source that outputs second
light having a first polarization state or a second polarization state in
synchronization with the pulse timing of the pulse of first light; a
first nonlinear medium that controls the polarization state of the first
light pulse in accordance with the polarization state of the second light
pulse, using a nonlinear effect; and a separator that outputs the first
light pulse from the first nonlinear medium selectively to a first output
path or a second output path in accordance with the polarization state
controlled by the first nonlinear medium. In this device, the first
nonlinear medium uses the nonlinear effect to compensate the level of
each first light pulse output selectively to the first output path or the
second output path by the separator, with each first light pulse
receiving the energy of the second light pulse.