Home / Play / Eavesdropper

A Quantum Speed labPlay · 5 spy missions · real figures · a bit harder

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

ALICE BOB EVE ?

polarization hidden until someone measuresphoton 1 / 32

1 Send2 Sift3 Check4 Verdict

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
  1. You can't look at a photon's polarization without measuring it, and a measurement forces a choice of basis: + or ×.
  2. 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.
  3. 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.
  4. 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)

A spy peeks at the light that carries the key. What happens?
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?

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)

One new quantum idea, every week

The next episode in your inbox, with its sources. Free, and one click to unsubscribe.