Decoy-State BB84: Defeating Photon-Number-Splitting Attacks
Interactive 3D simulation of decoy-state QKD over a lossy fiber channel: watch weak coherent pulses travel from Alice to Bob, an eavesdropper attempt a photon-number-splitting attack, and the decoy-state statistics expose the intrusion in real time.
Practical quantum key distribution runs on weak coherent laser pulses rather than true single photons, and the occasional multi-photon pulse opens a loophole: a photon-number-splitting attack lets an eavesdropper skim extra photons from those pulses undetected while blocking the vulnerable single-photon ones. This simulation animates pulses from Alice to Bob along a lossy fiber, models a live PNS attacker at the channel midpoint, and computes the real decoy-state lower bound on the single-photon yield from the running detection statistics — watch the bound stay healthy on an honest channel and collapse the moment an eavesdropper is present, exactly as it does in a real quantum-communication link.
Watch weak coherent laser pulses fly from Alice to Bob over a lossy fiber, an eavesdropper attempt a photon-number-splitting attack, and the decoy-state statistics expose the intrusion in real time.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install