Curator's Take
AI Commentary
This article shows that a clever LLM‑guided redesign of the RNS arithmetic pipeline can slash the Toffoli count for Shor’s RSA‑2048 attack to under one billion—a milestone that narrows the gap between theoretical attacks and realistic hardware requirements. By delivering a Pareto frontier of qubit‑Toffoli trade‑offs, it builds on Gidney’s 2025 optimizations and demonstrates that automated code‑generation tools can uncover resource savings that hand‑crafted designs miss. While still far from today’s noisy devices, the result sharpens the timeline for when fault‑tolerant quantum computers could threaten current public‑key infrastructure, underscoring the urgency of post‑quantum migration.
— Mark Eatherly
Summary
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.