Signal pulse (μ)
Decoy pulse (ν)
Detected at Bob
Blocked / intercepted
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.
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.