What is BB84? Quantum key distribution in plain steps

How two people can agree a secret key by sending single photons, and what makes it different from ordinary encryption.

8 min read · reviewed December 2026

The problem it solves

Two people, Alice and Bob, want a shared random key so they can encrypt messages. Sending the key over an ordinary channel lets anyone copy it without leaving a trace. BB84, proposed by Charles Bennett and Gilles Brassard in 1984, uses a property of quantum states: measuring them can disturb them. A listener who copies the key therefore leaves evidence that Alice and Bob can detect.

BB84 does not send a message. It produces a random key, which is then used with an ordinary cipher such as a one-time pad or a standard symmetric cipher.

The steps

  • Alice picks a random bit and a random basis (+ or ×) for each photon and sends it to Bob.
  • Bob picks a random basis for each photon and measures.
  • Over an ordinary public channel, they announce their bases (not their bits) and keep only the positions where the bases matched. This is called sifting.
  • They publicly compare a random sample of the sifted bits to estimate the error rate. If it is too high, they abort.
  • They correct the remaining errors and shrink the key (privacy amplification) so that any partial knowledge Eve has is removed.

The public channel must be authenticated. Otherwise an attacker could pose as Bob to Alice and as Alice to Bob. BB84 needs a small pre-shared secret for that, which is why it is described as key growing and not key creation from nothing.

The four states

Alice uses two bases. In each, the two states stand for 0 and 1. The two bases are chosen so that a measurement in the wrong basis gives a completely random result.

The four states Alice can send. Each basis holds two orthogonal states.
BasisBit 0Bit 1
Rectilinear (+, the Z basis)|0⟩|1⟩
Diagonal (×, the X basis)|+⟩ = (|0⟩+|1⟩)/√2|−⟩ = (|0⟩−|1⟩)/√2

Try it

Questions

Does BB84 send my message through photons?

No. It produces a shared random key. The message is encrypted with that key and sent over any ordinary channel.

Who invented BB84?

Charles Bennett and Gilles Brassard, in 1984. The name is their initials and the year.

Why do Alice and Bob need an authenticated channel?

To make sure they are talking to each other and not to an impostor in the middle. The quantum part cannot do that by itself.

Read next

Sources and further reading

Check the original sources for exact citations.