How to factor 2048 bit RSA integers with less than a million noisy qubits
Craig Gidney
TL;DR
The paper investigates quantum factoring of RSA-2048 under fault-tolerant assumptions and demonstrates how to dramatically reduce the required physical qubits by leveraging approximate residue arithmetic, yoked surface-code storage for idle qubits, and magic-state cultivation. It refines the CFS approach with approximate modular arithmetic and Ekerå–Håstad period finding, complemented by extensive arithmetic optimizations to achieve a practical quantum factoring cost. The author presents concrete parameter sets yielding under a million physical qubits and a runtime of roughly a week, with a Toffoli count on the order of $6.5\times 10^9$, and provides detailed cost breakdowns across logical and physical layers. These results offer a concrete signpost for quantum factoring capabilities and inform timelines for deploying post-quantum cryptography.
Abstract
Planning the transition to quantum-safe cryptosystems requires understanding the cost of quantum attacks on vulnerable cryptosystems. In Gidney+Ekerå 2019, I co-published an estimate stating that 2048 bit RSA integers could be factored in eight hours by a quantum computer with 20 million noisy qubits. In this paper, I substantially reduce the number of qubits required. I estimate that a 2048 bit RSA integer could be factored in less than a week by a quantum computer with less than a million noisy qubits. I make the same assumptions as in 2019: a square grid of qubits with nearest neighbor connections, a uniform gate error rate of $0.1\%$, a surface code cycle time of 1 microsecond, and a control system reaction time of $10$ microseconds. The qubit count reduction comes mainly from using approximate residue arithmetic (Chevignard+Fouque+Schrottenloher 2024), from storing idle logical qubits with yoked surface codes (Gidney+Newman+Brooks+Jones 2023), and from allocating less space to magic state distillation by using magic state cultivation (Gidney+Shutty+Jones 2024). The longer runtime is mainly due to performing more Toffoli gates and using fewer magic state factories compared to Gidney+Ekerå 2019. That said, I reduce the Toffoli count by over 100x compared to Chevignard+Fouque+Schrottenloher 2024.
