🔎 WHICH-PATH ACTIVE
Arm A (phase shifter) Arm B (reference) D0 bright port D1 dark port
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.
Accumulated interference pattern — P(D0) vs φ no which-path   which-path on   0 photons

Single-Photon Mach-Zehnder Interferometer

Fire individual photons through a simulated Mach-Zehnder interferometer and watch detection events accumulate at two output ports as you sweep the relative phase between its arms. With no which-path detector, the accumulated click fraction traces a smooth interference fringe — each photon interferes with itself. Switch on the which-path detector in arm A and the same experiment's accumulated pattern collapses to a flat 50/50 split, demonstrating that extracting which-path information destroys the interference.