qcrypto-bb84-entanglement-based-cv-qkd-and-key-distillation
Use for the protocols themselves: BB84 step by step, entanglement-based QKD, continuous-variable QKD and how it differs in hardware and reach, and the post-processing that turns raw detections into a usable key — sifting, error correction and privacy amplification, which is where most of the practical difficulty lives.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 5
- Forks
- 3
01 前言 Front Matter
- name
- qcrypto-bb84-entanglement-based-cv-qkd-and-key-distillation
- description
- Use for the protocols themselves: BB84 step by step, entanglement-based QKD, continuous-variable QKD and how it differs in hardware and reach, and the post-processing that turns raw detections into a usable key — sifting, error correction and privacy amplification, which is where most of the practical difficulty lives.
03 SKILL.md 正文
Quantum Cryptography: BB84, Entanglement-Based QKD, Continuous-Variable QKD, and From Raw Detections to a Usable Key
Part 2 of 6 of the Quantum Cryptography, Quantum Encryption and the Quantum Internet reference (plugin
quantum-cryptography-and-quantum-internet), covering §6–§9. Sibling skills:qcrypto-two-different-things-qubits-no-cloning-and-entanglement(§0–§5),qcrypto-security-claims-attacks-and-trusted-nodes(§10–§13),qcrypto-repeaters-memory-entanglement-distribution-and-satellite(§14–§19),qcrypto-official-position-qrng-quantum-threat-and-choosing(§20–§23),qcrypto-reference(§24–§29). Section numbers are shared across the set; a reference written as §N →skillpoints into that sibling skill.Currency: The protocols date to the 1980s and 90s. Two areas moved recently. See §24 →
qcrypto-referencefor quantum repeater demonstrations, and the government position on QKD.
⚠️ FIRST, THE TERMINOLOGY DISASTER — because almost every popular article gets this wrong and the two things are nearly opposites (§1 →
qcrypto-two-different-things-qubits-no-cloning-and-entanglement). ⚠️ POST-QUANTUM CRYPTOGRAPHY is classical mathematics running on ordinary computers, designed to resist quantum attack. It is what is actually being deployed (see a cryptography reference). ⚠️ QUANTUM CRYPTOGRAPHY / QKD uses quantum physics and special hardware to distribute keys. It is a niche technology that several major security agencies actively recommend AGAINST (§20 →qcrypto-official-position-qrng-quantum-threat-and-choosing). ⚠️ "Quantum-safe" and "quantum-secure" are marketing terms that get applied to both. When someone uses them, ask which they mean.Companion to a cryptography reference, which covers the classical primitives, the protocols in production, and the PQC migration.
⚠️ GOTCHA boxes mark where physics claims and engineering reality diverge.
The three ideas that organize this document:
- ⚠️ QKD's security is real physics and its threat model is narrower than advertised (§10 →
qcrypto-security-claims-attacks-and-trusted-nodes). It secures a key exchange against an eavesdropper on the channel. It does not authenticate, does not protect endpoints, and cannot bootstrap trust from nothing.- ⚠️ THE THEORY-IMPLEMENTATION GAP is the whole story (§11 →
qcrypto-security-claims-attacks-and-trusted-nodes). Every deployed QKD system that has been attacked was attacked through its hardware, not its protocol — the security proofs assume devices the engineers cannot actually build.- ⚠️ QUANTUM REPEATERS ARE THE BOTTLENECK (§14 →
qcrypto-repeaters-memory-entanglement-distribution-and-satellite, §24.1 →qcrypto-reference). Without them, quantum networks are point-to-point links chained through trusted nodes, which reintroduces exactly the trust QKD was supposed to eliminate.
§6. BB84
⚠️ Bennett and Brassard, 1984 — still the reference protocol.
⚠️ THE PROTOCOL
1. Alice sends photons, each encoded in a RANDOMLY chosen basis
with a RANDOMLY chosen bit value
2. Bob measures each in a RANDOMLY chosen basis
3. ⚠️ SIFTING — over a public classical channel they compare
BASES ONLY (never values) and discard where they differ.
⚠️ About half survive
4. They sacrifice a sample of the remaining bits to estimate
the ERROR RATE
⚠️ 5. IF THE ERROR RATE IS TOO HIGH, THEY ABORT — an eavesdropper
measuring in the wrong basis (§2) injects errors
6. Error correction and privacy amplification (§9)
⚠️ THE SECURITY INTUITION ⚠️ eavesdropping is not PREVENTED,
it is DETECTED. ⚠️ QKD does not stop interception; it stops you
USING a key that was intercepted
⚠️ Variants: B92 (simpler, two states), SARG04, and six-state protocols.
⚠️ GOTCHA — real systems don't have single-photon sources, and this created a real attack. ⚠️ Attenuated lasers emit a Poissonian number of photons, so some pulses contain two or more — and an eavesdropper can split off the extra photon and keep it, learning the bit without disturbing what Bob receives. That is the PHOTON NUMBER SPLITTING attack. ⚠️ The fix — DECOY STATES, where the sender randomly varies pulse intensity so that splitting produces detectable statistical anomalies — is now standard and essentially mandatory. A QKD system without decoy states is not secure with realistic sources.
§7. Entanglement-Based QKD
⚠️ E91 (Ekert, 1991) uses entangled pairs: ⚠️ a source distributes one photon to each
party, and correlated measurements produce the key. ⚠️ Security comes from BELL
INEQUALITY VIOLATION — if the correlations are strong enough to violate Bell, monogamy
(§4 → qcrypto-two-different-things-qubits-no-cloning-and-entanglement) bounds what any eavesdropper can know.
⚠️ BBM92 is the practical entangled-source variant.
⚠️ Advantages: ⚠️ the source can sit in the middle and need not be trusted in some
formulations; and no key exists anywhere until measurement, so there is nothing to steal
in advance.
⚠️ Disadvantages: ⚠️ entangled sources are harder, and rates are lower.
§8. Continuous-Variable QKD
⚠️ Encodes in the quadratures of the light field rather than in discrete photon states — ⚠️ and uses HOMODYNE DETECTION, which works with standard telecom photodiodes rather than single-photon detectors. ⚠️ Advantages: ⚠️ cheaper, room-temperature detectors, better compatibility with existing telecom equipment and wavelength multiplexing. ⚠️ Disadvantages: ⚠️ shorter range, more demanding error correction at low signal-to-noise, and security proofs that historically lagged discrete-variable ones.
§9. ⚠️ From Raw Detections to a Usable Key
⚠️ The part popular accounts skip entirely, and it is where most of the actual engineering lives.
⚠️ 1. SIFTING discard basis mismatches (§6)
⚠️ 2. PARAMETER ESTIMATION measure the QBER (quantum bit error
rate). ⚠️ ALL errors must be attributed to the eavesdropper,
because you cannot distinguish an attacker from a noisy fibre
⚠️ 3. ERROR RECONCILIATION ⚠️ classical error correction over the
public channel (Cascade, LDPC). ⚠️ This LEAKS information, and
the leak must be accounted for in step 4
⚠️ 4. ⚠️ PRIVACY AMPLIFICATION compress the corrected key with a
universal hash so that the eavesdropper's partial knowledge is
reduced to negligible. ⚠️ You throw away bits to buy secrecy
⚠️ 5. ⚠️ AUTHENTICATION of the classical channel — ⚠️ SEE §10
⚠️ THE RESULT ⚠️ the final secret key is much shorter than the raw
detections. ⚠️ Quoted "key rates" should always be SECRET key
rate after all of this, and marketing sometimes quotes raw
⚠️ Finite-key effects matter: ⚠️ asymptotic security proofs assume infinitely long keys; real finite blocks require a stricter analysis and yield less key. ⚠️ A system quoting asymptotic rates is quoting an upper bound it never achieves.
04 同仓库更多 Skills
white-paper-writing
Use when writing white papers, technical reports, policy documents, thought leadership pieces, or any long-form authoritative document. Triggers on requests to write, structure, outline, or review white papers, technical reports, position papers, policy briefs, or evidence-driven arguments. Also use for B2B content marketing strategy, technical documentation requiring authority, academic-style reports, or any document that must educate while persuading. Use when someone asks "how should I structure this" for a long-form document.
prose-technical-mechanics
Use when editing or writing prose at a technical/mechanical level: choosing between Anglo-Saxon and Latinate diction, placing information in topic vs stress positions, writing periodic vs cumulative sentences, handling sentence rhythm, punctuation as logic, transitions, paragraph structure, or phonesthetics. Use when someone wants to understand WHY prose works or doesn't, not just surface-level style advice. Triggers on word choice, sentence structure, emphasis, rhythm, diction, or any deep writing mechanics question.
prose-mechanics
Use when writing, editing, or analyzing prose style; when trying to avoid generic AI-sounding writing; when applying specific prose styles such as journalistic, academic, narrative, KJV biblical, Hemingway plain, Latinate/Jamesian, Orwellian, Augustan, Victorian, Early Modern (Bacon, Browne, Milton), or free indirect discourse; or when coaching someone on writing voice and mechanics. Triggers on any request to improve, analyze, or write in a specific prose style, to fix "AI-sounding" writing, to make prose more vivid or concrete, to vary sentence rhythm, or to understand how a particular writer achieves their effects.
narrative-structure
Use when structuring stories, pitches, presentations, white papers, or any persuasive narrative; analyzing the hero's journey in fiction or non-fiction; applying StoryBrand for business communication; designing narrative arcs for thought leadership; or understanding Vogler, Snyder, Propp, or Campbell frameworks. Triggers on any narrative structure, storytelling, pitch structure, StoryBrand, hero's journey, three-act structure, Freytag, Save the Cat, narrative arc, or "how should I structure this story/pitch/presentation" request.
legal-brief-writing
Use when writing legal briefs, motions, or any court filing; when analyzing judicial cognition and persuasion; when applying elite brief-writing techniques from Roberts, Clement, Kagan, Garner; or when structuring legal arguments for maximum persuasion. Also use for autistic/neurodivergent advocates who need to understand how their natural communication style maps to elite legal advocacy. Triggers on any legal writing, brief drafting, motion preparation, or legal argument structuring request.
journal-publishability-criteria
Use whenever a research paper, article or preprint is being written, revised, reviewed or published, and specifically before every publication of docs/paper.md. Covers what legitimate journals actually gate on, in order of gating — the editor's desk screen (scope, novelty, package problems), what reviewers judge (methodological soundness, claims the evidence can carry, statistical and qualitative reporting), EQUATOR reporting guidelines, the ICMJE authorship criteria, COPE's view of text recycling, the near-universal generative-AI policy (no AI author, disclosure, author responsibility), TOP 2025 transparency standards, how to verify a journal is legitimate, submitting without an institution, and a pre-submission checklist. Triggers on requests to evaluate, review, prepare or submit a paper, to judge publishability, to write a declarations or data-availability section, to disclose AI use, or to check a journal.