Double-slit simulation
Walking Universal Library
Both simulations send the same number of electrons through two slits. Compare what changes when the apparatus records the path.
Detector off
0 hitsInterference fringes
Detector on
0 hitsBroad diffraction envelope
What does the detector change?
Each electron gives one localized hit in both settings. With the detector off, the amplitudes for the two paths can interfere. In the detector-on model, the apparatus records which slit the electron used. The two path probabilities add, washing out the fringes and leaving a broad diffraction envelope. The model assumes an ideal detector that distinguishes the paths completely.
Two ways fringes fade
A record of the path can weaken interference. Random changes in the relative phase can yield the same pattern. Compare two models, then check what a separate marker reveals.
- Fringe visibility
- 43.05%
- Port probability range
- 28.48% to 71.52%
- Phase flip rate for the same curve
- 28.48%
Test against a path chosen in advance in each of 200 balanced simulated preparations.
| Model | Expected | Simulated |
|---|---|---|
| Path record | ||
| Phase flips with an unrelated marker |
Measuring the marker adds information beyond the local fringe curve. These numbers describe the two simulated models. In a laboratory, compare with a dummy marker and check for detector bias.
Model and experimental references
These calculations use equal paths and independent, identical pure-state records. With overlap r and n records, visibility is rn. A random π phase flip with probability (1 − visibility) / 2 gives the same output curve. The check uses an optimally chosen basis on one accessible marker and scores it against the prepared path. Each run uses the same pseudorandom seed, 0x20261129.
Fringe visibility and path information · Optical path marker experiment · Collisional decoherence experiment
Download the fringe checks · Download the marker calibration