BB84

Also known as: BB84 protocol

On this page 7

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.

StageChannelPurpose
State preparationQuantumEncode random bits in random bases
MeasurementQuantumBob reads states in random bases
SiftingClassicalDiscard mismatched basis positions
Parameter estimationClassicalSample bits to measure the error rate
Error correctionClassicalReconcile differences between keys
Privacy amplificationClassicalRemove leaked information by hashing
Stages of a BB84 session

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 QBERLikely interpretationAction
Below 3 percentWell-aligned, low-noise linkDistill key normally
3 to 8 percentLong fiber or detector noiseDistill key at lower rate
8 to 11 percentHeavy noise or partial attackKey rate approaches zero
Above 11 percentPossible eavesdroppingAbort and investigate
Near 25 percentFull intercept-resend attackAbort immediately
Typical QBER levels and their meaning

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.

ProtocolCore ideaMain advantage
BB84Four states, two basesSimple, well-proven security
Decoy-state QKDBB84 with varied pulse intensitiesDefeats photon-number splitting
E91 protocolEntangled pairs and Bell testsSecurity tied to entanglement
MDI-QKDUntrusted central Bell measurementImmune to detector attacks
Twin-field QKDSingle-photon interference midwayMuch longer distances
Continuous-variable QKDField quadratures, coherent detectionStandard telecom components
BB84 and related protocols

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.

WeaknessCauseCountermeasure
Photon-number splittingMulti-photon laser pulsesDecoy-state method
Detector blindingControllable detector responseMDI-QKD or detector monitoring
Trojan-horse probingLight injected into the sourceOptical isolators and filters
Distance limitExponential fiber lossTrusted nodes or future repeaters
Known weaknesses and countermeasures

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.