Electrons or photons sent through two slits create an interference pattern — even one at a time. Each particle passes both slits simultaneously via its wavefunction and interferes with itself. Intensity: I(y) = cos²(πdy/λL)·sinc²(πay/λL). Measuring 'which path' collapses the wavefunction: the interference pattern disappears (Bohr complementarity). The simulator samples positions from |ψ|² using rejection sampling.
🚀 Simulate in the browser