Abstract
A quantum nondemolition measurement of photon number taken with a nonlinear Mach–Zehnder interferometer is analyzed. When this interferometer is excited by a coherent input, it shows a large amount of noise, caused by the self-phase modulation. We demonstrate how this noise can be suppressed by applying a squeezed vacuum to the unexcited port of the interferometer.