Research
The Quantum Euclid Algorithm and its Application to Factoring
Classical Euclid's algorithm finds the GCD of two integers by repeated division with remainders. This paper asks what a quantum version of that procedure looks like when one of the two integers is a…

- arXiv
- 2611.15387
- Published
- 2026-11-11
- Authors
- Asma Al-Qasimi, Daniel F. V. James
In plain words
Classical Euclid's algorithm finds the GCD of two integers by repeated division with remainders. This paper asks what a quantum version of that procedure looks like when one of the two integers is a product of two odd primes — the structure that matters for factoring problems.
AI summary
Overview
Research area: Quantum algorithms — specifically quantum number theory, the Greatest Common Divisor (GCD) and integer factorization.
Technical level: Intermediate. Readers should know what Euclid's algorithm is and have some familiarity with qubits, measurement, and the broad shape of quantum factoring algorithms; the abstract does not presuppose more than that.
Scope: A proposed quantum implementation of Euclid's GCD algorithm for the case where one input is the product of two odd primes, and the suggestion that this can be repurposed as a factoring method that avoids modular exponentiation.
What This Paper Is About
Classical Euclid's algorithm finds the GCD of two integers by repeated division with remainders. This paper asks what a quantum version of that procedure looks like when one of the two integers is a product of two odd primes — the structure that matters for factoring problems. The goal is to see whether such a quantum GCD routine can be turned into a way of factoring numbers, and the authors report that the factors can in principle be read off directly from measurements.
Key Contributions
- A quantum implementation of the Euclid algorithm for computing the GCD, specialized to the case where one integer is a compound of two odd primes.
- A proposed connection between this quantum GCD procedure and the quantum factoring problem.
- A factoring approach in which modular exponentiation — a central and expensive ingredient in the standard quantum factoring template — is not required.
- A candid assessment of the method's scalability, which the authors describe as unfavourable for large numbers.
Main Findings
- Modular exponentiation is eliminated: The proposed factoring route does not rely on modular exponentiation, distinguishing it from the usual order-finding style of quantum factoring.
- Factors appear directly from measurement: Rather than being inferred from a post-processed period or phase, the factors are reported to be revealed straight from the measurement outcomes.
- Scope is restricted: The treatment applies when one of the integers is a compound of two odd-valued primes.
- Scaling is poor: The authors state explicitly that the method does not scale favourably for large numbers, so it is not presented as a practical factoring engine.
- Quantitative results not in the abstract: The abstract gives no resource counts, qubit requirements, success probabilities, or benchmark numbers; those details would be in the full text.
Methodology in Plain English
The authors take a familiar classical procedure — repeatedly taking remainders until a common divisor emerges — and describe how to express it as a quantum computation, in the specific setting where one of the numbers is a product of two odd primes. Because that number carries exactly the structure one wants to recover when factoring, running the quantum GCD procedure and then measuring is proposed as a way to expose those prime factors. The abstract does not describe the circuit construction, the register layout, or the measurement statistics; it only states the overall approach and its two headline properties (no modular exponentiation, factors read out directly) along with the caveat about scaling.
Why This Matters
The dominant quantum factoring paradigm works indirectly: it converts factoring into a period-finding problem, which requires modular exponentiation and then classical post-processing to extract factors. A route that produces factors directly from measurement, without that expensive subroutine, is conceptually different and could inform how researchers think about alternative algorithm designs — even if the present version is not scalable.
Potential application areas, if such methods were ever made efficient:
- Cryptography: Assessing the long-term risk that quantum algorithms pose to public-key systems built on the difficulty of factoring products of two large primes.
- Cryptographic key generation and testing: GCD computations and checks for two-prime structure are routine when generating and validating keys.
- Modular arithmetic in coding and error correction: GCD-type operations underpin many constructions in coding theory and modular computation.
- Algorithm design research: Serving as a template for quantum routines that extract structural information directly from measurement rather than via period-finding.
Industry relevance: Primarily for the quantum computing and cryptography communities — hardware and algorithm groups exploring alternatives to the standard factoring pipeline, and security organizations tracking which quantum approaches could eventually matter. Given the stated scaling limitation, the abstract makes no claim of near-term practical impact.
Future Directions
- Improving scalability: The authors flag poor scaling for large numbers as the central weakness; finding a construction that grows more gracefully is the obvious next step.
- Generalizing the input class: Extending the method beyond numbers that are a product of exactly two odd primes — for example, repeated prime factors or more than two factors.
- Comparison with established approaches: A resource-level comparison against modular-exponentiation-based factoring would clarify whether the direct-measurement advantage offsets the scaling penalty.
- Understanding the measurement behavior: Clarifying what the measurement outcomes reveal, how reliably, and how robust the procedure is to imperfect gates and noise.
Target Audience
Quantum algorithm researchers interested in alternatives to the standard order-finding approach to factoring; graduate students in quantum information who want a concrete, accessible example of translating a classical number-theoretic algorithm into a quantum procedure; and cryptographers or security analysts who track the space of quantum factoring proposals. Readers seeking a practical, large-number factoring method will find the paper's own scaling caveat directly relevant.
Authors’ abstract
We present a quantum implementation of the Euclid algorithm for calculating the Greatest Common Divisor when one of the integers involved is a compound of two odd-valued primes. We discuss a possible application to the quantum factoring problem, for which modular exponentiation is no longer required, and the factors are revealed directly by measurements, although the method does not scale for large numbers in a favourable manner.
The full abstract on arXivRelated papers
- End-to-End Quantum Algorithm for Differential Equations: Application to Simulating a Biomolecular System 2026-11-19 · quant-ph · Key terms of the title in common
- Application a quantum machine learning algorithm to the applied problem of modeling the thermal regime of a servers 2026-10-30 · quant-ph · Key terms of the title in common
- Quantum Simulation of Quantum Channels and Applications 2026-11-09 · quant-ph · Key terms of the title in common
- Towards large-scale ab initio Molecular Dynamics Simulation with Efficient Sampling-based Quantum Computing Algorithms 2026-11-08 · quant-ph · Key terms of the title in common
- Multirobust Control Pulses Designed by Iterative Quantum Kolmogorov-Arnold-Moser Algorithm 2026-11-05 · quant-ph · Key terms of the title in common