← Back to section · Research & Analysis
Paper Review: Gidney–Ekerå 2021 — How Many Qubits Does It Actually Take to Factor an RSA-2048?
Gidney and Ekerå's 2021 estimate is famous: under stated assumptions, roughly twenty million noisy physical qubits running for about eight hours could factor RSA-2048. This review explains the costing method, the assumptions behind every number, and why it is neither a prophecy nor a comfort.
Background: from “exponential speed-up” to an engineering bill
Shor 1994 proved factoring is polynomial-time in the quantum model, but polynomial time does not mean buildable: logical qubits must be synthesized from many physical qubits through quantum error correction, non-Clifford gates must be fed by magic-state distillation, and every link in that chain charges a tax. A well-known estimate from the early 2010s (such as the 2012 work of Fowler and co-authors) put the bill at roughly a billion physical qubits — so large it nearly read as “not in our lifetimes,” yet too coarse to guide planning. The question became: if the algorithm implementation is optimized in earnest, how far can the bill actually come down?
In 2021, Craig Gidney and Martin Ekerå published “How to factor 2048 bit RSA integers in 8 hours using 20 million noisy qubits” in the journal Quantum — the most detailed end-to-end estimate of its time. The title is the conclusion: under their system of assumptions, about twenty million noisy physical qubits, running for about eight hours, can factor a 2048-bit RSA integer.
Method: a ledger kept from logical gates down to physical floor space
The paper’s method is to open up the entire implementation chain and cost it line by line. At the algorithm layer, it uses the Ekerå–Håstad short-discrete-logarithm variant of Shor’s algorithm with windowed arithmetic: lookup windows batch many bit-level operations together, sharply reducing the total count of the most expensive non-Clifford (Toffoli) gates. At the fault-tolerance layer, it adopts the surface code and derives, from an assumed physical gate error rate (around one in a thousand), how many physical qubits each logical qubit requires and how many code cycles each logical operation takes. At the architecture layer, it carefully lays out the magic-state distillation factories — the “workshops” producing high-quality magic states often occupy more area than the computation region itself — balancing factory throughput against the compute region’s demand, and counting realistic overheads such as routing and idle space. Multiplying logical qubit counts, factory area, and code cycles yields the total physical qubit count and total runtime.
It is worth stressing that nothing in this chain is a hardware measurement: every number is derived from a model under clearly declared assumptions. The paper’s value lies precisely in putting all assumptions on the table — what error rate, how code distance scales with it, which factory protocol — so anyone can swap one out and recompute.
Two terms, in plain accounting: why the surface code and magic states eat the budget
To let non-specialist readers see where the bill goes, two terms are worth unpacking. The surface code spreads one logical qubit’s information across a large grid of physical qubits, using parity checks between neighbors to detect and correct errors; it has a high fault-tolerance threshold and is the most favored route today, but the physical qubits consumed per logical qubit grow quadratically with the stringency of the target error rate — the stricter the target, the wider the spread. Magic states are the other tax: the operations the surface code performs natively lack one class of gate needed for arbitrary quantum algorithms, and that class must be driven by high-purity resource states “distilled” in advance; a distillation factory is essentially a workshop that refines a few high-quality states from many low-quality inputs, and its footprint and time cost frequently exceed the computation region itself in the total bill.
Understanding these two taxes shows where the leverage in the estimate lies: every non-Clifford gate saved at the algorithm layer simultaneously saves factory capacity, and every improvement in physical error rate shrinks the surface-code spread overall. The twenty-million figure is the sum of these two taxes at particular rates — not any kind of physical lower bound.
Conclusions and limits: where twenty million comes from, and why it is not a prophecy
The conclusion: under the stated assumptions, factoring RSA-2048 costs roughly twenty million physical qubits times about eight hours. Relative to the older billion-scale estimates, the reduction comes mainly from three stacked sources: gate-count optimizations at the algorithm layer (windowing and shorter exponent handling), improved magic-state factory layouts, and finer modeling of error-correction overheads. This is a useful reminder that resource estimates usually move because of compiler and algorithm engineering, not physics breakthroughs — and, by the same token, future estimates could be pushed further down by continued optimization, or back up by more honest overhead accounting.
The limits must be read alongside. First, fragility of assumptions: if physical error rates are an order of magnitude worse than assumed, error-correction overhead explodes and the twenty-million figure immediately fails; if hardware beats the assumptions, the figure falls further. Second, “noisy qubits” means physical qubits, and at the time of publication the largest quantum processors were on the order of hundreds of physical qubits — the gap to twenty million is an engineering chasm of orders of magnitude, and the estimate does not, and does not try to, predict how many years crossing it will take. Third, running for eight hours presumes the whole machine operates stably under error correction throughout — a demand on control systems, calibration, and manufacturing consistency that “enough qubits” does not begin to summarize.
Impact: the threat timetable turns from slogan into scenarios
This paper is one of the most important anchors for the variable Z in Mosca’s framework: it gives no year for Z, but it turns the “cryptographically relevant quantum computer” from an abstraction into an engineering checklist with concrete parameters, so “how far away is it” can be checked item by item against hardware roadmaps. When national migration guides and risk reports cite quantum-threat timelines, estimates of this kind are usually what stands behind them.
Within this site’s review series, it bookends Shor 1994: Shor supplied the theorem of exponential speed-up; Gidney–Ekerå translated the theorem into an engineering bill. The right way to read such a paper is as input to scenario planning — not “is its implied year correct,” but “under its assumptions, does my X+Y cross the line, and which way does the conclusion tip when the assumptions move?” The estimates will keep changing; the direction and size of the changes are themselves information about how fast the threat is approaching.
Tags: resource estimationRSA-2048fault-tolerant quantum computingpaper review