{
  "id": "2016/1128",
  "url": "https://opencryptology.org/2016/1128",
  "original_url": "https://eprint.iacr.org/2016/1128",
  "title": "Modifying Shor’s algorithm to compute short discrete logarithms",
  "authors": [
    "Martin Ekerå"
  ],
  "affiliations": null,
  "abstract": "We revisit Shor's algorithm for computing discrete logarithms in the multiplicative group of GF(p) on a quantum computer and modify it to compute logarithms d in groups <g> of prime order q in the special case where d <<< q. As a stepping stone to performing this modification, we first introduce a modified algorithm for computing logarithms on the general interval 0 < d < q for comparison.\n\nWe demonstrate conservative lower bounds on the success probability of our algorithms in both the general and the special case. In both cases, our algorithms initially set the index registers to a uniform superposition of all states, compared to p-1 states in Shor's original algorithm.\n\nIn the special case where d <<< q, our algorithm uses 3 ceil(log d) qubits for the two index registers and computes two QFTs of size 2^(ceil(log d)) and 2^(2 ceil(log d)), compared to 2 floor(log q) qubits for the index registers and two QFTs both of size 2^(floor(log q)) in the general case.\n\nA quantum circuit for computing [a - bd] g is furthermore required, where 0 <= a < 2^(2 ceil(log d)) and 0 <= b < 2^(ceil(log d)) in the special case, compared to 0 <= a, b < 2^(floor(log q)) in the general case.\n\nThis implies that the complexity of computing discrete logarithms on a quantum computer can be made to depend not only on the choice of group, and on its order q, but also on the logarithm d.\n\nIn the special case where d <<< q, our algorithm does not require q to be prime. It may hence be generalized to finite abelian groups.",
  "category": null,
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Modifying Shor’s algorithm to compute short discrete logarithms” by Martin Ekerå, Cryptology ePrint Archive, Paper 2016/1128, https://eprint.iacr.org/2016/1128. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2016-12-07T16:58:14Z",
    "updated": "2016-12-07T16:58:14Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2016/1128.pdf",
    "sha256": "75c17149ff343e0262cd1280e1f4a3131b48f6efa5667f83c61c93afc0656b42",
    "size": 403477,
    "source": "github-mirror",
    "source_date": "2019-02-25T17:24:56Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2016/1128/versions/20190225T172456Z.pdf",
      "captured_at": "2019-02-25T17:24:56Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2016/1128.pdf",
      "size": 403477,
      "sha256": "75c17149ff343e0262cd1280e1f4a3131b48f6efa5667f83c61c93afc0656b42",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260209105134id_/https://eprint.iacr.org/2016/1128.pdf",
      "captured_at": "2026-02-09T10:51:34Z",
      "size": 404775
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2016/1128.pdf",
      "captured_at": "2019-02-25T17:24:56Z",
      "size": 403477
    }
  ],
  "bibtex": "@misc{cryptoeprint:2016/1128,\n      author = {Martin Ekerå},\n      title = {Modifying Shor’s algorithm to compute short discrete logarithms},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2016/1128},\n      year = {2016},\n      url = {https://eprint.iacr.org/2016/1128}\n}"
}
