Quantum Computing – Harvest Now Decrypt Later Threat
Data encrypted with RSA-2048 may be decrypted within a decade.
- Quantum computing is not a faster classical computer — it's a different model exploiting superposition and interference.
- A qubit: α|0⟩ + β|1⟩ where |α|²+|β|²=1. Measurement collapses to one classical bit.
- n qubits represent all 2^n basis states simultaneously — quantum parallelism.
- Entanglement: qubits correlate so measuring one determines the other instantly.
- Quantum speedup: exponential for factoring (Shor), quadratic for search (Grover). No speedup for most everyday computation.
- Cryptographic threat: Shor breaks RSA/ECC. NIST post-quantum standards (Kyber, Dilithium) are being deployed now.
A classical bit is 0 or 1. A qubit is 0, 1, or any superposition of both simultaneously — until you measure it. This is not just faster storage; it is a fundamentally different computation model. Quantum parallelism lets a quantum computer evaluate a function on all possible inputs simultaneously. The challenge: extracting that answer without collapsing the superposition. This is what quantum algorithms do — they constructively interfere the correct answer while destructively interfering incorrect ones.
Quantum computing is not a faster classical computer. It is a fundamentally different computational model that exploits quantum mechanical phenomena — superposition, entanglement, and interference — to solve specific problem classes that are exponentially hard for classical computers.
The developer's mental model: a quantum computer with n qubits represents a superposition of all 2^n possible n-bit states simultaneously. A quantum algorithm manipulates this superposition to amplify the probability of the correct answer. Measurement collapses the superposition to a single outcome. The art of quantum algorithm design is arranging the interference so the correct answer has high probability.
As of 2026, quantum computers with 100-1000 physical qubits exist but are noisy (NISQ era). Fault-tolerant quantum computers that can run Shor's algorithm to break RSA-2048 likely require millions of physical qubits and remain years away. But the cryptographic threat is taken seriously: post-quantum cryptography standardisation (NIST 2024) is happening now.
Qubits and Quantum Gates
A qubit state is |ψ⟩ = α|0⟩ + β|1⟩ where |α|² + |β|² = 1. α and β are probability amplitudes. Upon measurement, the qubit collapses to |0⟩ with probability |α|² or |1⟩ with probability |β|².
- Hadamard (H): |0⟩ → (|0⟩+|1⟩)/√2 — creates equal superposition
- Pauli-X: |0⟩ → |1⟩, |1⟩ → |0⟩ — quantum NOT gate
- CNOT: Flips target qubit if control qubit is |1⟩ — creates entanglement
- Phase gates (T, S): Add phase to |1⟩ component — essential for interference
A subtle but critical point: the phase of a qubit is relative, not absolute. The state |ψ⟩ and e^{iθ}|ψ⟩ produce the same measurement probabilities but interfere differently with other qubits. This is why interference is the engine of quantum speedup.
- |0⟩ + |1⟩ and |0⟩ - |1⟩ both measure 50/50. But they interfere differently.
- (|0⟩+|1⟩)/√2 = H|0⟩. (|0⟩-|1⟩)/√2 = H|1⟩.
- Apply H again to the first: you get back |0⟩. Apply H to the second: you get |1⟩.
- Phase is how quantum algorithms 'mark' correct answers before interference amplifies them.
Superposition, Entanglement, and Interference — The Three Engines
Superposition: A qubit can be in both |0⟩ and |1⟩ states simultaneously. n qubits can represent all 2^n states simultaneously — this is quantum parallelism. But careful: you cannot read that whole superposition out. Measurement collapses it to a single state. The challenge is to manipulate the superposition so that the probability of measuring the correct answer is high.
Entanglement: Two qubits can be correlated such that measuring one instantly determines the other, regardless of distance. A Bell state (|00⟩+|11⟩)/√2 collapses to either both-0 or both-1 with equal probability — never one-0-one-1. Entanglement is what makes quantum cryptography (BB84 protocol) possible and enables superdense coding.
Interference: Quantum states have phases. Quantum algorithms are designed so that probability amplitudes of wrong answers cancel (destructive interference) while the correct answer's amplitude grows (constructive interference). This is not just 'trying all answers at once' — it's arranging the computation so the right answer emerges.
Quantum Advantage — When Quantum Actually Helps
Quantum computers are not universally faster. They provide speedup for specific problem classes:
Exponential speedup: - Shor's algorithm — factoring integers (breaks RSA, ECC). - Quantum simulation — simulating quantum chemistry (materials science, drug discovery). - Discrete logarithm problems.
Quadratic speedup: - Grover's search — unstructured search O(√N) vs classical O(N). - Quantum counting — counting solutions to a search problem.
No known speedup (classical remains optimal or near-optimal): - Sorting, most string processing, graph traversal, linear algebra for classical data. - Neural network training (except for specific quantum ML models on quantum data). - Everyday computation — your web server, database, or game engine will never be replaced by a quantum computer.
The most important practical takeaway: quantum speedup is not a function of data size but of problem structure. Shor's algorithm exploits periodicity. Grover's algorithm uses amplitude amplification. Without these structures, quantum offers nothing.
Post-Quantum Cryptography — What Developers Need to Do Now
Shor's algorithm breaks RSA and ECC — the foundations of modern TLS, digital signatures, and code signing. A sufficiently powerful fault-tolerant quantum computer renders today's public-key infrastructure obsolete overnight.
- CRYSTALS-Kyber (ML-KEM): Key encapsulation mechanism (key exchange replacement).
- CRYSTALS-Dilithium (ML-DSA): Digital signatures (primary signature algorithm).
- FALCON (FN-DSA): Digital signature alternative (smaller signatures, more complex implementation).
- SPHINCS+ (SLH-DSA): Stateless hash-based signatures (no mathematical foundation to break, but larger signatures).
The migration strategy is hybrid cryptography: use both classical and post-quantum algorithms in parallel. A TLS handshake that negotiates both ECDHE and Kyber is secure against both today's attackers and tomorrow's quantum computers. Clients that don't support post-quantum algorithms fall back to classical.
Harvest now, decrypt later is a real threat: an adversary can store encrypted traffic today and decrypt it years later when quantum computers become available. If your data needs to remain confidential for 10+ years, you should be using hybrid encryption now.
The timeline: NIST finalised standards in 2024. Crypto libraries are integrating (BoringSSL, AWS-LC, OpenSSL 3.x with providers). Cloud providers offer PQC KEM options for internal encryption. Major browsers and CDNs are experimenting with hybrid TLS. Start planning your migration now — not when the first RSA break is announced.
The TLS Migration That Came Too Late
- Post-quantum cryptography is not for the distant future — NIST standards are ready now. Deploy them before you need them.
- Harvest now, decrypt later is a real threat for long-lived data. Encrypted today may be readable tomorrow.
- Build crypto-agility: separate cryptographic policy from application code so you can rotate algorithms without recompilation.
- Don't wait for the first RSA break to start migrating — that's the day you've already lost.
Key takeaways
Common mistakes to avoid
4 patternsThinking quantum computing is 'faster classical computing' for everything
Believing superposition means 'all answers computed at once' like parallel classical cores
Assuming post-quantum cryptography is decades away — no need to act now
Treating qubit count as the only metric for quantum computer capability
Interview Questions on This Topic
What is superposition and how many states can n qubits represent simultaneously?
Frequently Asked Questions
That's Quantum Algorithms. Mark it forged?
3 min read · try the examples if you haven't