HomeCybersecurityBB84 Photon-Level Quantum Key Distribution (2D)

BB84 Photon-Level Quantum Key Distribution (2D)

A 2D companion to the QKD trusted-node relay 3D model: instead of a lumped per-hop key-rate formula, this simulator sends individual BB84 photons through a lossy fiber, measures them with real Malus's-law quantum-measurement probabilities, and derives the secure key rate and QBER from the actual sifted bit statistics — including exactly how an intercept-resend eavesdropper becomes detectable.

Cybersecurity2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-exp-quantum-crypto ↗ Open standalone

This 2D companion to the QKD trusted-node relay 3D model zooms into a single fiber hop and asks a question the relay-chain view abstracts away: what actually happens to each individual photon? Instead of a lumped rate formula, this simulator sends real BB84 photons one at a time — each with a randomly chosen bit and polarization basis — through a fiber channel whose loss follows the same Beer–Lambert attenuation law used industry-wide, computes every measurement Bob (and, optionally, an intercepting Eve) makes using the true quantum-mechanical Malus's-law probability, and derives the sifted key's quantum bit error rate directly from those simulated outcomes rather than assuming it. Turning on Eve shows exactly why intercept-resend eavesdropping is physically detectable: her unavoidable wrong-basis guesses inject real, measurable errors into the sifted key, driving the QBER toward the textbook 25% ceiling and past the ≈11% security threshold where privacy amplification can no longer produce a secure key at all.

⚙ Under the hood

A 2D companion to the QKD trusted-node relay 3D model: instead of a lumped per-hop key-rate formula, this simulator sends individual BB84 photons through a lossy fiber, measures them with real Malus's-law quantum-measurement probabilities, and derives the secure key rate and QBER from the actual sifted bit statistics — including exactly how an intercept-resend eavesdropper becomes detectable.

quantum cryptographyBB84QKDnetwork securitycybersecurityfiber opticsquantum measurement

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

What did you find?

Add reproduction steps (optional)