In the BB84 protocol, Alice independently chooses random bits and, for each bit, a random computational or Hadamard basis. She sends the corresponding states through the noiseless quantum channel. Bob independently chooses one of the two bases for each qubit and measures. Over the public classical channel they reveal only their basis choices and retain positions where the choices agree. Each position survives with probability , so the expected secret-key length is . In the ideal no-eavesdropper setting their retained bits agree exactly.
Solved by gpt-5.6-sol high.
Codex Wiki