KnowledgeCookies logo Understanding the language of quantum science
QPicDepict / Networks and security

BB84 quantum key distribution

BB84 uses randomly chosen bases to create correlated bits and estimate how much information an adversary could have gained.

BB84 quantum key distribution infographic. A reading guide and explanation follow.
Begin with the signal-state table, then trace preparation, measurement, sifting and key distillation. Artwork from the supplied QPicDepict collection. Open full-size image Download PNG

How it works

  1. Send

    Alice draws a uniform bit and basis per signal. Bob independently chooses a basis and measures.

  2. Sift

    They announce bases on an authenticated classical channel and keep compatible detections. A sample estimates the error rate.

  3. Distill

    Classical reconciliation corrects discrepancies and privacy amplification shortens the string to remove bounded adversary information.

Equation and quantities

Two bases: Z and X\text{Two bases: } Z\text{ and }X

Worked example

An ideal intercept-resend adversary choosing random bases gives a 25% error rate on sifted bits when attacking every signal. Half the time the attacker chooses the wrong basis, and half of those events cause an error.

Why it matters

BB84 distributes secret keys for use by a separate encryption scheme.

Limits and assumptions

The example is one attack, while a security proof must cover the specified threat model and device assumptions. Real deployments also account for finite statistics, losses and side channels.

Do Alice and Bob reveal the whole sifted string to estimate errors?

No. They reveal or compare limited information and account for the leakage during key distillation.

Related reading