Skip to main content
KetQat

Appearance

Algorithm · intermediate

BB84 quantum key distribution protocol

The sender encodes random bits in one of two conjugate qubit bases, the receiver measures in a random basis, and the parties keep the rounds where the bases agree, estimate the error rate, correct errors and hash the result into a secret key.

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Protocol (Bennett and Brassard).

  1. Preparation. For each round, Alice picks a bit xx and a basis a∈{Z,X}a \in \{Z, X\} uniformly at random and sends ∣0⟩,∣1⟩\ket{0}, \ket{1} (basis ZZ) or ∣+⟩,∣−⟩\ket{+}, \ket{-} (basis XX) encoding xx.
  2. Measurement. Bob picks a basis b∈{Z,X}b \in \{Z, X\} at random and measures, obtaining yy.
  3. Sifting. Over the public channel they announce bases and keep rounds with a=ba = b, about half of them. In the absence of noise and eavesdropping, y=xy = x in every kept round.
  4. Parameter estimation. They reveal a random sample of kept rounds and compute the quantum bit error rate QQ, the fraction with x≠yx \ne y. If QQ is too high, they abort.
  5. Error correction. Alice sends syndrome information so that Bob can correct his string to hers, leaking about h(Q)h(Q) bits per bit in the ideal case.
  6. Privacy amplification. Both apply a randomly chosen two-universal hash, shortening the string to a length that the security proof certifies as secret (see the leftover hashing lemma).

The 1984 paper describes steps 1 to 4, with the public comparison of a random subset of bits as the eavesdropping test; error correction and privacy amplification by hashing were added in later work.

Why eavesdropping is detected: the intercept-resend attack. Suppose Eve measures every qubit in a random basis and resends what she found. In a sifted round she chooses the wrong basis with probability 1/21/2; she then sends, for example, ∣+⟩\ket{+} for a ZZ-basis bit, and Bob's ZZ measurement is wrong with probability 1/21/2. So she causes Q=1/2×1/2=25%Q = 1/2 \times 1/2 = 25\% while learning the sifted bit only half of the time. More generally, any measurement that gains information about states from two conjugate bases disturbs them; this is the information–disturbance trade-off behind the no-cloning theorem.

Security. Security against arbitrary attacks was proved by Mayers and, by reduction to entanglement distillation with CSS codes, by Shor and Preskill; for one-way post-processing the asymptotic key rate is 1−2h(Q)1 - 2h(Q) (see the Shor–Preskill rate). Bennett, Brassard and Mermin observed that BB84 is equivalent to an entanglement-based protocol in which a source distributes Bell pairs, which is the starting point of these proofs. Finite-key, composable proofs follow Renner. Practical implementations use attenuated laser pulses with decoy states; see Scarani et al..

Holds when

  • Ideal single-qubit source and measurement devices that behave as modelled; an authenticated but public classical channel.
  • The eavesdropper may do anything allowed by quantum mechanics to the quantum channel.
Stated in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Charles H. Bennett, Gilles Brassard (1984). Quantum cryptography: Public key distribution and coin tossing. Theoretical Computer Science 560, 7-11 (2014 reprint). doi:10.1016/j.tcs.2014.05.025
  2. Charles H. Bennett, Gilles Brassard, N. David Mermin (1992). Quantum cryptography without Bell’s theorem. Physical Review Letters 68, 557-559. doi:10.1103/physrevlett.68.557
  3. Peter W. Shor, John Preskill (2000). Simple Proof of Security of the BB84 Quantum Key Distribution Protocol. Physical Review Letters 85, 441-444. doi:10.1103/physrevlett.85.441arXiv:quant-ph/0003004
  4. Dominic Mayers (2001). Unconditional security in quantum cryptography. Journal of the ACM 48, 351-406. doi:10.1145/382780.382781
  5. Renato Renner (2008). Security of quantum key distribution. International Journal of Quantum Information 6, 1-127. doi:10.1142/s0219749908003256
  6. Valerio Scarani, Helle Bechmann-Pasquinucci, Nicolas J. Cerf, … Momtchil Peev (2009). The security of practical quantum key distribution. Reviews of Modern Physics 81, 1301-1350. doi:10.1103/revmodphys.81.1301

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass with notes · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Protocol steps, intercept-resend error rate 25% and the information/disturbance trade-off compared with Bennett-Brassard 1984 (reprint, arXiv 2003.06557: rectilinear/diagonal encoding, sifting, random-subset comparison, intercept-resend in one basis learns half and disturbs 1/4); later steps checked against Shor-Preskill (quant-ph/0003004) and the rate record; decoy-state remark compared with Scarani et al., arXiv 0802.4155 (P&M with decoy states); Crossref metadata of all six references checked.

    The protocol (including error correction and two-universal hashing) was attributed as a whole to Bennett and Brassard (1984); the 1984 paper ends with the random-subset comparison. Added one sentence saying that steps 5-6 were added in later work.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision cbbf0ecea7a90a83. Source file knowledge/records/algorithm/bb84.md in the content repository (readable there once it is public).