Greatest common divisor
The largest positive integer that divides both of two integers, assuming they are not both zero. Efficient classical algorithms compute it. In Shor’s factoring method it helps extract factors after an order estimate.
Also called GCD, Greatest common factor
On this page
Plain-language explanation
The Euclidean algorithm repeatedly replaces a pair by a smaller remainder problem until the divisor is found. In factoring reductions, an order-finding result can produce candidate numbers whose GCD with N reveals a factor. This is a useful reminder that a quantum algorithm often relies on powerful ordinary algorithms before and after the quantum step.
The term makes Shor's worked examples understandable without requiring advanced number theory. It also helps explain why quantum computing usually operates within a hybrid mathematical workflow.
Example
The GCD of 15 and 5 is 5; the GCD of 15 and 3 is 3. In the small order-finding example with a = 2 and order four modulo 15, the values 2^2 + 1 and 2^2 - 1 lead directly to these two factors.
Scope and limits
Computing a GCD is not itself the hard factoring problem. The challenge is obtaining useful inputs to the GCD step; an arbitrary pair may give only 1 or N.
Order finding is a related idea. Order finding supplies periodic information that may generate useful candidate factors. GCD is a classical arithmetic operation used to extract and verify factors from those candidates.
Sources
Verification scope
Recorded source check ·
Theoretical factoring and discrete-logarithm algorithms and their scaling
Expanded preprint of the 1994 result; no claim about contemporary cryptographic-scale execution.
Verification scope
Recorded source check ·
Quantum query methods, Fourier methods, phase estimation and algorithms
Algorithm guarantees depend on access and resource models.