BB84 Protocol Mechanics

Imagine you are sending a secret message through a locked box that opens only when the sender and receiver share the same key. If a thief tries to peek inside the box, the lock changes its shape and destroys the message before they see it. This is the core logic behind the BB84 protocol, which uses the strange rules of quantum physics to ensure that nobody can intercept your private information without being noticed. By sending data as individual light particles, we create a system where observing the signal changes the signal itself.
The Mechanics of Quantum Transmission
When two people want to share a secure key, they must first agree on how to send their data. The sender prepares a series of light particles, known as photons, in one of two different measurement bases. These bases act like filters that determine how the photon's orientation is interpreted by the receiver. Because the receiver does not know which base the sender used for each photon, they must guess correctly to read the bit value. If the receiver chooses the wrong base, the result of their measurement becomes completely random, which adds a layer of uncertainty that protects the key from outside observers.
Key term: Photon — a tiny particle of light that acts as the primary carrier for quantum information in communication systems.
To visualize this process, consider a set of specialized glasses that only allow light through if the lenses match the source. If you look at a light source through horizontal lenses, you see the light clearly, but vertical lenses show you nothing at all. In the quantum world, the sender transmits these photons, and the receiver uses their own set of filters to catch them. They keep a record of which filters they used for every single photon they received during the exchange. This record is essential for the later stages of the protocol, where they compare notes to discard any mismatched data.
Filtering and Error Detection
After the transmission phase, the sender and receiver talk over a public channel to compare which bases they used for each photon. They do not share the actual bit values, which keeps the secret key safe from anyone listening to their conversation. Instead, they simply announce the base used for each position in the sequence. If they used the same base, they keep that bit as part of their shared key. If they used different bases, they throw that bit away entirely because the result is unreliable. This process leaves them with a matching set of bits that forms a secure, private string.
To ensure that no one intercepted the signal, the parties compare a small, random sample of their final key. If even one bit in that sample does not match, they know that an observer was watching the transmission. The act of measuring a quantum system always leaves a physical mark, which prevents a spy from hiding their presence. The following table illustrates the basic steps taken by the sender and receiver during this exchange:
| Step | Action | Purpose of the Action |
|---|---|---|
| One | Encoding | Sender prepares photons in random bases |
| Two | Detection | Receiver measures photons using random bases |
| Three | Comparison | Both parties share their chosen bases publicly |
| Four | Sifting | Both parties keep bits where bases matched |
This sifting process effectively filters out the noise and leaves only the valid parts of the communication. By checking the sample for errors, they confirm the integrity of the entire key before they use it to encrypt any real data. If the sample shows any discrepancy, they discard the key and start the entire process over from the beginning. This ensures that only a perfectly secure key is ever used for private messages.
The BB84 protocol creates secure keys by using the fact that measuring quantum particles inevitably changes their state, which alerts the users to any attempted interception.
But how do these individual bits of data eventually turn into a full, usable key for encryption?
Want this with sources you can check?
Premium Learning Paths for Mathematics & Logic are researched against open-access libraries — PubMed, arXiv, government databases, and more — with their distinctive claims cited to real sources and independently checked.
See what Premium includes