{
  "id": "2024/222",
  "url": "https://opencryptology.org/2024/222",
  "original_url": "https://eprint.iacr.org/2024/222",
  "title": "Reducing the Number of Qubits in Quantum Factoring",
  "authors": [
    "Clémence Chevignard",
    "Pierre-Alain Fouque",
    "André Schrottenloher"
  ],
  "affiliations": null,
  "abstract": "This paper focuses on the optimization of the number of logical qubits in quantum algorithms for factoring and computing discrete logarithms in $\\mathbb{Z}_N^*$. These algorithms contain an exponentiation circuit modulo $N$, which is responsible for most of their cost, both in qubits and operations.\n\nIn this paper, we show that using only $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{\\aa}-H{\\aa}stad variant of Shor's algorithm (PQCrypto 2017) to solve the discrete logarithm problem in $\\mathbb{Z}_N^*$ using only $d + o(\\log N)$ qubits, where $d$ is the bit-size of the logarithm. Consequently we can factor $n$-bit RSA moduli using $n/2 + o(n)$ qubits, while current envisioned implementations require about $2n$ qubits.\n\nOur 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 $\\mathcal{O}(n^3)$ for a depth $\\mathcal{O}(n^2 \\log^3 n)$, which then has to be multiplied by $\\mathcal{O}(\\log n)$ (the number of measurement results required by Eker{\\aa}-H{\\aa}stad). To factor an RSA-2048 instance, we estimate that 1730 logical qubits and $2^{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 $2^{32}$ Toffoli gates each.",
  "category": "Attacks and cryptanalysis",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Reducing the Number of Qubits in Quantum Factoring” by Clémence Chevignard, Pierre-Alain Fouque, André Schrottenloher, Cryptology ePrint Archive, Paper 2024/222, https://eprint.iacr.org/2024/222. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2024-02-13T16:53:48Z",
    "updated": "2025-12-31T11:05:14Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/222.pdf",
    "sha256": "a41d5d1fc7570ea875e493b6cb59cc2bcbbf60f9a2a294a7df0bfc18cafa005d",
    "size": 581217,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2024/222/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/222.pdf",
      "size": 581217,
      "sha256": "a41d5d1fc7570ea875e493b6cb59cc2bcbbf60f9a2a294a7df0bfc18cafa005d",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2024/222/versions/20250306T211045Z.pdf",
      "captured_at": "2025-03-06T21:10:45Z",
      "label": "copy captured 2025-03-06",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20250306211045id_/https://eprint.iacr.org/2024/222.pdf",
      "size": 543070,
      "sha256": "ff2a32fd9523dfa6e15f78c8fb74e91f2e7ba9df8651c5370165e6691cac9f69",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2024/222/versions/20240309T231807Z.pdf",
      "captured_at": "2024-03-09T23:18:07Z",
      "label": "copy captured 2024-03-09",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20240309231807id_/https://eprint.iacr.org/2024/222.pdf",
      "size": 473852,
      "sha256": "f1ff47859b2e8007219dbc7ed448e053c06519c7ebfaab8b72ac7fff0034e893",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260605225428id_/https://eprint.iacr.org/2024/222.pdf",
      "captured_at": "2026-06-05T22:54:28Z",
      "size": 582561
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/222.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 581217
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/222,\n      author = {Clémence Chevignard and Pierre-Alain Fouque and André Schrottenloher},\n      title = {Reducing the Number of Qubits in Quantum Factoring},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/222},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/222}\n}"
}
