English

Odd orders in Shor's factoring algorithm

Quantum Physics 2015-01-14 v2

Abstract

Shor's factoring algorithm (SFA) finds the prime factors of a number, N=p1p2N=p_1 p_2, exponentially faster than the best known classical algorithm. Responsible for the speed-up is a subroutine called the quantum order finding algorithm (QOFA) which calculates the order -- the smallest integer, rr, satisfying armodN=1a^r \mod N =1, where aa is a randomly chosen integer coprime to NN (meaning their greatest common divisor is one, gcd(a,N)=1\gcd(a, N) =1). Given rr, and with probability not less than 1/21/2, the factors are given by p1=gcd(ar21,N)p_1 = \gcd (a^{\frac{r}{2}} - 1, N) and p2=gcd(ar2+1,N)p_2 = \gcd (a^{\frac{r}{2}} + 1, N). For odd rr it is assumed the factors cannot be found (since ar2a^{\frac{r}{2}} is not generally integer) and the QOFA is relaunched with a different value of aa. But a recent paper [E. Martin-Lopez: Nat Photon {\bf 6}, 773 (2012)] noted that the factors can sometimes be found from odd orders if the coprime is square. This raises the question of improving SFA's success probability by considering odd orders. We show that an improvement is possible, though it is small. We present two techniques for retrieving the order from apparently useless runs of the QOFA: not discarding odd orders; and looking out for new order finding relations in the case of failure. In terms of efficiency, using our techniques is equivalent to avoiding square coprimes and disregarding odd orders, which is simpler in practice. Even still, our techniques may be useful in the near future, while demonstrations are restricted to factoring small numbers. The most convincing demonstrations of the QOFA are those that return a non-power-of-two order, making odd orders that lead to the factors attractive to experimentalists.

Keywords

Cite

@article{arxiv.1408.2738,
  title  = {Odd orders in Shor's factoring algorithm},
  author = {Thomas Lawson},
  journal= {arXiv preprint arXiv:1408.2738},
  year   = {2015}
}
R2 v1 2026-06-22T05:26:39.030Z