An interactive journey through Shor's Algorithm. Compare classical sequential period-finding against quantum Fourier diffraction.
Adjust sliders to get exactly 3 peaks on the screen.
The double-slit experiment demonstrates that waves passing through two close apertures interfere with each other, creating an alternating pattern of constructive (peaks) and destructive (troughs) intensity.
As the waves propagate from Slit 1 ($S_1$) and Slit 2 ($S_2$) to a point on the screen, they travel different distances $\Delta L = |S_1 P| - |S_2 P|$.
If this path difference is an integer multiple of the wavelength ($\Delta L = n\lambda$), the waves arrive in phase, interfering constructively to form a bright peak.
If the path difference is a half-integer multiple ($\Delta L = (n + 1/2)\lambda$), the waves arrive $180^\circ$ out of phase, interfering destructively to cancel each other out.
At a screen angle $\theta$, the intensity $I(\theta)$ is proportional to:
where $d$ is the distance between slits and $\lambda$ is the wavelength.
Slide the spacing and wavelength values to observe how the physical layout shifts the phase matching conditions, causing the screen diffraction grid to compress or expand.