Capabilities of Quantum Computation
Page 04 gave you the machine: amplitudes, unitaries, interference, one sample per run. This page asks what that machine is for. A quantum computer is not a faster CPU. It is a narrow accelerator that wins only when a problem has structure interference can exploit, such as a hidden period or a Hamiltonian's spectrum, and when the answer can be read out in a few measurements. We go through the known algorithms in decreasing order of confidence, then put them on one scorecard. Page 06 then explains why the qubit counts below are so large.
Shor: period finding breaks public-key crypto
Factoring reduces to finding a period. Pick a random a coprime to N and look at
If r is even and a^(r/2) ≢ −1 (mod N), then (a^(r/2) − 1)(a^(r/2) + 1) ≡ 0 (mod N) without either factor being a multiple of N, so gcd(a^(r/2) ± 1, N) gives a nontrivial factor. A random a works with probability at least 1/2. Everything except finding r is classical and cheap. Finding r is classically as hard as factoring.
The quantum part runs in three steps:
- Superpose. Apply H to every qubit of a register of m ≈ 2n qubits, giving (1/√M) Σ_x |x⟩ with M = 2^m.
- Evaluate f reversibly. Modular exponentiation into a second register gives (1/√M) Σ_x |x⟩|aˣ mod N⟩. This is ordinary arithmetic (the Toffoli circuits from page 01), and it accounts for nearly all of the gate cost.
- Fourier transform the first register. The quantum Fourier transform maps |x⟩ → (1/√M) Σ_y e^(2πi·xy/M) |y⟩. The first register now holds a comb of x values spaced r apart, so the amplitudes interfere constructively only near y ≈ kM/r. Measuring gives such a y. Continued fractions on y/M recover r after a few repetitions.
The QFT costs only O(m²) gates. A classical FFT on 2^m numbers costs O(m·2^m), but the QFT does not have to output the spectrum. It only has to make you likely to sample a peak, and the Holevo limit from page 04 is respected because you get one y per run. The total is polynomial, roughly O(n³) gates for an n-bit modulus with schoolbook arithmetic. The best classical method, the number field sieve, is subexponential: exp(O(n^(1/3) (log n)^(2/3))). That gap is superpolynomial.
The same machinery solves discrete logarithms. Both problems are instances of the abelian hidden subgroup problem, and discrete logs over elliptic-curve groups fall the same way. So Shor breaks RSA, Diffie–Hellman, ECDH, ECDSA and EdDSA together. Symmetric ciphers and hashes are not hit by Shor, only by Grover's square root, which doubling the key length absorbs. This is why NIST's IR 8547 deprecates every quantum-vulnerable public-key algorithm after 2030 and disallows them after 2035, regardless of key size (NIST IR 8547). The replacements are ML-KEM and ML-DSA, finalised in 2024 (NIST PQC). The deadline matters before a quantum computer exists because of harvest now, decrypt later: ciphertext recorded today can be decrypted whenever the machine arrives.
How many qubits does breaking RSA-2048 take?
"Polynomial" says nothing about constants, and the constants are where the field has made its quietest progress. All three estimates below assume the same physical error rate, p = 10⁻³, and the same 1 µs error-correction cycle. The first two also assume a square grid with nearest-neighbour connections. The third trades that grid for long-range links.
| Estimate | Physical qubits | Runtime | Key ideas | Status |
|---|---|---|---|---|
| Gidney & Ekerå 2019 | 20 million | 8 hours | windowed arithmetic, surface code, nearest-neighbour grid | peer-reviewed |
| Gidney 2025 | < 1 million | just under a week | approximate residue arithmetic, yoked surface codes, magic-state cultivation | preprint |
| Pinnacle architecture, 2026 | < 100,000 | — | qLDPC (generalized bicycle) codes | preprint |
On the same grid hardware, the count fell 20× in six years through better arithmetic and better storage of idle logical qubits. That came from algorithms and architecture alone, not better qubits. The last row goes another order of magnitude down, but with a catch. qLDPC codes need long-range connectivity between qubits and fast decoding of a harder code. A planar superconducting chip does not natively provide the first, and page 06 explains why both are hard. Even so, the trend line is the useful fact. The machine that breaks RSA has shrunk from "a building full of dilution refrigerators" to something a hardware roadmap could plausibly reach. No machine today is anywhere close. Page 08 covers what current logical-qubit demonstrations actually show.
Grover, and why quadratic is not enough
Grover's algorithm finds a marked item among N using O(√N) oracle queries. Classically you need O(N), and the bound is tight: no quantum algorithm does unstructured search in fewer than Ω(√N) queries. Geometrically, each Grover iteration rotates the state by an angle of about 2/√N toward the marked state, so about (π/4)√N rotations land you there. It is fully general: any brute-force search, any NP verifier used as an oracle, gets the square root. That generality is why it appears in so many pitches.
The problem is constants. A classical core evaluates a cheap predicate in about a nanosecond. On a surface-code machine, every oracle call is compiled into Toffoli gates, each built from distilled magic states, with error-correction cycles of about a microsecond. So a single logical oracle call plausibly costs something like a millisecond. Treat that as an assumption for the sketch below, not a measurement. Let t_c be the classical time per evaluation, t_q the quantum time per oracle call, and P the number of classical cores. The crossover happens where the two run times match:
Take illustrative, assumed numbers: t_c = 1 ns, t_q = 1 ms, P = 10⁴ cores. Then N* = (10⁴·10⁶)² = 10²⁰, and the quantum machine needs 10¹⁰ · 1 ms ≈ 10⁷ s, about four months, just to break even with a modest cluster. Parallelising Grover does not help much either: splitting the search over K quantum machines saves only a factor of √K. Babbush et al. did this analysis carefully, using real surface-code constructions. They conclude that quadratic speedups will not give an advantage on early fault-tolerant machines unless error correction gets much cheaper, and that quartic speedups look far more practical (Focus beyond quadratic speedups, PRX Quantum 2021). Hoefler, Häner and Troyer reach the same rule from another direction: the useful cases are small-data problems with super-quadratic speedups (Disentangling hype from practicality, CACM 2023).
Simulating chemistry and materials
This is Feynman's original application from page 02, and still the most likely first source of commercial value. The task is to find low-lying energies of a molecular or lattice Hamiltonian H. Reaction rates, binding energies and catalytic pathways all come from energy differences, and you need "chemical accuracy", about 1.6 millihartree (≈ 1 kcal/mol), to predict them.
The core algorithm is quantum phase estimation. Prepare a state |ψ⟩ that overlaps the ground state |E₀⟩. Apply controlled U = e^(−iHt) for doubling powers of t, and use phase kickback (page 04) to write the eigenphase into an ancilla register. An inverse QFT then reads it out:
The input is small: a list of orbital integrals, which grows polynomially with the number of orbitals. The output is small: one number. The hard part, a wavefunction with exponentially many amplitudes, lives only inside the machine. That is exactly the profile the previous section said you need.
The flagship target is FeMoco, the iron–molybdenum cofactor of nitrogenase, which fixes nitrogen at room temperature while industry burns a percentage-level share of global energy on the Haber–Bosch process. Its electrons are strongly correlated, the regime where classical workhorses like coupled cluster lose reliability and exact methods scale exponentially. Reiher et al. made the first detailed end-to-end estimate (Elucidating reaction mechanisms, PNAS 2017). Better Hamiltonian encodings have since cut the cost by orders of magnitude. With tensor hypercontraction, Lee et al. estimate about four million physical qubits and under four days, assuming 1 µs cycles and p ≤ 0.1% (Even more efficient chemistry, PRX Quantum 2021). Catalysts, battery cathodes, high-temperature superconductors (Hubbard-type models) and photochemistry all fall in the same class.
Two honest caveats. First, phase estimation succeeds with probability |⟨E₀|ψ⟩|², and for large strongly correlated systems nobody can guarantee an easy-to-prepare state with good overlap. Second, classical heuristics (DMRG, selected CI, quantum Monte Carlo) keep improving. A careful review found no generic evidence yet for an exponential advantage in ground-state chemistry, and the authors suggest it is prudent to assume exponential speedups are not generically available. Quantum computers may still be useful, through polynomial gains on specific hard instances (Is there evidence for exponential quantum advantage in quantum chemistry?, Nature Communications 2023). Dynamics, meaning time evolution rather than ground states, is where the case for exponential advantage is cleanest.
Optimisation and machine learning: read the fine print
Linear systems (HHL). Harrow, Hassidim and Lloyd showed how to prepare |x⟩ ∝ A⁻¹|b⟩ in time polylogarithmic in the dimension of A (HHL 2009). That sounds exponential, but Aaronson's list of caveats applies (Read the fine print, Nature Physics 2015):
- |b⟩ must be loadable fast, which needs QRAM or special structure. Loading N arbitrary numbers costs Ω(N) and erases the gain.
- A must be sparse and well conditioned, because the cost grows with the condition number κ.
- The output is a quantum state, not a vector. You can estimate a few quantities ⟨x|M|x⟩, but reading all of x costs Ω(N) runs.
Each caveat is a place where the speedup can leak away, and for "load my big dataset" applications at least one usually does.
Dequantization. In 2018 Ewin Tang showed that the quantum recommendation-system algorithm can be matched classically, up to polynomial factors, once the classical algorithm gets the same sample-and-query access to the data that the quantum one assumed (A quantum-inspired classical algorithm). Similar results followed for several low-rank quantum ML proposals. The lesson is that many "exponential" QML speedups came from the input model, not from the quantum computer.
QAOA and annealing. The Quantum Approximate Optimization Algorithm alternates a problem Hamiltonian with a mixing Hamiltonian over p layers and tunes the angles classically (Farhi, Goldstone & Gutmann 2014). It is a heuristic. There is no proof it beats the best classical heuristics on practical instances, and BQP is not believed to contain NP-complete problems (page 02). So the realistic ceiling is a modest speedup on some instance families. Quantum annealing is in the same position. Whatever vendors say, no optimisation or ML workload has a demonstrated quantum advantage today.
The scorecard
| Application | Speedup type | Qubits / time needed | Confidence |
|---|---|---|---|
| Factoring RSA-2048 (Shor) | superpolynomial vs NFS | < 1M physical, ~1 week; < 100k with qLDPC preprint | high (math proven; hardware is the gap) |
| Elliptic-curve discrete log | superpolynomial | not costed here | high |
| Chemistry, strongly correlated (FeMoco) | exponential suspected, polynomial likely | ~4M physical, < 4 days | medium–high |
| Quantum dynamics, lattice models | exponential (best-founded) | not costed here; instance-dependent | medium–high |
| Unstructured search (Grover) | quadratic | illustrative sketch above: break-even needs months; see Babbush et al. | low for early FT machines |
| Linear systems / HHL | exponential only under strict input/output conditions | depends on QRAM, which does not exist at scale | low |
| Optimisation (QAOA, annealing) | unknown, heuristic | — | unproven |
| Quantum ML | often dequantized | — | unproven |
| Finance (Monte Carlo pricing) | quadratic (amplitude estimation) | same overhead problem as Grover | low |
Sources and further reading, verified
- Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer — Peter Shor (1994/1997) · the original algorithm, factoring and discrete log in one paper.
- A fast quantum mechanical algorithm for database search — Lov Grover (1996) · the √N search algorithm.
- How to factor 2048 bit RSA integers in 8 hours using 20 million noisy qubits — Gidney & Ekerå (2019) · the 2019 baseline estimate.
- How to factor 2048 bit RSA integers with less than a million noisy qubits — Gidney (2025) · preprint the 20× reduction.
- The Pinnacle Architecture: reducing the cost of breaking RSA-2048 to 100 000 physical qubits — Iceberg Quantum (2026) · preprint qLDPC codes, which need non-local connectivity.
- Focus beyond quadratic speedups for error-corrected quantum advantage — Babbush, McClean, Newman, Gidney, Boixo, Neven (2021) · why Grover-type gains don't survive error correction.
- Disentangling Hype from Practicality: On Realistically Achieving Quantum Advantage — Hoefler, Häner, Troyer (2023) · the small-data, super-quadratic rule.
- Elucidating Reaction Mechanisms on Quantum Computers — Reiher, Wiebe, Svore, Wecker, Troyer (2017) · the first end-to-end FeMoco estimate.
- Even more efficient quantum computations of chemistry through tensor hypercontraction — Lee et al. (2021) · about 4M physical qubits for FeMoco.
- Is there evidence for exponential quantum advantage in quantum chemistry? — Lee et al. (2023) · a careful sceptic's view of the chemistry case.
- Read the fine print — Scott Aaronson (2015) · the caveats on HHL and quantum ML.
- A quantum-inspired classical algorithm for recommendation systems — Ewin Tang (2018) · the first dequantization.
Check yourself
- Shor by hand — Factor N = 15 with a = 7. List 7ˣ mod 15 for x = 0…4, read off r, and compute both gcds. A good answer finds r = 4, 7² ≡ 4, and factors gcd(3,15) = 3, gcd(5,15) = 5. Then explain why a = 14 fails.
- Period finding in numpy code — For N = 21, a = 2, M = 512, build the first-register amplitudes left after measuring f(x) = 1 (an indicator on x ≡ 0 mod r), normalise them, and apply np.fft.ifft(·, norm="ortho") as the QFT. Sample y from |amp|² and recover r with Fraction(y, M).limit_denominator(N). A good answer plots peaks near multiples of 512/6, recovers r = 6 within a few samples, and notes which samples give only a divisor of r.
- Grover break-even — Using N* = (P·t_q/t_c)² with P = 10⁴ and t_c = 1 ns, compute N* and the quantum runtime at break-even for t_q = 1 ms and for t_q = 10 µs. Then redo the 1 ms case for a hypothetical quartic speedup (N^(1/4) queries). A good answer gets 10²⁰ and about four months, then 10¹⁶ and about 17 minutes, and for the quartic case N* ≈ 2×10¹³ with about 2 seconds. It also notes that the quadratic break-even runtime is P·t_q²/t_c. The verdict therefore hinges on the error-correction cost t_q, while the quartic case holds up over a wide range of it, which is Babbush et al.'s point.
- Spot the leak — A startup claims "exponential speedup for portfolio optimisation via HHL on 10⁶ assets". Name every place in the pipeline where the speedup can disappear. A good answer covers loading the covariance matrix, the condition number, needing the full weight vector rather than one expectation value, and whether a dequantized classical algorithm already exists.