Reducing RSA-2048 Factoring Resources Below One Billion Toffolis via LLM-Driven Verifiable Quantum Compilation
Xiaodi Li, Yuqing Wang, Xue Chen, Yang-Yang Tang, Linghui Chen, Tao Zhang
Abstract
Modular exponentiation dominates the logical cost of factoring 2048-bit RSA integers (RSA-2048) with Shor's algorithm. Recent approaches based on approximate residue number systems (RNS) sharply reduce the required logical qubits, yet still demand billions of Toffoli gates. Optimizing these circuits is difficult because shared ancilla qubits and measurement-based uncomputation tightly couple the arithmetic stages, while rare overflows in compressed registers occur too infrequently for random simulation to detect. Here we use large language model (LLM)-driven search to redesign the RNS pipeline across stages and build a deterministic compiler that produces a Pareto frontier of RSA-2048 circuits. We bound rare overflow probabilities analytically and verify the resulting elementary gate sequences across all constituent RNS primes on representative circuits. Relative to Gidney's 2025 baseline under matched adder accounting, our frontier cuts the minimum qubit-Toffoli product by 70.1% and lowers expected factoring Toffolis by up to 78.6% at matched accumulator precision, bringing RSA-2048 factoring below one billion Toffolis for the first time.
Create a lesson
Metadata
- Comments
- 22 pages, 5 figures
Related papers
Quantum resources constrain function approximation
Shared title terminologyquant-phOxana Shaya, Lirandë Pira
Quantum-Memory Forensics for Tampered Quantum Seals: Resource-Dependent Sample Gains
Shared title terminologyquant-phJaeyun Jeong, Zehua Wang, Lilia Tightiz et al.
Interaction-Driven Photocurrent Enhancement in a Quantum Photocell with Opposite Transient and Steady-State Responses
Shared title terminologyquant-phAbbas Shokri, Esfandyar Faizi, Mohammad B. Arjmandi
Unveiling the Action of Randomized Compiling on Quantum States: A Geometric Perspective
Shared title terminologyquant-phKai Tang, Chao Zhan, Yao Song et al.
Where to Hide the Traps: Robust Placement in Verifiable Blind Quantum Computation
Shared title terminologyquant-phNoureldin Mohamed, Saif Al-Kuwari
photon number correlations in harmonics driven with classical and quantum light
Shared title terminologyquant-phKatarzyna M. Kowalczyk, Michael T. Weil, Kevin Murzyn et al.