Skip to main content
QUICK REVIEW

[Paper Review] Improved quantum circuits for elliptic curve discrete logarithms

Thomas Häner, Samuel Jaques|arXiv (Cornell University)|Jan 27, 2020
Cryptography and Residue ArithmeticComputer Science1 citations
TL;DR

This paper presents optimized quantum circuits for elliptic curve scalar multiplication in Shor's algorithm, using windowing techniques, adaptive uncomputation, and reformulated modular inversion via the binary Euclidean algorithm. It achieves significant reductions—up to 119× in T-gate count and 54× in T-depth—while reducing logical qubits from 2338 to 2124 for 256-bit curves, with full Q# implementations enabling automated resource estimation and unit testing.

ABSTRACT

We present improved quantum circuits for elliptic curve scalar multiplication, the most costly component in Shor's algorithm to compute discrete logarithms in elliptic curve groups. We optimize low-level components such as reversible integer and modular arithmetic through windowing techniques and more adaptive placement of uncomputing steps, and improve over previous quantum circuits for modular inversion by reformulating the binary Euclidean algorithm. Overall, we obtain an affine Weierstrass point addition circuit that has lower depth and uses fewer $T$ gates than previous circuits. While previous work mostly focuses on minimizing the total number of qubits, we present various trade-offs between different cost metrics including the number of qubits, circuit depth and $T$-gate count. Finally, we provide a full implementation of point addition in the Q# quantum programming language that allows unit tests and automatic quantum resource estimation for all components.

Motivation & Objective

  • To reduce the quantum resource cost of elliptic curve discrete logarithm computation using Shor’s algorithm.
  • To improve upon prior work by Roetteler et al. (RNSL) in minimizing key metrics: qubit count, T-gate count, and circuit depth.
  • To explore trade-offs between different cost metrics in quantum circuit design for elliptic curve arithmetic.
  • To provide a modular, testable, and automatically estimable implementation in the Q# quantum programming language.

Proposed method

  • Employed windowing techniques inspired by Gidney and Ekerå to reduce the number of point additions in scalar multiplication.
  • Reformulated the binary extended Euclidean algorithm to optimize modular inversion circuits, reducing T-gate and depth costs.
  • Used adaptive uncomputation and pebbling strategies to avoid redundant uncomputation and improve memory efficiency.
  • Implemented all components in Q#, enabling unit testing and automatic quantum resource estimation via the Q# toolchain.
  • Applied automatic compilation techniques to further optimize T-depth and T-count, achieving lower-cost circuits at the expense of increased qubit usage.
  • Conducted extensive resource estimation across multiple NIST curves (P256, P384, P521) using extrapolated data from smaller window sizes.

Experimental results

Research questions

  • RQ1Can windowing techniques significantly reduce the T-gate and T-depth costs of elliptic curve point addition in Shor’s algorithm?
  • RQ2How do adaptive uncomputation and pebbling strategies improve quantum circuit efficiency compared to standard Bennett-style uncomputation?
  • RQ3To what extent can automatic compilation tools reduce T-depth and T-count at the cost of increased qubit width?
  • RQ4What are the asymptotic scaling behaviors of T-gate count, T-depth, and qubit width for optimized quantum circuits in ECDLP?
  • RQ5How do the new circuits compare to RNSL’s in terms of all major resource metrics across different elliptic curve parameters?

Key findings

  • For a 256-bit elliptic curve, the new circuit reduces logical qubits from 2338 to 2124, T-gate count by a factor of 119, and T-depth by a factor of 54 compared to RNSL.
  • The optimized circuit for low T-gate count achieves 1115n³/lg n + o(n³/lg n) T gates and 389n³/lg n − 1.70×2²² T-depth asymptotically.
  • The low-depth circuit achieves 285n² − 1.54×2¹⁷ T-depth with only a 22% increase in qubit width compared to the low-width variant.
  • For 521-bit moduli, the depth-optimized circuit reduces depth by a factor of 13,792 and T-gate count by a factor of 463 compared to RNSL.
  • The full implementation in Q# enables unit testing and automated resource estimation, supporting reproducibility and component-level validation.
  • Extrapolation suggests breaking RSA-3072 would require 234 T gates and 9287 logical qubits, indicating that at similar classical security levels, ECC is less secure than RSA against quantum attacks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.