Home▸Physics & Mechanics▸BB84 Quantum Key Distribution: Photons, Eavesdropping & Latency (2D)

BB84 Quantum Key Distribution: Photons, Eavesdropping & Latency (2D)

2D BB84 quantum-key-distribution lab: polarized photons travel Alice to Bob over a lossy fiber, an eavesdropper's intercept-resend attack is visible as a rising QBER, and live stats show sifted key rate, secure key rate and round-trip latency.

Physics & Mechanics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-quantum-communication-in-a-three-dimensional-space ↗ Open standalone

This 2D companion turns "quantum communication" into the actual protocol behind it — BB84 quantum key distribution — instead of a rotating scene of unlabeled 3D props. Polarized photons stream from Alice to Bob across a lossy fiber whose attenuation and propagation delay depend on the distance you set; a channel-noise slider adds baseline dark-count errors, and an intercept-resend eavesdropper you can dial in from 0–100% shows up not as a hidden threat but as a directly measurable rise in the quantum bit error rate, driving the live Shor–Preskill secure-key-rate readout toward zero as it crosses BB84's 11% abort threshold.

⚙ Under the hood

2D BB84 quantum-key-distribution lab: polarized photons travel Alice to Bob over a lossy fiber, an eavesdropper's intercept-resend attack is visible as a rising QBER, and live stats show sifted key rate, secure key rate and round-trip latency.

quantum key distributionbb84 protocolqubiteavesdroppingquantum bit error ratefiber attenuation

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)