Home / Play / Eavesdropper
Eavesdropper
You are the spy on a quantum key. Peek at the bits of light, watch the errors jump, and try to steal one bit of the key without getting caught.
Watch the 1-min video, then play the game.
Spy mission · 5 missions
A key that snitches on spies
1Watch the 1-minute version
Full episode, script and sources →2Now play with it
Alice sends a secret key to Bob, one particle of light at a time. You are Eve, trying to listen in.
Mission 1 of 5
Tap everything
polarization hidden until someone measuresphoton 1 / 32
Every photon this round
kept (bases matched)sacrificed to checkerrorkey bit you know
Rows: A = what Alice sent, E = what you measured, B = what Bob measured. Bases are + (↕ ↔) and × (diagonals). Alice's values stay hidden until the debrief.
Round result
In progress
Try this
- Peek at every bit of light: tap them all. See if you get caught.
- In mission 2, let every one pass. Count the errors.
- Peek at only a few. Stay hidden and still know one bit of the key.
Why this works
- You can't look at a photon's polarization without measuring it, and a measurement forces a choice of basis: + or ×.
- Pick the wrong basis and you get a coin-flip answer, and the photon leaves in your basis. The original state is gone. You can't copy it first either: an unknown quantum state can't be duplicated.
- When Bob then measures in Alice's basis, a photon you scrambled gives him a coin flip. Half your guesses are wrong, and half of those flip Bob's bit. That is 1 error in every 4 tapped bits they keep.
- Tap only a share of the photons and the error rate becomes a quarter of that share. Alice and Bob only have to count mismatches.
3Prove it (10 seconds)
Real names
The bits of light = photons. The direction a photon's light wave vibrates in = its polarization. The two ways to measure it, + and ×, = bases. Sending a key this way = quantum key distribution (QKD). This recipe = BB84, from Charles Bennett and Gilles Brassard, 1984. The spy = Eve, the eavesdropper. Tapping a photon and sending on what you saw = an intercept-resend attack. The rule that an unknown quantum state can't be copied = the no-cloning theorem. Keeping only the photons where the bases matched = sifting. The error rate they measure = the quantum bit error rate. Shrinking the key to squeeze out what a spy could know = privacy amplification. The 11% abort line is the threshold this game uses. It is the Shor-Preskill limit for this recipe (BB84 with one-way error correction). Every other number on this page is computed by the simulator.
Quick one, optional: what taught you more in this game?
Lab · Optional: has some maths
Run 1,000 rounds and watch the statistics
Each round sends a batch of photons, and Eve taps each one with the chance you set. The bars show the error rate on the bits Alice and Bob keep, round by round. The dashed line is the prediction.
Error rate per round (kept bits)
Chance of catching Eve vs bits checked
Try this
- Make the spy peek at everything. Read the error rate.
- Set the spy and the noise to zero. Find the errors.
- Send more photons per round. Watch the spread shrink.
Real names
The share of photons Eve taps = the intercept fraction, written f. The bits Alice and Bob keep = the sifted key. The bar chart = a histogram. The round-to-round spread = the standard deviation. The prediction for the error rate is f/4. With channel noise p it is f/4 + p − 2·(f/4)·p. The chance of at least one mismatch in k compared bits is 1 − (1 − f/4)^k, which is 1 − (3/4)^k when Eve taps everything.
Behind the sim
What I simplified
This is the simplest spy: she measures a photon and sends on what she saw. The photons, the detectors and the fiber are perfect here, apart from the optional noise that flips some bits; real links lose photons and always have some errors of their own. A real spy has cleverer attacks, so real systems go further: after the check, Alice and Bob correct the remaining errors and shrink the key to squeeze out what a spy could know, and the game stops before that step. The 11% line is the threshold this game uses; it is the Shor-Preskill limit for this recipe (BB84 with one-way error correction), real systems set their own, and every other number is computed by the simulator.
Sources (3)
- Bennett and Brassard, Quantum cryptography: Public key distribution and coin tossing (1984; 2020 reprint)arxiv.org
- Gisin, Ribordy, Tittel and Zbinden, Quantum cryptography, Reviews of Modern Physics 74, 145 (2002)arxiv.org
- Shor and Preskill, Simple Proof of Security of the BB84 Quantum Key Distribution Protocol (2000)arxiv.org
One new quantum idea, every week
The next episode in your inbox, with its sources. Free, and one click to unsubscribe.
Next: check your inbox for a one-click confirm email from QWK Newsletter (peek in Promotions or Spam). Click it and you're in.