Quantum Cryptography & BB84
Quantum key distribution (QKD) allows two parties to establish a provably secure secret key using quantum mechanics — security guaranteed by the laws of physics, not computational hardness. The BB84 protocol (Bennett & Brassard, 1984) exploits the no-cloning theorem and measurement disturbance: any eavesdropper necessarily introduces detectable errors.
Key Concepts
Key Equations
BB84 Mini-Example
Alice sends 8 qubits in BB84. Trace through basis sifting and show how an eavesdropper is detected.
Alice sends:
Bob measures in random bases:
Matching bases (sifted): qubits 1, 3, 4, 7 (4 of 8 = 50%). Sifted key bits: 0, 1, 0, 0
Eve intercepts all 8 qubits in random bases. She guesses wrong on average 4/8 = 50% of qubits. For the 4 sifted bits, she introduces errors at rate 25%.
Alice and Bob compare 2 sifted bits openly. If any disagree, Eve is present.
Exercises
5 problemsBB84 uses how many distinct measurement bases?
How many distinct quantum states are used in BB84?
What fraction of transmitted qubits are kept after basis sifting (on average)?
Unlock Exercise 3
Subscribe to PhysWeb Pro to access all exercises and track your progress.
Upgrade to Pro →An intercept-resend eavesdropper introduces what QBER (as a decimal)?
Unlock Exercise 4
Subscribe to PhysWeb Pro to access all exercises and track your progress.
Upgrade to Pro →Alice sends 2000 qubits in BB84. Expected raw key length after sifting?
Unlock Exercise 5
Subscribe to PhysWeb Pro to access all exercises and track your progress.
Upgrade to Pro →Key Takeaways
- BB84 uses 4 states in 2 conjugate bases; any eavesdropper introduces a 25% QBER detectable by Alice and Bob.
- Basis sifting keeps ~50% of transmitted qubits (those where Alice and Bob chose the same basis).
- Security is information-theoretic — valid against all attackers including quantum computers.
- Privacy amplification compresses the sifted key to eliminate Eve's partial knowledge.
- E91 uses Bell pairs and Bell inequality tests to certify security via entanglement non-locality.