SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · Idea

Continued fractions

A continued fraction expansion approximates a number by a sequence of fractions with growing denominators. These are called convergents. In Shor's paper on polynomial-time quantum algorithms for prime factorization and discrete logarithms, the expansion is a classical post-processing step that turns a measured value into the order of an element 1.

In the period-finding section, the paper considers a measured value c and the quantity q, where q is greater than n squared. If c satisfies |c/q − d/r| ≤ 1/(2q) for some d, then d/r is a close approximation of c/q. Because q exceeds n², at most one such fraction with denominator below n exists. The paper states that a continued fraction expansion of c/q finds all the best approximations of c/q by fractions, and that this can be done in polynomial time. If d is relatively prime to r, the denominator of the reduced fraction is r, the order of x 1.

The paper reports that a random observation gives this outcome with probability at least φ(r)/3r. Repeating the experiment O(log log r) times therefore gives a high chance of success 1.

Source · Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer (opens in a new tab) · Peter W. Shor, arXiv

References

  1. Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer (opens in a new tab) · Peter W. Shor, arXiv ↩ ↩ ↩

Research articles

See what connects to it on the map of ideas →