Quantum Cryptography: A Practical Guide to Principles and Engineering
This guide explains how quantum cryptography differs from post-quantum cryptography, then walks through the core protocols and their engineering constraints: oblivious transfer and reduction direction, quantum teleportation and repeater modules, the impossibility theorem for quantum bit commitment, and relativistic zero-knowledge parameters. It also includes a comparison of QKD and PQC deployment options and a developer checklist for getting started with PQC and crypto agility.
1. Background: The Conclusion First
What is quantum cryptography? Instead of relying on computational complexity assumptions, it guarantees security through the laws of physics. Modern public-key systems depend on the hardness of integer factorization, discrete logarithms, and the shortest vector problem in lattices. Shor’s algorithm threatens public-key systems, while Grover’s algorithm threatens symmetric ones. As a result, cryptography has split into two paths: post-quantum cryptography (PQC), which runs on classical computers and resists quantum attacks, and quantum cryptography, which builds protocols directly from quantum mechanics.
Representative work in this area includes Rabin’s original oblivious transfer paper (1981), the Brassard–Crépeau–Mayer 1-out-of-2 OT and the strengthened Rabin OT reduction (around 1988), Bennett et al.’s quantum teleportation (Phys. Rev. Lett. 70, 1993), the Mayers and Lo–Chau impossibility theorems for quantum bit commitment (1996–1998), and recent experimental work on relativistic zero-knowledge proofs. The conclusions below can all be traced back to these primary sources.
2. Oblivious Transfer: Get the Reduction Direction Right
A note on scope: the reductions below preserve polynomial time and computational security. There is no unconditional equivalence.
In 1-out-of-2 OT, the sender holds m₀ and m₁, the receiver obtains m_b, and the sender does not learn b. In strengthened Rabin OT (OT^{1/2}_1), the receiver gets the message with probability 1/2. The correct conclusion is OT^{1/2}_1 ⇒ OT^2_1; the reverse does not hold without additional assumptions. So the two forms are not “equivalent.”
Standard implementation (simplified DH-style 1-out-of-2 OT):
# Sender: A = g^a, publish A# Receiver: pick random k, B = A^k * g^(-b*x), send B# Sender: pk_x = A / B, pk_{1-x} = g^b# Both sides compute DH keys and derive k0/k1 via KDF, masking m0/m1
Common implementation mistakes: reusing base OT, reusing PRG seeds, and skipping the consistency check, which enables selective failure attacks. To detect these issues, run random spot checks and correlation tests on the OT Extension output.
3. How Quantum Teleportation Works
An unknown state |ψ⟩=α|0⟩+β|1⟩ is transferred without sending the particle itself. Alice and Bob pre-share |Φ⁺⟩. Alice performs a Bell-basis measurement to obtain two classical bits, sends them to Bob over a classical channel, and Bob applies I/X/Z/XZ to recover the state. The classical communication cannot be omitted, as guaranteed by the no-cloning theorem and the no-signaling theorem.
Building a quantum repeater: four essential modules and their coordination constraints. The conclusion is that long distance requires repeaters. The modules are quantum memory nodes, a Bell-state measurement module, a low-latency classical coordination layer, and error correction and purification modules. A cloud platform also needs independent clock synchronization and separation of the classical control plane from the quantum data plane.
How to choose: QKD versus hybrid PQC deployment.
| Option | Maturity | Suitable links | Main failure modes |
|---|---|---|---|
| QKD | Pilot | Metropolitan fiber | Detector noise, distance limits |
| ML-KEM/ML-DSA | Standardized | Any IP network | Wrong parameters, handshake bloat |
| Quantum bit commitment | Lab | Dedicated quantum links | Decoherence, device deviations |
4. Quantum Bit Commitment: The Impossibility Theorem Is the Premise
Unconditionally information-theoretically secure quantum bit commitment is ruled out by the May–Löyd impossibility theorem. No scheme is “unconditionally provably secure.” Existing schemes hold only in restricted models, and their assumptions must be listed one by one with the corresponding reference numbers: noise or storage bandwidth limits, device trustworthiness, relativistic constraints, and computational assumptions. The description of classical schemes being broken by quantum attacks is conceptual only and does not expand on exploitable details. In engineering, decoherence, dark counts, and device imperfections also come into play, which has led to device-independent cryptography.
5. Engineering Parameters for Relativistic Zero-Knowledge Proofs
Relativistic zero-knowledge proofs use the finite speed of light to constrain multiple spatially separated verifier nodes, so the prover cannot collude within the delay window. The experimental setup requires geographically separated nodes, nanosecond-level clock synchronization, fast randomness, and immediate measurement. Key parameter ranges (node spacing, upper bound on synchronization error, and the relationship between the commitment window and error rate) must state the measurement basis and the source. “Nanosecond-level” alone is not enough.
6. Developer Checklist
- Prioritize PQC: adopt ML-KEM-768 and ML-DSA. For hybrid key exchange, concatenate the KDF input in the order “shared secret || both public keys.”
- Build a crypto-agility abstraction layer: standardize the interface signature as encrypt(ctx, alg_id, data), forbid hard-coded algorithm identifiers, and keep a rollback switch.
- Track QKD interface and certification standards, and reserve interfaces for network evolution.
- Apply formal verification and side-channel audits to OT and zero-knowledge proof implementations.
Quantum cryptography still needs protocol standardization, better devices, and formal verification, but the paradigm that “security comes from the laws of physics” is reshaping the technical roadmap.
