Quantum Key Distribution: BB84
Investigate quantum key distribution through the BB84 protocol.
Question
How can two people create a secret key and detect someone listening to the quantum channel?
Goals
- Simulate state preparation, measurement, and key sifting in BB84.
- Measure the errors caused by an intercept-and-resend attack.
Method
Send random quantum states in two incompatible measurement bases.
- Let Alice choose random bits and bases, and let Bob measure in random bases.
- Keep only positions where their bases agree and compare a sample for errors.
- Insert an eavesdropper and observe how the quantum bit error rate changes.