A Smarter Quantum Shortcut for Factoring Heavy Encryption
Original paper: Shared Lookups and Lazy Residues: Fewer Toffoli Gates for Factoring RSA-2048
"Imagine a delivery driver who has packages for three different tenants living in the same apartment building. Instead of driving back and forth for each person, the driver delivers all three packages in a single stop to that shared address. Additionally, rather than returning empty shipping crates to headquarters after every single drop-off, the driver keeps them in the truck and clears out the cargo just once at the very end of the route."
Understanding the exact cost of breaking RSA-2048 encryption on a quantum computer tells us how urgent the migration to post-quantum security really is. By dramatically reducing the number of quantum logic operations required, this research brings the theoretical timeline for breaking modern encryption significantly closer to reality.
- Cuts quantum gate operations for RSA factoring by up to 46%.
- Combines multiple memory lookups into a single shared quantum step.
- Defers mathematical cleanup steps until the end of the calculation.
📑 Original arXiv Technical Abstract
Gidney's 2025 construction for factoring RSA-2048 with few logical qubits spends most of its Toffoli gates on discrete-log table lookups and residue uncomputation. We reduce both costs. Shared lookups return entries for several primes of a residue number system at once because they have the same address. Retained intermediate residues remove recomputation during cleanup and enable lazy arithmetic with a single final modular reduction. We prove output preservation and estimate resources with an open benchmark built on the reference simulator. Against the best reference setting within the same logical-qubit budget, using the published model for the reference and benchmark counts for our circuits, we obtain 15% fewer Toffolis at 1{,}461 qubits (5.08 × 10 (9) per factoring) and 46% fewer at 1{,}806 qubits (2.55 × 10 (9) ). A matched ablation finds 28.8% fewer Toffolis from three-prime sharing at fixed window and checkpoint settings. Architecture-specific timing determines how much becomes a runtime saving.
✍️ Are you an author of this paper? Add code/demo links or a note
Help readers explore your work — share your official GitHub repo, Hugging Face weights, affiliation, or a clarification note for our editorial review queue.