HomeOptics & LightBB84 Quantum Key Distribution — 2D Photon Channel Simulator

BB84 Quantum Key Distribution — 2D Photon Channel Simulator

Interactive 2D simulator of the BB84 quantum key distribution protocol: watch single photons travel from Alice to Bob in random polarisation bases along a flat channel view, toggle an intercept-resend eavesdropper, and read the sifted key, live QBER trend and scrollable event timeline that reveal her presence.

Optics & Light2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-physics-ext-topic-70 ↗ Open standalone

Watch the BB84 quantum key distribution protocol run photon by photon along a flat channel view: Alice fires single photons polarised in a randomly chosen basis toward Bob, who measures each one in his own random basis. Only photons where the two bases happen to match survive sifting into the shared secret key. Flip on the intercept-resend eavesdropper sitting mid-channel and watch the quantum bit error rate jump toward the textbook 25% — the disturbance her measurement necessarily introduces, and the reason BB84 lets two parties detect an eavesdropper instead of unknowingly leaking their key. A scrollable history strip and a live QBER trend sparkline let you review the whole run, not just the current moment.

⚙ Under the hood

Interactive 2D simulator of the BB84 quantum key distribution protocol: watch single photons travel from Alice to Bob in random polarisation bases along a flat channel view, toggle an intercept-resend eavesdropper, and read the sifted key, live QBER trend and scrollable event timeline that reveal her presence.

quantum cryptographyphotonicsBB84quantum opticseavesdroppingpolarisation

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

What did you find?

Add reproduction steps (optional)