BB84 is the first and most widely deployed quantum key distribution protocol, proposed by Charles Bennett and Gilles Brassard in 1984. In quantum communication, it lets two parties, conventionally called Alice and Bob, grow a shared secret key by sending single quantum states in two mutually unbiased bases and then comparing a subset of results over an authenticated classical channel.
Its security does not rest on computational hardness. It rests on physics: measuring an unknown quantum state in the wrong basis disturbs it irreversibly, and the no-cloning theorem forbids perfect copies. An eavesdropper therefore leaves a measurable trace in the quantum bit error rate, and the parties discard the key when that rate is too high.
How the BB84 protocol works
The BB84 protocol combines a quantum transmission phase with several classical post-processing steps. Alice prepares each photon in one of four states, chosen from the rectilinear basis (horizontal or vertical polarization) or the diagonal basis (plus or minus 45 degrees). Bob measures each arriving photon in a basis he picks at random, without knowing which one Alice used.
After transmission, the parties publicly announce their bases, never their bit values, and keep only positions where the bases matched. This sifting step retains about half of the detected photons in the original symmetric version. The remaining steps turn the noisy sifted key into a short, secret and identical final key.
| Stage | Channel | Purpose |
|---|---|---|
| State preparation | Quantum | Encode random bits in random bases |
| Measurement | Quantum | Bob reads states in random bases |
| Sifting | Classical | Discard mismatched basis positions |
| Parameter estimation | Classical | Sample bits to measure the error rate |
| Error correction | Classical | Reconcile differences between keys |
| Privacy amplification | Classical | Remove leaked information by hashing |
Every classical message must travel over an authenticated channel. Without authentication, an attacker can impersonate Bob to Alice and Alice to Bob, so BB84 needs a short pre-shared secret to start, which is why it is often described as key expansion rather than key creation from nothing.
Why eavesdropping raises the error rate
Eavesdropping raises the error rate because states from the two BB84 bases cannot be distinguished reliably by any single measurement. In the simplest intercept-resend attack, Eve measures each photon in a random basis and sends a replacement. She guesses the wrong basis half of the time, and each wrong guess produces a random result for Bob, so a full attack introduces a quantum bit error rate of 25 percent in the sifted key.
More sophisticated collective and coherent attacks cause less disturbance per bit of information gained. Security proofs, including the well-known Shor-Preskill proof of 2000, show that BB84 with one-way post-processing remains secure up to a QBER of about 11 percent. Above that error threshold, no secret key can be extracted, and the session must be aborted.
| Observed QBER | Likely interpretation | Action |
|---|---|---|
| Below 3 percent | Well-aligned, low-noise link | Distill key normally |
| 3 to 8 percent | Long fiber or detector noise | Distill key at lower rate |
| 8 to 11 percent | Heavy noise or partial attack | Key rate approaches zero |
| Above 11 percent | Possible eavesdropping | Abort and investigate |
| Near 25 percent | Full intercept-resend attack | Abort immediately |
BB84 compared with other QKD protocols
BB84 is a prepare-and-measure protocol, which distinguishes it from entanglement-based schemes such as the E91 protocol. Many later protocols are refinements of BB84 that close specific practical loopholes rather than replacements for its core idea.
| Protocol | Core idea | Main advantage |
|---|---|---|
| BB84 | Four states, two bases | Simple, well-proven security |
| Decoy-state QKD | BB84 with varied pulse intensities | Defeats photon-number splitting |
| E91 protocol | Entangled pairs and Bell tests | Security tied to entanglement |
| MDI-QKD | Untrusted central Bell measurement | Immune to detector attacks |
| Twin-field QKD | Single-photon interference midway | Much longer distances |
| Continuous-variable QKD | Field quadratures, coherent detection | Standard telecom components |
Practical implementations and key rates
Real BB84 systems rarely use true single photons. They use attenuated laser pulses with a mean photon number below one, encoded in polarization or, more often in fiber, in phase or time-bin encoding, which is more robust against polarization drift. Commercial systems almost always combine BB84 with decoy states, because multi-photon pulses would otherwise leak key bits.
Key rate falls exponentially with distance because standard fiber loses about 0.2 dB per kilometer. Metro links of 20 to 50 km can reach secret key rates of kilobits to megabits per second, while links beyond 150 km drop to bits per second. Satellite links, demonstrated by the Micius mission, avoid most fiber loss and can connect ground stations more than 1,000 km apart.
- Efficient BB84 biases basis choice toward one basis, raising sifting efficiency well above 50 percent.
- Finite-key analysis is required in practice, because short blocks give weaker statistical guarantees.
- Trusted nodes relay keys across long networks, but each node must be physically secured.
Limitations and implementation attacks
The theoretical security of BB84 assumes ideal devices, and most successful attacks target the gap between model and hardware. Detector blinding attacks, in which bright light forces single-photon detectors into a classical mode, have fully compromised unprotected systems in laboratory demonstrations.
| Weakness | Cause | Countermeasure |
|---|---|---|
| Photon-number splitting | Multi-photon laser pulses | Decoy-state method |
| Detector blinding | Controllable detector response | MDI-QKD or detector monitoring |
| Trojan-horse probing | Light injected into the source | Optical isolators and filters |
| Distance limit | Exponential fiber loss | Trusted nodes or future repeaters |
BB84 also provides no protection against denial of service: an attacker who cuts or disturbs the link stops key generation entirely. It distributes keys only, so data encryption still relies on a classical cipher such as AES or a one-time pad.
Understanding it simply
BB84 is a method for two people to agree on a secret password using single particles of light. Each light particle carries one bit, written in one of two possible “styles”. The receiver guesses the style when reading it, and afterward both sides compare styles, not the bits, and keep only the matches.
The trick is that anyone who peeks changes the message. A spy must also guess the style, and wrong guesses scramble the bits. When the two parties check a sample and find too many errors, they know someone listened and throw that key away.
Applied in practice
A regional bank operates two data centers 40 km apart, connected by dark fiber, and wants backup traffic protected against future decryption by quantum computers. Its network team installs a decoy-state BB84 system on a dedicated fiber pair, with the classical channel authenticated by a pre-shared key.
During operation, the link shows a stable QBER of about 2 percent and produces several tens of kilobits of secret key per second. The encryptors refresh their AES-256 keys every minute from this supply. One night the QBER suddenly jumps above 12 percent; the system aborts key generation automatically, falls back to stored keys and raises an alarm. Inspection finds a damaged connector rather than an attacker, but the event confirms that the error-rate check works as designed.