BB84 in real systems: where theory and practice part
Single photons, loss, detectors and the attacks that exploit imperfect equipment.
8 min read · reviewed December 2026
What changes outside the lab
- True single-photon sources are hard. Many systems use weak laser pulses, which sometimes contain more than one photon.
- Photons are lost in fibre and in free space, and the loss grows with distance.
- Detectors have dark counts and finite efficiency, which add errors and lose photons.
- Alignment of the bases drifts and needs correction.
Attacks on the equipment
The security proof assumes an ideal device model. Attacks have been described and demonstrated that target the real hardware instead of the protocol, such as splitting off one photon from multi-photon pulses, or blinding detectors with bright light. Countermeasures exist, including decoy-state methods and measurement-device-independent protocols. The details and the exact status of each attack should be checked in the original papers, since this guide gives only the outline.
What the lab leaves out
- It sends ideal single photons, with no loss.
- Noise is a simple random bit flip.
- Eve uses only the intercept-resend attack, in one basis choice.
- Authentication of the public channel is assumed.
The lab is for understanding the logic of the protocol, not for assessing the security of any real system.
Try it
Questions
Has BB84 been used outside labs?
Commercial and experimental quantum-key-distribution links have been built over fibre and by satellite. Check current sources for specific deployments and their distances, which change.
Is QKD unhackable?
The protocol has a proof under ideal assumptions. Real implementations can have side channels, so “unhackable” overstates it.
Why not just use more photons per pulse?
Because extra photons give Eve a copy to take without disturbing Bob’s. Decoy states are a way to detect that.
Read next
Sources and further reading
- C. H. Bennett and G. Brassard, “Quantum cryptography: public key distribution and coin tossing” (1984)
- P. W. Shor and J. Preskill, “Simple proof of security of the BB84 quantum key distribution protocol” (2000)
- A. K. Ekert, “Quantum cryptography based on Bell’s theorem” (1991)
- Algorithm page: BB84 protocol
- Lesson: quantum cryptography
Check the original sources for exact citations.