Cryptography & Communication
BB84 Protocol
The first quantum key distribution protocol, which uses single photons in two bases to create a shared secret key.
Definition
BB84 is the first and best-known quantum key distribution protocol, proposed by Charles Bennett and Gilles Brassard in 1984. Alice sends single photons encoded in randomly chosen bases, Bob measures in randomly chosen bases, and they keep only the results where their bases matched. An eavesdropper disturbs the photons and raises the error rate.
In depth
A simulation I wrote for the India lesson on this site, using NumPy, shows the numbers. With 200,000 photons on a lossless, noiseless channel, about 99,803 survive sifting, which is roughly half, and the error rate is zero. With an eavesdropper who measures every photon in a random basis and resends it, the error rate in the sifted key rises to about 25 percent, as the theory predicts. One in four of the sifted bits is wrong because the spy guesses the wrong basis half the time, and a wrong-basis photon gives Bob a wrong bit half the time.
Real links lose photons. Telecom fibre loses about 0.2 decibels per kilometre, so 200 km loses 40 dB, leaving one photon in ten thousand. That is why the key rate drops with distance, and why long networks use trusted nodes or, in the future, quantum repeaters. A validation report on India's 1,000 km network cites about 8,000 bits per second at typical metro distances and a quantum bit error rate below 4 percent, on links of up to 200 km.
Practical systems use decoy states to guard against attacks on weak laser pulses that sometimes contain more than one photon. Security proofs show that, with error correction and privacy amplification, a key can be extracted if the error rate is below a threshold of roughly 11 percent in the idealised analysis.
Technical Definition
Alice sends qubits prepared in one of four states, |0⟩, |1⟩, |+⟩ or |−⟩, choosing the basis (Z or X) and the bit at random. Bob measures each in a random basis. Over a public channel they compare bases and keep the positions where the bases matched, about half. They then compare a random sample of the kept bits to estimate the quantum bit error rate, QBER. If it is below a threshold they apply error correction and privacy amplification to distil a shorter secret key.
Visual Explanation: An Analogy
Alice mails Bob locked boxes, each of which can be opened by one of two kinds of key, chosen by Alice at random. Bob tries a random key on each box. Afterwards they tell each other which kind of key they used, not what was inside, and keep only the boxes where they used the same kind. A spy who opens a box with the wrong key leaves it damaged, and they notice the damage.
Key facts
| Item | Detail |
|---|---|
| Proposed | Charles Bennett and Gilles Brassard, 1984 |
| Sifting | Keeps about half the received photons |
| Eavesdropper signature | About 25 percent error rate with intercept-and-resend |
| Tolerated error | Roughly 11 percent in idealised proofs |
Where the idea comes from
Bennett and Brassard presented the protocol at a conference in Bangalore in 1984, and the name BB84 comes from their initials and the year. Arthur Ekert proposed an entanglement-based variant in 1991.
Real-World Use Cases
- Establishing encryption keys over fibre or free-space links
- Serving as the basis of commercial quantum key distribution systems
- Teaching the principles of quantum cryptography
How it differs from related ideas
- E91 uses entangled pairs and Bell tests, while BB84 uses single prepared photons.
- Post-quantum cryptography protects by mathematical hardness, while BB84 protects by physics.
Common Misconceptions
- BB84 does not send the message. It creates a key that is then used with a classical cipher.
- BB84 is not secure against flawed devices. Real systems face side-channel and detector attacks, and the security proofs assume idealised components.
Frequently asked questions
What does BB84 stand for?
The initials of Bennett and Brassard and the year 1984.
How does it detect spies?
Measuring in the wrong basis disturbs the photon, which raises the error rate in the sifted key.
Does it need a quantum computer?
No. It needs photon sources and detectors, not computation.
Related Terms
- Quantum Key Distribution
- No-Cloning Theorem
- Measurement Collapse
- Trusted Node
- Quantum Repeater
- Quantum Random Number Generator