The research paper doesn’t promise “a Bitcoin hack tomorrow,” but rather a testable question: can the logical resource estimates of Shor’s quantum discrete logarithm algorithm be publicly reproduced on the secp256k1 curve, and what exactly limits these estimates—the number of qubits, the number of non-Clifford gates, or the opacity of the original circuits? Schrottenloher’s preprint yields a circuit close to Babbush et al.’s result: approximately 1.5% more qubits and, according to the abstract, 6.5–10% fewer Toffoli gates for secp256k1. The main conclusion: the bottleneck is not “quantum parallelism magic,” but modular arithmetic, modulo inversion, Bézout reconstruction, and the cost of exact/inexact prime modulo reduction.
Content
- Statement of the problem and intrigue
- Selected questions and methodology
- Physical and mathematical mechanism
- History and line of work
- Preprint results
- Why is secp256k1 special?
- What exactly is proven and what is not
- Answers to selected questions
- Synthesis of several works
- New test question
- Pre-publication review
- Sources
1. Statement of the problem and intrigue
Cryptocurrencies and many infrastructures use elliptic curves over prime fields. For secp256k1, security relies on the difficulty of the discrete logarithm problem: given points P and Q = [k]P, find k. Shor’s algorithm solves this problem in polynomial quantum time. But there’s a huge engineering and algorithmic gap between “polynomial” and “implementable.”
In 2026, a preprint by Babbush et al. appeared, claiming a 2-3x improvement in the number of gates and qubits for discrete logarithm logic circuits on secp256k1 compared to Litinski. However, according to Schrottenloher, the authors did not publish the logic circuits themselves, but rather confirmed their properties through a zero-knowledge proof. This creates a scientific intrigue: is it possible to reproduce the result without a published circuit architecture? Schrottenloher’s preprint answers: yes, it is possible to build an architecture with similar resources if the computation is properly decomposed into modular inversion, Bézout reconstruction, and optimized modular arithmetic.
Hence, the central problem of the article: what actually determines the quantum threat to secp256k1—physical qubits, logical Toffoli gates, error probability, or circuit reproducibility? We do not claim that a quantum attack is already possible. We demonstrate how a verifiable resource estimate can be derived from a preprint and what questions need to be asked to distinguish a scientific result from a hyped prediction.
The article’s hypothesis: A publicly described logic circuit can achieve resources on the order of Babbush et al. for secp256k1 by optimizing not the “physics” but the decomposition of the extended Euclidean algorithm (EEA) and modular arithmetic. Rebuttal: If, in an independent implementation, the Toffoli number or success probability is significantly worse than claimed, or if gate-level overhead eliminates the advantage.
2. Selected questions and methodology
Eighteen general and seven specialized questions were selected from the “Questions for Quantum Technology Research” constructor. These are not “answers to all 75,” but rather a verifiable core of the article. Inapplicable questions were deliberately omitted.
| Type | Question numbers | Why are they needed? |
|---|---|---|
| General | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13, 14, 15, 18, 25, 31, 37, 45 | Problem statement, mechanism, history, algorithm, error model, fair comparison, reproducibility. |
| Specialization: cryptography | 49, 50, 51, 52, 54, 55, 56 | Specific cryptographic problem, algorithm, resources, threat model, difference between QKD and PQC, Bitcoin context. |
Methodology: (1) preprint analysis at the architectural level; (2) metrics comparison – logical qubits, Toffoli gates, full gates, failure probability; (3) comparison with previous works; (4) explicit separation of proven, simulated and predicted; (5) formulation of a new test question.
What constitutes proof? The article distinguishes between a mathematical description of a circuit, a classical simulation of a quantum circuit, a logical resource assessment, and a physical assessment with error correction. Schrottenloher’s preprint belongs to the third level: logical circuits and a simulation, not an experiment on a quantum processor.
3. Physical and mathematical mechanism
3.1 From Shor’s Algorithm to Dot Multiplication
Shor’s standard discrete logarithm superposition creates a superposition of u and v and computes |[u]P + [v]Q⟩. A quantum Fourier transform is then applied and the measurement is performed. Thanks to the semiclassical Fourier transform, the u and v registers can be reused, so the main cost is spent on computing the point rather than storing the control bits.
The dot multiplication is decomposed into windowed additions: |i⟩|R⟩ → |i⟩|R + P i ⟩, where i is a w-bit window and P i is taken from a precomputed table. The preprint uses w = 16. This window adds 16 qubits and 3 × 2 w Toffoli gates to the cost of a single windowed addition.
3.2 Addition of points in affine coordinates
A point is represented by a pair (x, y) modulo a prime q, and the point at infinity is encoded separately. Addition R + P i requires several modular operations: subtraction, inversion, multiplication, squaring, and three table lookups. The algorithm from the preprint (dating back to Gouzien et al.) has two in-place multiplications and one out-of-place squaring.
3.3. The Main Trick: EEA Without Bezu Storage
The most expensive part is the in-place multiplication |x⟩|y⟩ → |x⟩|yx mod q⟩. The standard extended Euclidean algorithm (EEA) simultaneously computes the inverse and the Bézout coefficients, but this requires a lot of memory and gates. The preprint uses an idea from Khattar et al.: the EEA is split into two passes.
- First pass. The standard Euclidean algorithm over the pair (u, v) does not construct a Bezout vector, but instead records a “garbage” bit vector: which comparisons and divisions by 2 were performed. The expected number of iterations is approximately 1.413n + 2.4√n.
- Second pass. Bezout’s reconstruction reads this vector in reverse order and applies linear operations to the pair (r, s). Starting with (y, 0), the output is (0, yx mod q)—that is, the inversion and in-place multiplication are combined.
Garbage bits are not encoded directly, but rather in triplets: three pairs (b 0 , b 0 & b 1 ) are compressed into 5 bits using a 5-gate Toffoli gate array. This reduces the cost of shifts and makes the size of the garbage register fixed. Asymptotically, this yields approximately 2.355n + O(√n) garbage bits; the minimum space estimate is 4.12n + O(√n), and the chosen implementation is 4.355n + O(√n).
3.4 Why modular arithmetic is a bottleneck
The preprint optimizes modular doubling and controlled modular addition. For an arbitrary prime, the comparison is done only on the high-order bits; this is a probabilistic, not exact, scheme. For secp256k1, the pseudo-Mersen prime q = 2256 − 4294968273 is used. This allows the subtraction of q to be replaced by removing the high-order bit and adding a small f = 4294968273 to the low-order bits. The gain is not merely cosmetic: in the cost distribution table, it is the controlled modular adder and Gidney constant adder that account for most of the difference between secp256k1 and “any prime.”
4. History and line of work
The development line shows how the problem gradually shifted from “the algorithm exists” to “the scheme is reproducible and optimized for specific metrics.”
| Job | Contribution | What has changed? | Limitation |
|---|---|---|---|
| Shor, 1997 [1] | Polynomial quantum factorization and discrete logarithm algorithm. | A theoretical threat has emerged. | There are no specific resource estimates for ECDLP. |
| Proos–Zalka, 2003 [2] | An early adaptation of Shor’s algorithm to elliptic curves. | Applicability to ECDLP is shown. | The schemes are far from modern optimizations. |
| Roetteler et al., 2017 [3] | Resource estimates for ECDLP, modular arithmetic, Montgomery representation. | Detailed logical assessments have emerged. | High cost of circulation and multiplication. |
| Häner et al., 2020 [4] | Improved quantum circuits for ECDLP. | Optimization of arithmetic and circuit structure. | Still logical level. |
| Litinski, 2023 [5] | Estimated at around 200 million Toffoli for 256-bit ECDLP. | A strong benchmark for comparison. | More qubits; architecture is not the last word. |
| Gouzien et al., 2023 [6] | Physical architecture on cat qubits, estimated at 126,133 cat qubits and 9 hours. | It shows how logic is related to physics. | Depends heavily on hardware assumptions. |
| Chevignard et al., 2026 [8] | Reducing the number of qubits for ECDLP to 3.12n + O(√n). | Memory decreases, but the number of gates increases dramatically. | Another trade-off: memory versus gates. |
| Babbush et al., 2026 [7] | 2-3x improvement in gates and qubits relative to Litinski; circuits not published, properties confirmed by ZK proof. | New record for logical resources. | Reproducibility is limited by the lack of schematics. |
| Schrottenloher, 2026 [10] | Public architecture with similar resources: 1192/1446 qubits and 221.19 / 220.83 Toffoli for secp256k1. | It is shown that the result can be reproduced constructively. | Preprint; non-gate-level simulation; failure probability. |
A key twist: Babbush et al. provide a stronger numerical result, but Schrottenloher provides a publicly described architecture . For a scientific paper, this is more important than a “raw record”: without a description of the circuit, the origin of the qubits and Toffoli cannot be independently verified. A zero-knowledge proof can confirm some properties, but is no substitute for a reproducible architecture.
5. Preprint results
5.1 Comparison of single window addition
The table below reproduces the logic of Table 1 of the preprint. The numbers do not include the window w = 16: it adds 16 qubits and 3 × 2 16 Toffoli. The probability of failure is no more than 2 −13.3 over 10,000 random inputs.
| Scheme type | Qubits | Toffoli | Full gates | Source |
|---|---|---|---|---|
| Space-optimized, secp256k1 | 1175 | 2 21.36 | ≈ 2 24 | Babbush et al. [7] |
| Gate-optimized, secp256k1 | 1425 | 2 21.00 | ≈ 2 24 | Babbush et al. [7] |
| Space-optimized, secp256k1 | 1192 | 2 21.19 | ≈ 2 24 | Ours [10] |
| Gate-optimized, secp256k1 | 1446 | 2 20.83 | ≈ 2 24 | Ours [10] |
| Space-optimized, any simple | 1192 | 2 21.78 | ≈ 2 24.5 | Ours [10] |
| Gate-optimized, any simple | 1446 | 2 21.42 | ≈ 2 24.5 | Ours [10] |
According to the abstract, compared to Babbush et al., the chosen scheme yields approximately 1.5% more qubits and 6.5–10% fewer Toffoli gates for secp256k1. In the rounded figures in the table, the difference in exponents is approximately 0.17, which corresponds to approximately 11%; therefore, it is more accurate to speak of “about 10% according to the abstract” rather than to present a single figure as the absolute truth. The exact percentage depends on how CCX, CCZ, and AND gates are counted and whether lookups are included.
5.2. The full cost of Shor’s algorithm
The full evaluation uses the formula 28 × (3 × 2 16 + Q A ), where Q A is the Toffoli of one window addition, and 28 is the number of additions after optimizations. Approximately 16 window qubits are added to the qubits.
| Type | Qubits | Toffoli for all Shor | Source |
|---|---|---|---|
| Space-optimized, secp256k1 | 1191 | 2 26.27 | Babbush et al. [7] |
| Gate-optimized, secp256k1 | 1441 | 2 25.94 | Babbush et al. [7] |
| Space-optimized, secp256k1 | 1208 | 2 26.11 | Ours [10] |
| Gate-optimized, secp256k1 | 1462 | 2 25.78 | Ours [10] |
| Space-optimized, any simple | 1208 | 2 26.66 | Ours [10] |
| Gate-optimized, any simple | 1462 | 2 26.33 | Ours [10] |
For comparison, Litinski estimated around 2 27.57 Toffoli and roughly twice as many qubits. Thus, progress in 2023–2026 is roughly an order of magnitude in Toffoli terms, but not “attack-ready.” It’s also important that Shor’s algorithm for the discrete logarithm, as noted in the preprint, requires a single successful run, not multiple iterations, like some trade-off schemes for RSA.
6. Why is secp256k1 special?
The prime q = 2 256 − 4294968273 is pseudo-Mersenne. This allows for a simpler reduction: instead of a full comparison and subtraction of q, one can check the high-order bits and add a small f. But this also explains why numbers cannot be mechanically transferred to “any prime”: for the generic Toffoli variant, it is significantly higher—2 21.78 versus 2 21.19 for the space-optimized one.
The cost distribution table from the preprint shows where the complexity goes:
| Component | Space-optimized, secp256k1 | Space-optimized, any simple |
|---|---|---|
| Modular squaring | 9% | 10% |
| In-place multiplier and its inverse | 90% | 90% |
| Reconstruction of Bézout | 54% | 64% |
| Construction of GCD | 36% | 24% |
| Controlled swap | 19% | 12% |
| Hybrid adder | 22% | 14% |
| Controlled modular adder and inverse | 39% | 45% |
| Modular doubling and inverse | 8% | 24% |
| Gidney constant adder | 15% | 34% |
Conclusion: 90% of the CCX cost is the in-place multiplier and its inverse , and within it, the Bézout reconstruction dominates. Therefore, “improving quantum attack” primarily means improving modular inversion and reconstruction, not speeding up the lookup or the physical qubit.
7. What exactly has been proven and what has not
7.1 Level of evidence
- Mathematically proven: decomposition of EEA into Euclidean pass and Bézout reconstruction; formula for the number of iterations; invertibility of operations; correctness of encoding of garbage bits.
- Simulation verified: failure probability is no more than 2 -13.3 per 10,000 random inputs; the circuits are not exact, but probabilistic.
- Estimated but not tested on hardware: logical qubits and Toffoli; Shor’s full cost; comparison with Babbush et al.
- Not proven: physical feasibility of the claimed number of qubits; robustness to a realistic error model; independent replay without code; equivalence of the ZK proof to the full architecture.
7.2. Limitations of the preprint
The simulation doesn’t go down to the gate level: arithmetic circuits are replaced with classical functions. This is normal for logical resource estimation, but it means that the stated numbers are not “compiler-ready.” Furthermore, Babbush et al. don’t publish the circuits; Schrottenloher can’t verify them directly, but compares them with the stated numbers. Finally, all the numbers are for the logic level without error correction. The physical cost can differ by orders of magnitude.
A careful formulation. The preprint’s result isn’t a “quantum hack of secp256k1.” It’s a publicly available logical architecture that makes resource assessment reproducible and allows for comparison of algorithmic improvements. Transitioning to a physical attack requires separate work on error correction, compilation, and hardware.
8. Answers to selected questions
| No. | Question | Answer within the article |
|---|---|---|
| 1 | What problem does the technology solve? | Resource estimation of quantum discrete logarithm on secp256k1; this is cryptanalysis, not a “universal quantum computer”. |
| 2 | What seems paradoxical? | A design with a smaller Toffoli number may require more qubits; the result by Babbush et al. is not published in full but is reproduced in the resources. |
| 3 | What is being researched? | Logical architecture: Shor → dot multiplication → window addition → EEA → modular arithmetic. |
| 4 | Testable hypothesis? | The public scheme can achieve resources of the order of Babbush et al.; refutation – significantly worse Toffoli/probability of success. |
| 5 | Research boundaries? | Logical level, secp256k1 and generic prime, without physical error correction. |
| 6 | What would change the perception? | If the public scheme had given not “about 10%”, but an order of magnitude improvement according to Toffoli without increasing the number of qubits. |
| 7 | Physical mechanism? | Quantum computing, superposition, and QFT; but the main difficulty is reversible arithmetic, not “magic parallelism.” |
| 8 | The role of superposition/entanglement? | Superposition is needed for Shor; entanglement is a resource, but in the article the main object is reversible circuits. |
| 9 | What is necessary and what is a popular simplification? | QFT, reversible arithmetic and measurement are needed; “quantum parallelism solves everything” is an oversimplification. |
| 10 | A minimal example? | In-place multiplication via EEA: start (y,0) → Bezout reconstruction → (0, yx). |
| 13 | Original work? | Shor 1997; for ECDLP — Proos–Zalka 2003; modern estimates — Roetteler et al. 2017. |
| 14 | Turning points? | Moving from general estimates to EEA schemes, then to windowed additions and pseudo-Mersen reduction. |
| 15 | Competing approaches? | Montgomery vs standard representation; exact vs probabilistic reduction; memory vs gates. |
| 18 | How is this work related to the previous ones? | Schrottenloher refines and makes reproducible the result of Babbush et al.; he does not refute it, but constructively tests it. |
| 25 | How is a problem translated into a diagram? | Via windowed dot addition and in-place modular multiplication; see Sections 3.1–3.4. |
| 31 | Error model? | Logical probabilistic circuit with failure ≤ 2 −13.3 ; physical model of errors is not considered. |
| 37 | What to compare with? | From Litinski 2023, Babbush et al. 2026, Chevignard et al. 2026; by metrics — qubits and Toffoli. |
| 45 | What’s on the real device? | None of the logical numbers are verified on hardware; they are simulated and estimated. |
| 49 | What is the cryptographic problem? | Discrete logarithm on an elliptic curve secp256k1. |
| 50 | What algorithm? | Shor’s algorithm in standard form with semiclassical Fourier transform. |
| 51 | Resource assessments? | For the whole scheme: about 2 25.78 –2 26.11 Toffoli and 1208–1462 qubits depending on the mode. |
| 52 | What is available to an attacker? | Public key; in the context of Bitcoin, the moment when the public key is revealed in the signature is important separately. |
| 54 | QKD vs PQC? | These are different tools: QKD is key distribution; PQC is algorithms resistant to quantum adversaries. This article is about cryptanalysis, not QKD. |
| 55 | Bitcoin context? | ECDLP and signatures are investigated; the paper does not claim that the attack is already possible. |
| 56 | Risk assessment or experiment? | This is an assessment of future risk at a logical level; there is no experiment on a quantum processor. |
9. Synthesis of several works
Combining these works yields not a “glue” but a new conclusion: progress does not proceed in a single line, but through the exchange of “memory ↔ gates ↔ reproducibility.” Below is the synthesis matrix.
| Comparison | Common task | Difference | What to check | New conclusion |
|---|---|---|---|---|
| Litinski [5] ↔ Schrottenloher [10] | ECDLL on a 256-bit curve | Litinski – about 2 27.57 Toffoli; Schrottenloher – 2 25.78 -2 26.11 | Are Toffoli and a window considered the same? | The improvement is about an order of magnitude over Toffoli, but the qubits are still hundreds to thousands of logical ones. |
| Babbush et al. [7] ↔ Schrottenloher [10] | Windowed addition of dots secp256k1 | Babbush doesn’t publish schematics; Schrottenloher publishes architecture | Do the numbers match when the same calculation is performed? | Babbush’s result is reproducible in terms of resources, but not in terms of the original design. |
| Chevignard et al. [8] ↔ Schrottenloher [10] | ECDLL and memory | Chevignard reduces qubits to 3.12n, but dramatically increases gates | Full price with error correction | You can’t optimize just qubits; you need to look at Toffoli and the probability of success. |
| Gidney [9] ↔ all logical evaluations | Factorization/resources | Gidney reduces physical resources through hardware and algorithms | Portability of improvements to ECDLP | Logical progress and physical progress must be assessed separately. |
Linking paragraph. Litinski’s paper sets the scale at ~2 27.57 Toffoli. Babbush et al.’s paper lowers it but does not publish schematics. Schrottenloher’s paper publishes the architecture and obtains similar numbers, showing that the improvement is achieved through EEA decomposition and pseudo-Mersen reduction. Direct comparison is limited by different calculation methods and the lack of Babbush’s original schematics. Taking this into account, we can conclude: a public logic circuit with resources on the order of 2 25.8 Toffoli and ~1200–1460 qubits exists . However, a separate experiment with error correction is needed to verify the physical threat.
10. New test question
The synthesis raises a question that cannot be reduced to “when”:
Is it possible to maintain the Toffoli reduction at a level of about 10–20% when moving from Schrottenloher logic circuits to physical circuits with realistic error correction, without increasing the number of qubits by more than 2–3 times?
Verification: (1) independently implement the circuit from the description; (2) run a gate-level simulation with a noise model; (3) compare with Babbush et al. under the same Toffoli definition; (4) estimate the error correction overhead; (5) check whether the advantage holds for generic primes, not just secp256k1. If the answer is “no”, then the main gain remains theoretical; if “yes”, then this is the next step toward a realistic threat assessment.
11. Pre-publication check
- Observations, evidence, simulations, estimates and predictions are separated.
- Each significant numerical statement is linked to a preprint or previous work.
- Logical qubits are not replaced by physical ones, nor simulation by experiment.
- The advantage is compared with the same metrics: qubits, Toffoli, full gates, success probability.
- There are no promises of a precise date for the hack or “universal quantum acceleration.”
- The limitations and downsides—lack of Babbush source circuits, gate-level simulation, and physical error model—are clearly stated.
- The reader understands what the article offers: public architecture and a testable question about the physical overhead.
12. Sources
- PW Shor. Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM J. Comput., 1997. DOI: 10.1137/S0097539785293172.
- J. Proos, C. Zalka. Shor’s discrete logarithm quantum algorithm for elliptic curves. Quantum Inf. Comput., 2003. DOI: 10.26421/QIC3.4-3.
- M. Roetteler, M. Naehrig, K. M. Svore, K. Lauter. Quantum resource estimates for computing elliptic curve discrete logarithms. ASIACRYPT 2017.
- T. Häner, S. Jaques, M. Naehrig, M. Roetteler, M. Soeken. Improved quantum circuits for elliptic curve discrete logarithms. PQCrypto 2020.
- D. Litinski. How to compute a 256-bit elliptic curve private key with only 50 million Toffoli gates. arXiv:2306.08585, 2023. arxiv.org/abs/2306.08585 .
- É. Gouzien, D. Ruiz, F.-M. Le Régent, J. Guillaud, N. Sangouard. Performance analysis of a repetition cat code architecture. Phys. Rev. Lett., 2023.
- R. Babbush, A. Zalcman, C. Gidney, M. Broughton, T. Khattar, H. Neven, T. Bergamaschi, J. Drake, D. Boneh. Securing elliptic curve cryptocurrencies against quantum vulnerabilities: resource estimates and mitigations. arXiv:2603.28846, 2026. arxiv.org/abs/2603.28846 .
- C. Chevignard, P.-A. Fouque, A. Schrottenloher. Reducing the number of qubits in quantum discrete logarithms on elliptic curves. EUROCRYPT 2026; IACR ePrint 2026/280. eprint.iacr.org/2026/280 .
- C. Gidney. How to factor 2048 bit RSA integers with less than a million noisy qubits. arXiv:2505.15917, 2025. arxiv.org/abs/2505.15917 .
- A. Schrottenloher. Optimized point addition circuits for elliptic curve discrete logarithms. arXiv:2606.02235v1, 2026. arxiv.org/abs/2606.02235 .
- T. Khattar, N. Shutty, C. Gidney, A. Zalcman, N. Yosri, D. Maslov, R. Babbush, S. P. Jordan. Verifiable quantum advantage via optimized DQI circuits. arXiv:2510.10967, 2025. arxiv.org/abs/2510.10967 .
- NIST. FIPS 203, 204, 205: post-quantum key establishment and digital signatures, August 2024. csrc.nist.gov .
