The BB84 Protocol
BB84, due to Bennett and Brassard (1984), is the first and still the canonical quantum key-distribution protocol. Its security rests on encoding bits in two conjugate (mutually unbiased) bases, so that an eavesdropper who does not know which basis was used cannot extract the bit without disturbing the state.
The two bases
BB84 uses single qubits in one of two bases:
- the rectilinear (computational, ) basis ,
- the diagonal () basis , where .
These two bases are mutually unbiased: any state of one basis, measured in the other, gives a perfectly random outcome. Concretely
Each bit value is encoded by a state, with the basis acting as a hidden label:
| bit | basis | basis | |----:|:---------:|:---------:| | 0 | | | | 1 | | |
The protocol, step by step
- Prepare (Alice). For each of rounds, Alice picks a random bit and a random basis , prepares the corresponding state, and sends it to Bob.
- Measure (Bob). Bob picks an independent random basis for each qubit and measures, recording outcome .
- Sift (public). Over an authenticated classical channel, Alice and Bob announce their bases (never the bits) and discard every round where . On the surviving rounds the bases matched, so in the absence of noise and eavesdropping .
- Estimate error. They sacrifice a random subset of the sifted bits, compare them publicly, and estimate the quantum bit error rate (QBER). A QBER above threshold aborts the protocol.
- Post-process. The remaining sifted bits — the raw key — are passed through information reconciliation (error correction) and privacy amplification to produce a short, identical, secret key.
The sifting rate
Because Bob chooses his basis independently and uniformly, he picks the same basis as Alice with probability . So on average half the transmitted qubits survive sifting:
Sending qubits yields about sifted bits before error correction and privacy amplification further shorten the key. This 50 % overhead is the price of hiding the basis.
Why a passive copy fails
Could an eavesdropper "Eve" simply duplicate each qubit, store copies, and measure them all once the bases are announced? No — the no-cloning theorem forbids copying an unknown quantum state. And a single qubit, measured in the wrong basis, yields a random bit while collapsing the state, so a measure-and-resend attack injects detectable errors. BB84's security is the marriage of these two facts: conjugate-basis encoding plus the impossibility of cloning or noiselessly intercepting an unknown state.
Try it
Alice wants to send the bit in the diagonal () basis, so she must prepare the state . Build a one-qubit circuit that prepares starting from . (Hint: sends , and .) The grader checks the output state vector.
Sign in on the full site to ask questions and join the discussion.