BB84 Quantum Key Lab

The Quantum Turtle · Quantum Play Lab

BB84: Make a shared key.

Alice sends one qubit at a time. Bob chooses how to measure it. Together, they compare bases, test for errors, and find the bits they can keep.

Start here

Choose how to play

Solo · Learn both roles

Play Alice, then Bob, for each qubit. The same experiment, all on one screen.

Live · Two people

Alice creates a room and sends the link to Bob on Zoom.

Try without Eve first, then run another experiment with Eve.

Live mode uses public classroom messages, not real qubits or secure communication. No account needed. Share room links only with classmates.

Pick a mode to begin.

State reference

Four states, two bases

|0⟩+ basis · bit 0
|1⟩+ basis · bit 1
|+⟩× basis · bit 0
|−⟩× basis · bit 1

Same basis: Bob gets Alice's encoded bit in the ideal case. Different basis: Bob's result is random.

What does Eve change?

When Eve measures in a random basis and resends a replacement, she can disturb the state. For an ideal intercept-resend attack, about 25% of matching-basis bits are wrong on average. Small samples vary.

← Back to Learn