SARG04 Quantum Key Distribution: 2D Photon-by-Photon Simulator
Interactive 2D simulator of the SARG04 quantum-key-distribution protocol: watch polarized photons cross a channel from Alice to Bob panel by panel, a live polarization-state diagram and a rolling QBER/efficiency chart update every round, and an optional intercept-resend eavesdropper drives the error rate up in real time.
SARG04 is a variant of quantum key distribution built on the same four polarization states as BB84 — but it changes the sifting rule that turns raw photon measurements into a shared secret key. Rather than revealing which basis she used, Alice reveals a pair of non-orthogonal states that includes the one she actually sent, and Bob can only extract a bit when his own measurement rules out one member of that pair by elimination. This 2D simulator streams polarized photons across a channel panel, runs the exact SARG04 sifting logic every round in a corrected form that lets errors genuinely occur (see the "How it works" fix note), and plots the resulting key rate and error rate live on a rolling chart alongside a polarization-state diagram — including what happens the moment an intercept-resend eavesdropper joins the line.
Interactive 2D simulator of the SARG04 quantum-key-distribution protocol: watch polarized photons cross a channel from Alice to Bob panel by panel, a live polarization-state diagram and a rolling QBER/efficiency chart update every round, and an optional intercept-resend eavesdropper drives the error rate up in real time.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install