In quantum cryptanalysis of binary elliptic curves, the inversion field GF(2^n) is a small but repeatedly repeated block. The authors of the preprint arXiv:2204.08940v1 propose eliminating the intermediate “inverse squaring” operations and moving the unpacking to the end of the computation. In the Qiskit simulator, this reduces the number of CNOTs and the overall depth of the circuit, but requires more auxiliary qubits. The main question of the paper is: can time be gained by trading width?
Limitations of the claims. This is an analysis of a preprint and a computational simulation experiment, not a report on breaking ECC or a demonstration on a real fault-tolerant quantum computer. All “improvements” relate to the specified circuit model, gate basis, Qiskit translation, and the chosen field sizes. The T-depth, according to the authors, is preserved; the circuit width increases.
Content
- Intrigue: Why a Small Inversion Matters
- Topic, central question and testable hypothesis
- Mechanism: FLT, Ita-Tsuji and three stages
- What exactly has changed: the “waterfall” approach
- Research line: how the works are related
- Simulation comparison methodology
- Evidence: What is shown and what is not shown
- Cryptographic context and fair comparison
- Errors, correction and the cost of protection
- Open questions and the next experiment
- Work Linkage Matrix
- Conclusion
1. Intrigue: Why a Small Inversion Matters
Shor’s quantum algorithm for the elliptic curve discrete logarithm problem (ECDLP) requires scalar point multiplication. Scalar multiplication decomposes into repeated point additions, while point addition in affine coordinates uses division over a finite field. Division is inversion followed by multiplication. Therefore, inversion is not a “main” operation, but a recurring bottleneck within a larger circuit.
A question that might interest the reader sounds almost paradoxical: is it possible to speed up a quantum circuit by not reducing the number of qubits, but rather by adding auxiliary qubits and delaying unpacking? In classical programming, such a move often seems wasteful. In quantum circuits, it can be justified: depth is related to execution time and decoherence, and the number of qubits has been growing faster than the coherence time in recent years.
2. Topic, central question and testable hypothesis
Topic
Reducing the depth of quantum FLT inversion in a binary finite field GF(2^n) for binary elliptic curve cryptanalysis: A comparison of the waterfall variant with the construction of Banegas et al.
The central question
Is it possible to obtain an FLT inversion circuit with fewer CNOTs and a smaller overall depth by using a full waterfall arrangement of operations and removing intermediate inverse squaring operations, while maintaining the T-depth and allowing for an increase in the number of auxiliary qubits?
Testable hypothesis
For a field GF(2^n) with the specified dimensions n = 8, 16, 127, 163 and for standardized binary curves B-233, B-283, B-409, B-571, the “waterfall” scheme gives:
- fewer CNOTs;
- smaller overall depth of the circuit;
- not worse T-depth;
- more qubits.
Criterion of possible refutation
The hypothesis would be refuted if, for at least one of the stated sizes, the CNOT count or total depth does not decrease, or if the T-depth increases, or if the gain disappears when including the full cost of unpacking, measurement, and classical processing. These points were not refuted in the authors’ simulation comparison; however, they were not tested on real noisy hardware and are not included in the full ECDLP resource assessment.
Selected questions from the constructor
The following questions were selected and grouped for the article: 1–6 (setting and intrigue), 7, 9–11 (mechanism), 18 (relationship with previous works), 25–26, 29–30 (algorithm and cost of the scheme), 31, 33, 35 (bugs and security), 37–41 (fair comparison), 43–47 (proofs and reproducibility), 49–51, 54 (cryptographic profile), 69–74 (open questions and synthesis). Items inapplicable to the narrow simulation work are clearly limited in the text.
3. Mechanism: FLT, Ita-Tsuji and three stages
Fermat’s little theorem in a binary field gives a convenient inversion formula:
f −1 ≡ f 2n−2 (mod m(x))
where m(x) is an irreducible polynomial of degree n. Direct exponentiation requires many multiplications and squares. The classic Ita-Tsuji technique rearranges the exponent to reduce the number of multiplications. In a quantum circuit, this translates into three steps:
- calculate some “blank” of the type
f^(2^(2^k+1)−1)by the series SQUARE and MULT; - complete the indicator
2^(n−1)−1with the help of MULT; - square the result to get .
f−1
In the design by Banegas et al. (2021), after each SQUARE, an inverse squaring operation is used to “unpack” the intermediate value and reuse qubits. This saves width but adds a CNOT: the inverse squaring operation itself consists of CNOTs and, in the worst case, evaluates to . Furthermore, qubit reuse requires a series of CNOTs of order 1 per SQUARE.SQUARE−1O(n²)n
The authors of the preprint propose not unpacking intermediate values immediately, but storing them in successive registers and performing the unpacking at the end. This is the “full waterfall” approach: values ”flow” through registers rather than being returned after each step.
Minimal example for n = 8
The preprint in Figure 2 shows an example for n = 8: values corresponding to f², f³, f¹², f¹⁵, f¹²⁴, appear sequentially f²⁵⁴. The resulting sequence f²⁵⁴ = f^(2⁸−2) is the inversion. It’s useful for the reader to see this particular chain: each subsequent stage doesn’t immediately “erase” the previous one, but rather uses it as a template.
4. What exactly has changed: the “waterfall” approach
In the previous work, intermediate unpacking was performed within the first stage. In the proposed version:
- the operations of the first and second stages are rearranged and organized sequentially;
- intermediate values are stored in separate registers;
- inverse squarings are not used within iterations;
SQUARE−1 - unpacking and clearing of auxiliary registers are postponed until the end;
- Swap operations are considered free due to qubit relabeling, as is customary in a number of works on quantum cryptanalysis.
Price: more auxiliary qubits. But the authors emphasize that these qubits will still need to be unpacked at the end, meaning the “width versus depth” comparison isn’t a “free versus paid” one: it’s a choice of which resource to spend.
Important: The authors don’t claim that the T-score or T-depth improve. They claim that the T-depth is preserved, and the gains come from CNOT and overall depth. This is essential for a fair reading.
5. Research line: how the works are related
The preprint is best read as a sequence of ideas rather than as an isolated result.
| Work / direction | What does it give? | Limitation | Link to the article in question |
|---|---|---|---|
| Proos, Zalka (2003) | An early discussion of quantum inversion via the extended Euclidean algorithm for prime fields. | Not binary curves; not depth optimization. | Specifies the original cryptographic motivation: ECDLP and inversion. |
| Roetteler et al. (2017) | ECDLP resource estimates; using the Kaliski “near-inverse” variant for simple fields. | A different field type and a different algorithm. | Shows that an efficient EEA scheme is non-trivial; explains the search for alternatives. |
| Itoh, Tsujii (1989) | Classical FLT exponentiation optimization. | Classical arithmetic, not quantum circuitry. | Provides a mathematical basis that Banegas et al. translate into a quantum circuit. |
| Häner et al. (2020) | Improved quantum circuits for ECDLP; extended GCD and FLT approaches are considered. | The comparison does not focus on removing intermediate unpacking. | Shows that the FLT approach is one of the two main approaches for binary curves. |
| Banegas et al. (2021) | Specific quantum FLT inversion according to Ita–Tsuji with intermediate ; width orientation.SQUARE−1 | More CNOTs and greater overall depth due to intermediate unpacking. | A baseline that the preprint authors compare and optimize for depth. |
| Larasati et al. (2022, arXiv:2204.08940v1) | “Waterfall” option: remove intermediate inverse squares, move unpacking to the end. | More qubits; Qiskit simulation only; no full FTQC evaluation. | Offers a time-efficient alternative and explicitly captures the tradeoff. |
This line shows that the academic debate here isn’t about “FLT vs. GCD in general,” but rather which resource to optimize : width, CNOT, total depth, or T-depth. Different FTQC scenarios may yield different beneficial solutions.
6. Methodology of simulation comparison
The authors implement both the previous and proposed schemes in the Qiskit simulator. To ensure a fair comparison, they use identical SQUARE and MULT blocks. For modular multiplication, they use school multiplication with subsequent reduction; other multiplications (Karatsuba, Toom-Cook) can be substituted by replacing the block, but they are not compared in this experiment.
- Python 3.9.7, Qiskit 0.30.0.
- Local PC: Intel i7-8700, 6 cores, 64 GB RAM, Windows 10 Pro.
- Broadcast via
transpile; optimization disabled – level 0. - Gate basis:
id, h, t, tdg, s, sdg, rz, x, y, z, cx. - Metrics: CNOT count, total depth, qubit count; T-depth is specified separately.
- Dimensions:
n = 8, 16, 127, 163; curves B-233, B-283, B-409, B-571. - Swap operations are considered free due to the relabeling of qubits.
This is an important methodological detail: the result depends on the gate basis and the optimization level. With a different basis or a different translation, the absolute numbers will change. The comparison remains internally consistent, but it is not a universal “world record.”
7. Evidence: What is shown and what is not shown
What is shown
- In Table I of the preprint, for all sizes tested, the proposed design yields fewer CNOTs and a smaller overall depth compared to the design of Banegas et al.
- As the absolute gap increases
n, it generally increases; Figs. 5–6 show an increase in the difference in depth and CNOT as we move to higher degrees of the field. - The T-depth, according to the authors, is maintained; no deterioration in the T-score is reported.
- The number of qubits is increasing; this is not a hidden but an openly acknowledged tradeoff.
What is not shown
- No launch on a real quantum processor.
- There is no model for noise, decoherence and readout errors.
- There is no full resource assessment of Shor ECDLP with turning, measuring and classic post-processing.
- There is no comparison with the GCD approach with the same multiplication blocks.
- There is no claim that ECC can be “broken today”; it is a matter of subcircuit resource optimization.
A careful formulation. Using Qiskit simulations and the chosen basis, the authors demonstrated a decrease in CNOT and overall depth for the stated sizes as the width increased. This supports the hypothesis of a time-efficient alternative, but does not prove an advantage in real FTQC.
Why is this still interesting?
Inversion is rarely used just once. In scalar multiplication, point addition is repeated, meaning the small savings in a single inversion are multiplied by the number of repetitions. Furthermore, depth is related to coherence time: the longer the circuit, the more difficult it is to preserve the quantum state. Therefore, even a “local” reduction in depth can be significant in the overall architecture.
8. Cryptographic context and fair comparison
The problem under consideration is not RSA factorization, but ECDLP for binary elliptic curves. In Shor’s quantum algorithm for ECDLP, the key blocks are point addition and scalar multiplication. Inversion is a component of division, and division is a component of point addition. Therefore, optimizing the inversion is an optimization of one of the subcircuits, not the entire attack.
A correct comparison should answer the questions:
- Are the circuits compared with identical SQUARE and MULT blocks? In the preprint, yes.
- Are the gate basis and optimization level the same? In the preprint, yes, it’s level 0.
- Is unpacking taken into account? Yes, the authors clearly discuss doubling its depth and clearing the ancilla.
- Is it comparable to the GCD approach? No; this is a limitation.
- Is there a full price for measurements and classic processing? No; this is a limitation.
Therefore, the conclusion of the article should be: for the chosen model and chosen metrics, a more time-efficient version of FLT inversion is proposed , and not “quantum computers have become so much closer to breaking ECC.”
9. Errors, correction and the cost of protection
The Qiskit simulator itself does not model decoherence or errors unless explicitly specified. The preprint focuses on logic circuitry, not physical noise. Therefore, the findings cannot be automatically transferred to FTQC, as there will be costs associated with error correction, magic states, routing, and readout.
Nevertheless, the depth argument remains relevant: in fault-tolerant mode, computation time and the number of time steps affect the error probability and correction requirements. The deeper the circuit, the more difficult it is to maintain coherence. But the wider it is, the more physical qubits it requires. This is the fundamental tradeoff.
It’s important to remember that unpacking ancilla at the end isn’t free. The authors acknowledge that it doubles the depth in some estimates; however, cleanup is necessary in any case, so the comparison should include it for both schemes.
10. Open questions and the next experiment
- Other multipliers. Repeat the comparison with Karatsuba and Toom-Cook, not just with school multiplication.
- Full point. Embed the inversion into the full dot addition and scalar multiplication scheme, rather than evaluating it in isolation.
- Noise model. Run the scheme with a realistic error model and compare not only the depth but also the probability of success.
- FTQC evaluation. Add the cost of correction, magic states, routing, and reading.
- Comparison with GCD. Check whether the depth advantage over extended GCD is maintained for identical blocks.
- Different basis sets and optimizations. Check the stability of the output with a different set of basis gates and optimization level.
- Reproducibility. Publish the code, configurations, and versions so that an independent group can repeat the comparison.
The most interesting question is whether the depth gain remains if the full cost of unpacking, measuring, and correcting errors in the full ECDLP scheme is included. This is what turns local optimization into a testable architectural hypothesis.
11. Work Linkage Matrix
| Field | What do we extract? | What do we check when merging? |
|---|---|---|
| Question and hypothesis | Is it possible to reduce the depth of FLT inversion by removing the intermediate unpacking? | Is the problem similar to previous works or is it just the terminology? |
| Object and scale | GF(2^n), n = 8, 16, 127, 163; B-233…B-571 | Are the sizes and curves comparable? |
| Method | Qiskit simulation, transpile, Q-Crypton basis, optimization 0 | Are simulation and real experiment mixed up? |
| Metrics | CNOT, total depth, qubits, T-depth | Are the definitions and accounting boundaries the same? |
| Resources | SQUARE, MULT, ancilla, unpacking | Is the full cost taken into account? |
| Uncertainty | Dependence on the basis, translation, multiplier | Is the conclusion stable? |
| Source status | arXiv:2204.08940v1, preprint | Is there a later version or peer-reviewed publication? |
| Reproducibility | Qiskit code and settings | Can the comparison be repeated? |
| New contribution | Time-efficient alternative with increasing width | What’s the new question next: full FTQC assessment? |
12. Conclusion
Preprint arXiv:2204.08940v1 proposes not a “new mathematics” for inversion, but a different organization of the quantum circuit: a full “waterfall” approach, in which intermediate values are not unpacked immediately but are preserved until the end. In a simulation comparison, this reduces the number of CNOTs and the overall depth for FLT inversion GF(2^n) while preserving the T-depth, but requires more auxiliary qubits.
The main scientific conclusion is clear: in the chosen model and for the chosen metrics, a time-efficient approach is possible, but the tradeoff is bandwidth . This doesn’t invalidate other approaches (GCD, EEA) or prove its practical advantage in real-world FTQC. The next step is to integrate this inversion into the full ECDLP scheme, add noise and error correction, and compare it with alternatives under the same conditions.
It is at this point that a new testable question arises that may be of interest to the reader: if future quantum computers possess a large number of qubits but are still limited by their coherence time, might a “wide but shallow” scheme be more advantageous than a “narrow but deep” one? The answer to this question requires not a slogan, but a complete resource model.
Sources and status
- H. T. Larasati, D. S. C. Putranto, R. W. Wardhani, and H. Kim. “Reducing the Depth of Quantum FLT-Based Inversion Circuit.” arXiv:2204.08940v1. Preprint; used as the primary source for this paper.
- G. Banegas, D.J. Bernstein, I. van Hoof, T. Lange. “Concrete quantum cryptanalysis of binary elliptic curves.” IACR TCHES, 2021. Baseline for comparison.
- T. Itoh, S. Tsujii. “Structure of parallel multipliers for a class of fields GF(2^m).” Information and Computation, 1989. The classical basis of the FLT approach.
- J. Proos, C. Zalka. “Shor’s discrete logarithm quantum algorithm for elliptic curves.” arXiv:quant-ph/0301141, 2003.
- M. Roetteler, M. Naehrig, K. M. Svore, K. Lauter. “Quantum resource estimates for computing elliptic curve discrete logarithms.” 2017.
- T. Häner, S. Jaques, M. Naehrig, M. Roetteler, M. Soeken. “Improved quantum circuits for elliptic curve discrete logarithms.” PQCrypto, 2020.
- PW Shor. “Algorithms for quantum computation: discrete logarithms and factoring.” FOCS, 1994; “Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer.” SIAM Review, 1999.
The article was prepared as a scientific research analysis and educational material.
