Home▸Optics & Light▸BB84 Quantum Key Distribution Simulator

BB84 Quantum Key Distribution Simulator

Interactive 3D simulator of the BB84 quantum key distribution protocol: send single photons in random polarisation bases from Alice to Bob, toggle an intercept-resend eavesdropper, and watch the sifted key and quantum bit error rate reveal her presence in real time.

Optics & Light3DAdvanced60 FPS📱 Mobile-adapted⇄ 2D version
BB84 Quantum Key Distribution Simulator ↗ Open standalone

Watch the BB84 quantum key distribution protocol run photon by photon in 3D: 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.

⚙ Under the hood

Interactive 3D simulator of the BB84 quantum key distribution protocol: single photons fly from Alice to Bob in random polarisation bases, an optional intercept-resend eavesdropper can be switched on mid-channel, and the sifted key plus live quantum bit error rate reveal whether the channel is secure.

quantum cryptographyphotonicsBB84quantum opticseavesdroppingpolarisation

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)