Lune

CRYPTO2025Top-tier venue

Reducing the Number of Qubits in Quantum Factoring

Clémence Chevignard, Pierre-Alain Fouque, André Schrottenloher

Abstract

This paper focuses on the optimization of the number of logical qubits in quantum algorithms for factoring and computing discrete logarithms in ZN∗\mathbb{Z}_N^*. These algorithms contain an exponentiation circuit modulo NN, which is responsible for most of their cost, both in qubits and operations.

In this paper, we show that using only o(log⁡N)o(\log N) work qubits, one can obtain the least significant bits of the modular exponentiation output. We combine this result with May and Schlieper's truncation technique (ToSC 2022) and the Eker-Hstad variant of Shor's algorithm (PQCrypto 2017) to solve the discrete logarithm problem in ZN∗\mathbb{Z}_N^* using only d+o(log⁡N)d + o(\log N) qubits, where dd is the bit-size of the logarithm. Consequently we can factor nn-bit RSA moduli using n/2+o(n)n/2 + o(n) qubits, while current envisioned implementations require about 2n2n qubits.

Our algorithm uses a Residue Number System and succeeds with a parametrizable probability. Being completely classical, we have implemented and tested it. For RSA factorization, we can reach a gate count O(n3)\mathcal{O}(n^3) for a depth O(n2log⁡3n)\mathcal{O}(n^2 \log^3 n), which then has to be multiplied by O(log⁡n)\mathcal{O}(\log n) (the number of measurement results required by Eker-Hstad). To factor an RSA-2048 instance, we estimate that 1730 logical qubits and 2362^{36} Toffoli gates will suffice for a single run, and the algorithm needs on average 40 runs. To solve a discrete logarithm instance of 224 bits (112-bit classical security) in a safe-prime group of 2048 bits, we estimate that 684 logical qubits would suffice, and 20 runs with 2322^{32} Toffoli gates each.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Parallel Spooky Pebbling Makes Regev Factoring More Practical cites Space-Efficient and Noise-Robust Quantum Factoring
  • The Jacobi Factoring Circuit: Quantum Factoring with Near-Linear Gates and Sublinear Space and Depth cites Space-Efficient and Noise-Robust Quantum Factoring
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Reducing the Number of Qubits in Quantum Discrete Logarithms on Elliptic CurvesClémence Chevignard, Pierre-Alain Fouque, André SchrottenloherEUROCRYPT 2026 · 6 citations
  2. Parallel Spooky Pebbling Makes Regev Factoring More PracticalGregory D. Kahanamoku-Meyer, Seyoon Ragavan, Katherine Van KirkEUROCRYPT 2026 · 1 citation
  3. 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

Builds on1

  1. Space-Efficient and Noise-Robust Quantum FactoringSeyoon Ragavan, Vinod VaikuntanathanCRYPTO 2024 · 11 citations

Related papers

  1. Optimizing windowed arithmetic for quantum attacks against RSA-2048Alessandro Luongo, Varun Narasimhachar, Adithya SireeshDAC 2025
  2. Comparing the Difficulty of Factorization and Discrete Logarithm: A 240-Digit ExperimentFabrice Boudot, Pierrick Gaudry, Aurore Guillevic, Nadia Heninger et al.CRYPTO 2020 · 70 citations
  3. Approximate Divisor Multiples - Factoring with Only a Third of the Secret CRT-ExponentsAlexander May, Julian Nowakowski, Santanu SarkarEUROCRYPT 2022 · 11 citations
  4. Quantum Complexity for Discrete Logarithms and Related ProblemsMinki Hhan, Takashi Yamakawa, Aaram YunCRYPTO 2024 · 8 citations
  5. Low Weight Discrete Logarithm and Subset Sum in 20.65n with Polynomial MemoryAndre Esser, Alexander MayEUROCRYPT 2020 · 14 citations
Dusk over the sea between two cliffs drawn in fine vertical lines