QuantumAtlas

Research Explained · Algorithms

How to Factor 2048 Bit RSA Integers with Less than a Million Noisy Qubits

Craig Gidney

Google Quantum AI · 2025 · Difficulty ★★★★☆

Reference

Gidney, C. (2025). How to factor 2048 bit RSA integers with less than a million noisy qubits. arXiv:2505.15917.

Preprint: arXiv:2505.15917

This page is an independent explanation. For exact wording, figures, and data, read the original paper.

The short version

Craig Gidney estimates that a quantum computer with fewer than one million noisy qubits could factor a 2048-bit RSA number in under a week, about twenty times fewer qubits than his own 2019 estimate. The paper shows how software and error-correction improvements can bring a cryptographically relevant machine closer.

Key findings

  • RSA-2048 could be factored with fewer than one million noisy physical qubits in less than a week, under stated hardware assumptions.
  • The assumptions include a square grid with nearest-neighbor connections, a gate error rate of 0.1 percent, a surface-code cycle time of 1 microsecond, and a classical control reaction time of 10 microseconds.
  • The 2019 estimate by Gidney and Ekerå was 20 million noisy qubits for about eight hours, so the qubit count fell by roughly a factor of twenty while runtime rose.
  • The improvement comes from combining approximate residue arithmetic, yoked surface codes, and magic state cultivation.

Background: why this paper was written

Estimating the cost of Shor's algorithm for realistic key sizes is an exercise in resource counting. One must choose an implementation of modular exponentiation, an error-correcting code, a way to perform the non-Clifford gates, and hardware assumptions, and then count qubits and time. Early estimates in 2012 by Fowler and coauthors gave about a billion physical qubits, and Gidney and Ekerå in 2019 brought it down to about 20 million qubits for eight hours.

Since 2019, several ideas had appeared that could cut the cost further. Chevignard, Fouque, and Schrottenloher proposed in 2024 a way to do the arithmetic with far fewer logical qubits, using approximate residue number system techniques. Gidney developed yoked surface codes in 2023, which encode idle logical qubits at much lower overhead, and magic state cultivation in 2024, which produces the T states needed for non-Clifford gates much more cheaply than distillation.

What the researchers did

Gidney combines these ideas in a single design. The modular exponentiation is done with an approximate residue arithmetic that lowers the number of logical qubits to about 1,400, compared with about 6,000 in the previous design. The logical qubits are protected by surface codes, with idle qubits stored in a denser yoked code that uses fewer physical qubits per logical qubit, and active qubits using a standard surface code.

The non-Clifford gates, which in earlier designs required large magic state distillation factories that took up much of the machine, are produced by magic state cultivation, which grows a high-quality T state inside a small patch. The cost of the Toffoli gates that dominate the algorithm falls accordingly. The factoring needs on the order of a billion Toffoli gates, and the runtime is set by the rate of these operations.

The paper gives a detailed accounting of the physical layout and the time, based on simulations of the error rates of the surface code at a gate error of 0.1 percent, and states clearly how the estimate would change with different assumptions. At the quoted assumptions, the total comes to fewer than a million physical qubits and a runtime of less than a week.

Results

The central estimate is a machine with fewer than a million noisy qubits running for under a week, which is a major reduction from the 20 million qubits of 2019.

The paper also discusses tradeoffs, since a machine with more qubits could be faster, and the estimate depends strongly on the physical error rate and cycle time.

The result does not mean that RSA-2048 is broken. Current devices have a few thousand physical qubits at best, and logical qubits are in the dozens, so there is a gap of several orders of magnitude.

Key facts and numbers

ItemDetail
Physical qubitsFewer than one million noisy qubits
RuntimeLess than one week
Assumed gate error0.1 percent
Cycle time1 microsecond, with 10 microsecond control reaction time
2019 estimateAbout 20 million qubits for 8 hours (Gidney and Ekerå)
Key ideasApproximate residue arithmetic, yoked surface codes, magic state cultivation

Limitations and caveats

The estimate relies on assumptions that no existing machine has yet met at scale, including a uniform 0.1 percent error rate across a million qubits, fast classical decoding, and a cycle time of one microsecond.

It covers RSA-2048. Elliptic-curve cryptography has different costs, and other estimates are needed for it.

Resource estimates are not predictions. They give a sense of scale, and can change with new ideas in either direction.

Why it matters

The paper moved timelines for planning the migration to post-quantum cryptography, since it showed that the hardware needed to break RSA-2048 is far smaller than many earlier estimates, and it is widely cited by agencies and companies when discussing harvest-now-decrypt-later risk.

What happened next

The paper is a main reference for security planning. Agencies including the U.S. NSA and the UK NCSC already advise migration by about 2030 to 2035, and the paper strengthened the argument that long-lived secrets need protection now.

It also showed how fast algorithmic ideas can change timelines. The reduction by a factor of twenty came from software and architecture changes, without any change in hardware, which is why many cryptographers treat estimates as moving downward over time.

How to read the original paper

The introduction and the results table give the key numbers. The later sections on the arithmetic and the layout are technical and can be read selectively. Read the earlier 2019 paper by Gidney and Ekerå for comparison.

The Shor's algorithm, post-quantum cryptography, and harvest-now-decrypt-later pages on this site explain the context.

Original abstract (paraphrased)

The paper shows that 2048-bit RSA integers can be factored in less than a week by a quantum computer with fewer than a million noisy qubits, assuming a square grid of qubits with nearest-neighbor connections, a uniform gate error rate of 0.1 percent, a surface-code cycle time of 1 microsecond, and a reaction time of 10 microseconds. This is a twentyfold reduction from the previous estimate of 20 million qubits, achieved by using approximate residue arithmetic, yoked surface codes for idle qubits, and magic state cultivation.

Frequently asked questions

Can a quantum computer break RSA-2048 today?

No. The paper estimates fewer than a million noisy qubits running for under a week, while today's machines have at most a few thousand physical qubits.

Why did the estimate fall so much?

Because of algorithmic and architectural improvements: approximate residue arithmetic, yoked surface codes, and magic state cultivation.

What should organizations do?

Plan the migration to post-quantum cryptography now, because the migration takes years and encrypted data can be recorded today.

Keep exploring

Explanations on this page summarize published work for education (last reviewed September 30, 2026). Numbers are taken from the cited paper or from widely reported follow-up work, and later results may have updated or challenged them. Check the reference above before citing.

← Back to all research papers