Skip to main content
KetQat

Appearance

Theorem · intermediate

Polynomial-time quantum algorithm for discrete logarithms

Given a generator g of the multiplicative group modulo a prime p and an element x, a quantum computer finds the exponent l with g^l = x mod p in time polynomial in log p; the method extends to other groups with efficient arithmetic, including elliptic-curve groups.

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

There is a bounded-error quantum algorithm that, on input (p,g,x)(p, g, x), outputs the unique ℓ∈{0,…,p−2}\ell \in \{0, \dots, p-2\} with gℓ≡x(modp)g^{\ell} \equiv x \pmod p using a number of gates polynomial in LL (dominated, as in factoring, by modular exponentiation).

The function f(α,β)=gαx−β mod pf(\alpha, \beta) = g^{\alpha} x^{-\beta} \bmod p on Zp−1×Zp−1\Z_{p-1} \times \Z_{p-1} satisfies f(α,β)=f(α′,β′)f(\alpha, \beta) = f(\alpha', \beta') exactly when (α−α′,β−β′)(\alpha - \alpha', \beta - \beta') is a multiple of (ℓ,1)(\ell, 1): it hides the subgroup generated by (ℓ,1)(\ell, 1). Evaluating ff in superposition, applying Fourier transforms to both registers and measuring yields pairs (c,d)(c, d) satisfying a linear relation with ℓ\ell, from which ℓ\ell is computed classically. This is due to Shor; Kitaev placed it, with factoring, in the abelian stabilizer (hidden subgroup) framework. The same approach works for any finite abelian group with efficiently computable, uniquely represented elements; for elliptic-curve groups over prime fields the circuits were worked out by Proos and Zalka and costed in detail by Roetteler, Naehrig, Svore and Lauter.

Holds when

  • pp is a prime of LL bits, gg generates Zp∗\Z_p^\ast, and x∈Zp∗x \in \Z_p^\ast.
  • Fault-free quantum circuits; the running time is the number of elementary gates plus classical post-processing.
Part of
Related
Stated in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Peter W. Shor (1997). Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM Journal on Computing 26(5), 1484-1509. doi:10.1137/S0097539795293172arXiv:quant-ph/9508027
  2. A. Yu. Kitaev (1995). Quantum measurements and the Abelian stabilizer problem. arXiv:quant-ph/9511026
  3. John Proos, Christof Zalka (2003). Shor's discrete logarithm quantum algorithm for elliptic curves. Quantum Information and Computation 3(4), 317-344. doi:10.26421/QIC3.4-3arXiv:quant-ph/0301141
  4. Martin Roetteler, Michael Naehrig, Krysta M. Svore, Kristin Lauter (2017). Quantum resource estimates for computing elliptic curve discrete logarithms. Advances in Cryptology - ASIACRYPT 2017, Lecture Notes in Computer Science, 241-270. doi:10.1007/978-3-319-70697-9_9arXiv:1706.06752

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Statement and the hidden-subgroup structure re-derived (g^a x^-b = g^(a - l b), so f is constant exactly on cosets of <(l,1)> in Z_(p-1)^2). Compared with Shor, arXiv:quant-ph/9508027, Section 6 (state (6.1) built from g^a x^-b mod p over a, b mod p-1, followed by Fourier transforms and classical solution for l); Kitaev's abelian stabilizer framing with the abstract of arXiv:quant-ph/9511026; elliptic-curve circuits over GF(p) with the abstract of Proos-Zalka arXiv:quant-ph/0301141 and the resource estimates over prime fields with the abstract of Roetteler-Naehrig-Svore-Lauter arXiv:1706.06752.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision e71de165fcc89a49. Source file knowledge/records/theorem/shor-discrete-logarithm.md in the content repository (readable there once it is public).