Curriculum / Quantum Cryptography / Device-Independent QKD
Device-Independent QKD
Understand how Bell inequality violations enable device-independent security.
Device-Independent QKD
Standard QKD requires trusting your measurement devices. If a manufacturer installs a backdoor in a photon detector, the security proof breaks down. Device-independent QKD (DI-QKD) removes this requirement: security is certified by the observed violation of Bell inequalities, requiring no assumptions about the internal workings of Alice's or Bob's devices.
The CHSH Bell Inequality
Recall the CHSH test from the Bell inequalities lesson earlier in this track: for any two-qubit experiment with local hidden variables (classical physics), S = |E(a,b) − E(a,b') + E(a',b) + E(a',b')| ≤ 2
Where E(x,y) = correlation between Alice measuring in direction x and Bob measuring in direction y.
Quantum mechanics violates this: For the optimal settings with a Bell pair, S = 2√2 ≈ 2.828.
Why this matters for security: If Eve has intercepted and replaced the qubits with classical correlated bits, S ≤ 2 (classical bound). A violation of S > 2 proves genuine entanglement was used, which in turn certifies that no classical hidden variable (including a backdoor in the device) could have predetermined the measurement outcomes.
DI-QKD Protocol Structure
- 1.Generate raw bits using E91-style entanglement
- 2.Test a subset of rounds for Bell violation: compute S from those rounds
- 3.If S > 2 + ε: device is genuinely quantum, extract key
- 4.If S ≤ 2 + ε: abort, device may be compromised
The key insight is that a high CHSH value S certifies not just that the devices are quantum, but specifically that the measurements have sufficient quantum randomness to support key extraction.
2022 Experimental Breakthrough
All three closed both loopholes (detection and locality) for the first time, validating DI-QKD as experimentally feasible. Three simultaneous papers (Oxford, Munich, NIST groups) published in Nature in 2022 demonstrated loophole-free Bell test experiments:
Detection loophole: If detectors miss too many photons, the experimental sample is biased and may not represent the true quantum statistics. Closing this requires high-efficiency detectors (>82.8% for two parties).
This is the opening of the lesson. The full walkthrough, the interactive circuit, and the graded challenge continue inside myqubit.
How this lesson works
A guided reading lesson with interactive knowledge checks. Concepts are explained step by step with circuit diagrams and runnable examples, and you confirm understanding before moving on.
Part of: Quantum Cryptography
Master quantum key distribution, the threat quantum computers pose to classical cryptography, and post-quantum cryptographic standards.
This lesson is part of Pro
Unlock Quantum Cryptography and all 10 tracks with Pro: $12.99/month, $79/year, or $97 lifetime. Start with the free track first if you are new.