A beam of neutrons, with all with their magnetic moments aligned to the right, enters a Mach–Zehnder interferometer coming from the left-to-right. The neutrons can exit the interferometer into a right port, where a detector of neutrons with right magnetic moment is located, or upwards into a dark port with no detector (see picture).