Space-Efficient and Noise-Robust Quantum Factoring
Seyoon Ragavan, Vinod Vaikuntanathan
Abstract
We provide two improvements to Regev's quantum factoring algorithm (Journal of the ACM 2025), addressing its space efficiency and its noise-tolerance.
Our first contribution is to improve the quantum space efficiency of Regev's algorithm while keeping the circuit size the same. Our main result constructs a quantum factoring circuit using O(n log n) qubits and O(n 3/2 log n) gates. We achieve the best of Shor and Regev (upto a logarithmic factor in the space complexity): on the one hand, Regev's circuit requires O(n 3/2 ) qubits and O(n 3/2 log n) gates, while Shor's circuit requires O(n 2 log n) gates but only O(n log n) qubits. As with Regev, to factor an n-bit integer N , we run our circuit independently O( √ n) times and apply Regev's classical postprocessing procedure. Our optimization is achieved by implementing efficient and reversible exponentiation with Fibonacci numbers in the exponent, rather than the usual powers of 2, adapting work by Kaliski (arXiv:1711.02491) from the classical reversible setting to the quantum setting. This technique also allows us to perform quantum modular exponentiation that is efficient in both space and size without requiring significant precomputation, a result that may be useful for other quantum algorithms. A key ingredient of our exponentiation implementation is an efficient circuit for a function resembling in-place quantum-quantum modular multiplication. This implementation works with only black-box access to any quantum circuit for out-of-place modular multiplication, which we believe is yet another result of potentially broader interest.
Our second contribution is to show that Regev's classical postprocessing procedure can be modified to tolerate a constant fraction of the quantum circuit runs being corrupted by errors. In contrast, Regev's analysis of his classical postprocessing procedure requires all O( √ n) runs to be successful. In a nutshell, we achieve this using lattice reduction techniques to detect and filter out corrupt samples.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers3
- Reducing the Number of Qubits in Quantum FactoringClémence Chevignard, Pierre-Alain Fouque, André SchrottenloherCRYPTO 2025 · 8 citations
- Parallel Spooky Pebbling Makes Regev Factoring More PracticalGregory D. Kahanamoku-Meyer, Seyoon Ragavan, Katherine Van KirkEUROCRYPT 2026 · 1 citation
- The Jacobi Factoring Circuit: Quantum Factoring with Near-Linear Gates and Sublinear Space and DepthGregory D. Kahanamoku-Meyer, Seyoon Ragavan, Vinod Vaikuntanathan, Katherine Van KirkSTOC 2025 · 1 citation
Related papers
- Optimizing windowed arithmetic for quantum attacks against RSA-2048Alessandro Luongo, Varun Narasimhachar, Adithya SireeshDAC 2025
- Qraft: reverse your Quantum circuit and know the correct program outputTirthak Patel, Devesh TiwariASPLOS 2021 · 44 citations
- Near-Optimal Quantum Algorithms for Bounded Edit Distance and Lempel-Ziv FactorizationDaniel Gibney, Ce Jin, Tomasz Kociumaka, Sharma V. ThankachanSODA 2024 · 7 citations
- SAQR-QC: A Logic for Scalable but Approximate Quantitative Reasoning about Quantum CircuitsNengkun Yu, Jens Palsberg, Thomas RepsPLDI 2026 · 3 citations
- Reducing the Number of Qubits in Quantum Discrete Logarithms on Elliptic CurvesClémence Chevignard, Pierre-Alain Fouque, André SchrottenloherEUROCRYPT 2026 · 6 citations
