Bases and sifting: why half the photons are thrown away
What happens when Bob measures in the wrong basis, and why the sifted key is about half as long as the number of photons sent.
7 min read · reviewed December 2026
Right basis, wrong basis
If Bob measures in the same basis Alice used, he gets her bit with certainty. If he measures in the other basis, the result is a fair coin flip that tells him nothing about her bit. He does not know which case he is in until the bases are announced.
| Alice’s basis | Bob’s basis | Bob’s bit | Kept? |
|---|---|---|---|
| + | + | Alice’s bit, for certain | yes |
| × | × | Alice’s bit, for certain | yes |
| + | × | 0 or 1, 50% each | no |
| × | + | 0 or 1, 50% each | no |
Sifting
After the photons are sent, Alice and Bob announce their bases for every position. They keep the positions where the bases agreed, which is each position with probability 1/2. So n photons give a sifted key of about n/2 bits. The lab’s simulations confirm this: the kept share stays within about a percent of one half.
A concrete run
Here is a twelve-photon run from the lab’s simulator. Count the rows where the two bases match. Those bits agree in every case, because there is no noise or eavesdropper in this run.
| # | Alice bit | Alice basis | Bob basis | Bob bit | Kept |
|---|---|---|---|---|---|
| 1 | 0 | + | × | 0 | no |
| 2 | 0 | + | + | 0 | yes |
| 3 | 0 | × | + | 0 | no |
| 4 | 1 | + | × | 0 | no |
| 5 | 0 | + | × | 0 | no |
| 6 | 1 | × | × | 1 | yes |
| 7 | 1 | × | + | 0 | no |
| 8 | 0 | + | + | 0 | yes |
| 9 | 0 | + | × | 0 | no |
| 10 | 0 | + | + | 0 | yes |
| 11 | 0 | × | × | 0 | yes |
| 12 | 1 | × | × | 1 | yes |
Why announcing the bases is safe
The bases are announced after Bob has measured. An eavesdropper who learns them then cannot go back and measure the photons that have already arrived. And knowing the basis alone does not reveal the bit, since the bit is not announced.
Try it
Questions
Why do they not agree on a basis beforehand?
Because then Eve would know it too. The randomness of the bases is what hides the bit from her.
Is the discarded half wasted?
Yes, it is a fixed cost of the protocol. Variants that choose one basis much more often than the other waste less, at the price of a more careful security analysis.
Do the discarded bits matter for security?
They are not used for the key. They are discarded after the bases are announced.
Read next
Sources and further reading
- C. H. Bennett and G. Brassard, “Quantum cryptography: public key distribution and coin tossing” (1984)
- P. W. Shor and J. Preskill, “Simple proof of security of the BB84 quantum key distribution protocol” (2000)
- A. K. Ekert, “Quantum cryptography based on Bell’s theorem” (1991)
- Algorithm page: BB84 protocol
- Lesson: quantum cryptography
Check the original sources for exact citations.