Detector Probabilities
Visibility
V = 0: no interference
Instructions
- Adjust phase shifter to see interference
- Enable eraser to restore them
- Click "Run Photon" to see single detection
Guide single photons through beam splitters and phase shifters—add which-path detectors to erase interference, then erase the erasure
The Mach-Zehnder interferometer is a fundamental quantum optics setup that demonstrates the wave-particle duality of light and the profound connection between information and interference. A single photon enters the device, gets split into a superposition of two paths, picks up a controllable phase shift, and recombines—revealing the quantum nature of reality.
The colored ribbons represent the quantum amplitude flowing through each path. Width indicates the probability amplitude magnitude |ψ|, while color hue encodes the phase. At the first beam splitter (BS1), the photon enters a superposition—it takes both paths simultaneously. This isn't a classical split; the photon is in a genuine quantum superposition state.
Each 50-50 beam splitter implements a unitary transformation that creates equal superpositions with specific phase relationships. BS1 splits the incoming photon into |0⟩ + |1⟩ (upper and lower paths). BS2 recombines them, and depending on the relative phase accumulated, the photon emerges at detector D₀ or D₁.
The phase shifter on the lower path adds a controllable phase φ. When φ = 0, destructive interference sends all photons to D₀ (the "dark port"). When φ = π, constructive interference sends them all to D₁. At intermediate phases, you see partial probabilities at both detectors—pure quantum interference at work.
Enable the which-path detector and watch the interference vanish! When you measure which path the photon took, you collapse the superposition. The photon becomes localized to one path, and the two paths become distinguishable. Distinguishability destroys interference—this is Bohr's complementarity principle in action. You cannot simultaneously observe wave-like interference and particle-like path information.
Now enable the quantum eraser (with which-path still on). The interference returns! The eraser works by entangling the path information with an auxiliary system and then measuring that system in a basis that "erases" the which-path knowledge. Crucially, this demonstrates that it's not the physical disturbance of measurement that destroys interference—it's the information. When you erase the information, even after it was recorded, coherence is restored.
The Mach-Zehnder interferometer is more than a clever optical trick—it's a window into the heart of quantum mechanics. It shows that:
This device has been used in foundational tests of quantum mechanics, quantum cryptography protocols, and as a building block in quantum computing. Every photon that passes through obeys the same strange rules—rules that have no classical analogue but are perfectly described by the mathematics of quantum amplitudes.