BB84 protocol
BB84 is a prepare-and-measure quantum key-distribution protocol using two incompatible bases to constrain undetected information acquisition.
On this page
Definition and mechanism
In the ideal qubit version, a sender chooses a random bit and one of two bases, commonly Z and X. The receiver measures in a randomly chosen basis. After authenticated discussion, they retain suitable matching-basis events, estimate errors and apply classical postprocessing. Practical variants alter basis probabilities and physical implementations while retaining an explicit security proof.
State convention
Z-basis states are |0> and |1>; X-basis states are |+>=(|0>+|1>)/sqrt(2) and |->=(|0>-|1>)/sqrt(2). A wrong-basis measurement yields either outcome with probability one half in the ideal model. This incompatibility is operational: one cannot identify all four states perfectly from one unknown preparation.
Solved intercept-resend example
Consider an adversary who measures every signal in a uniformly random Z or X basis and resends the observed state. Among events where sender and receiver chose the same basis, the adversary used the wrong basis half the time. In those cases the receiver obtains the wrong bit half the time. The induced sifted-key error rate is therefore (1/2)(1/2)=1/4. This calculation analyzes that attack only; it is not a complete proof against arbitrary quantum attacks.
Security boundaries
A finite observed error rate must be converted into a bound using the actual source, detector and sampling model. Real optical sources can emit multiple photons, which changes the analysis. Publicly revealing every retained bit would destroy secrecy even if the quantum transmission were ideal. Authentication is essential to prevent a man-in-the-middle attack.
Why the wrong basis removes the encoded bit information
In the Z basis, the signal states |0> and |1> are orthogonal. In the X basis, the states |+> and |-> are orthogonal. Across the two bases, each squared overlap is one half: for example |<+|0>|^2=|<-|0>|^2=1/2. Thus an X measurement of a Z-encoded bit has two equally likely outcomes, independent of that bit. This is a statement about a specified measurement, not a claim that every possible adversarial strategy is equivalent to guessing a basis.
Suppose a sender prepares |0>, an intercepting party measures in X, and a receiver later measures in Z. The intermediate result is plus or minus with equal probability. Either resent X eigenstate gives receiver outcome 0 or 1 with equal probability. The receiver's bit is therefore wrong with probability one half on this intercepted, wrong-basis branch. If the intercepting basis is chosen uniformly and the sender-receiver bases match, the total error probability from this particular attack is (1/2)(0)+(1/2)(1/2)=1/4.
Partial interception and the limits of an attack example
If that same intercept-resend strategy is applied independently to fraction f of signals, and the other signals are otherwise perfect, the resulting sifted-bit error rate is f/4. Observing a five-percent error rate would be consistent with f=0.2 in this simplified model. It would not prove that twenty percent of the signals were intercepted. Ordinary device noise, coherent attacks and other adversarial strategies can produce different relations between error and information.
The example teaches disturbance and incompatible bases. A security proof instead bounds all attacks allowed by its assumptions. Confusing an illustrative attack with a general proof is a common editorial error: it replaces an optimization over possible adversaries with one convenient strategy and overstates what an observed error rate implies.
Biased bases change sifting and estimation together
If each endpoint independently chooses Z with probability p and X with probability 1-p, the probability that their bases match is p^2+(1-p)^2. At p=1/2 it is 1/2. At p=0.9 it is 0.82. However, only (1-p)^2=0.01 of all signals have both endpoints in X. A strong basis bias can increase the fraction of Z-basis key candidates while reducing the sample available for conjugate-basis parameter estimation.
For one million emitted signals before losses, the independent-basis expectation at p=0.9 is 810,000 Z matches and 10,000 X matches. Losses and filtering reduce actual retained counts. The arithmetic does not justify a secure finite key by itself: the proof must accommodate the sampling rule, detector behavior, stopping criterion and finite statistics. Increased sifting efficiency is therefore one component of protocol optimization, not a free increase in final secret-key rate.
A conditional asymptotic expression
For an idealized single-photon BB84 setting with the assumptions of the relevant proof, a common asymptotic secret fraction takes the form r=1-h2(e_phase)-f_EC h2(e_bit), where h2(p)=-p log2 p-(1-p)log2(1-p), f_EC describes reconciliation inefficiency relative to a specified ideal limit, and the phase-error quantity is bounded from complementary-basis information. In a symmetric ideal case with e_phase=e_bit=e and f_EC=1, this reduces to 1-2h2(e). The formula is not a general rate for arbitrary sources, finite blocks or detector side channels.
For e=0.01, h2(e) is approximately 0.080793 and the symmetric expression is about 0.838414 secret bits per relevant sifted bit before other accounting. At e=0.10, the expression is about 0.062009. These numbers illustrate nonlinear sensitivity to error. They should be attached to the idealized model and distinguished from experimentally measured secret bits per second.
Averaging over an unrevealed basis produces the same density operator
If the bit is uniformly random, the ensemble of Z-basis signals has density operator (|0><0|+|1><1|)/2=I/2. The ensemble of X-basis signals has (|+><+|+|-><-|)/2=I/2 as well. A measurement on this ideal signal alone therefore cannot distinguish which ensemble was used before the basis information is revealed. The equality concerns the full quantum state available to that measurement, not just its outcome probabilities in one chosen basis.
If a real source attaches a basis-dependent timing tag, the relevant state is larger than the intended qubit. For example, orthogonal auxiliary tags |t_Z> and |t_X> would make the total ensemble states I/2 tensor |t_Z><t_Z| and I/2 tensor |t_X><t_X| perfectly distinguishable. The qubit density operators remain identical, but the physical source no longer meets that restricted description.
This exact counterexample explains why source characterization and side-channel assumptions are part of the science. It also explains why a successful intercept-resend calculation does not exhaust the security analysis: information may escape through a degree of freedom absent from that calculation. A diagram can show identical qubit ensembles beside either identical or orthogonal auxiliary tags, explicitly identifying the latter as a hypothetical flaw rather than a measured feature of a named product.
Sources
Verification scope
Recorded source check ·
Original conference paper December 1984; retypeset journal version 2014; scan deposited 2020. These dates describe different events.
Verification scope
Metadata and abstract checked ·
Abstract supports the need to include device imperfections; individual security theorems are not certified by this bibliographic check.
Verification scope
Metadata and abstract checked
Title, authors, publication date, DOI and abstract retrieved from the publisher. No claim of exhaustive independent proof review.
Explanatory reference for security definitions and composition. Original synthetic examples are separately calculated.