⚛️ Shor's Quantum Factorizer

An interactive journey through Shor's Algorithm. Compare classical sequential period-finding against quantum Fourier diffraction.

Double-Slit Wave Interference & Diffraction

🎯 Challenge 1: High Dispersion

Adjust sliders to get exactly 3 peaks on the screen.

Target Peaks:3
Current Peaks:1

Double-Slit Wave Interference

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.

1. Path Length Difference & Phase

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.

2. The Wave Equation

At a screen angle $\theta$, the intensity $I(\theta)$ is proportional to:

$$I(\theta) \propto \cos^2\left(\frac{\pi d \sin\theta}{\lambda}\right)$$

where $d$ is the distance between slits and $\lambda$ is the wavelength.

3. Visual Mechanics

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.