[Paper Review] On completely factoring any integer efficiently in a single run of an order finding algorithm
This paper demonstrates that a single run of quantum order finding can completely factor any odd integer N with very high probability by classically recovering all prime factors using Miller's algorithm. Given the order r of a randomly chosen element in Z∗_N, the method efficiently computes the full prime factorization of N in polynomial time, making Shor’s algorithm's quantum part sufficient in one execution for complete factorization under mild probabilistic conditions.
We show that given the order of a single element selected uniformly at random from $\mathbb Z_N^*$, we can with very high probability, and for any integer $N$, efficiently find the complete factorization of $N$ in polynomial time. This implies that a single run of the quantum part of Shor's factoring algorithm is usually sufficient. All prime factors of $N$ can then be recovered with negligible computational cost in a classical post-processing step. The classical algorithm required for this step is essentially due to Miller.
Motivation & Objective
- To show that a single quantum order finding run can yield complete factorization of any integer N.
- To eliminate the need for recursive quantum calls in Shor’s algorithm by enabling classical recovery of all prime factors from a single order r.
- To improve on Shor’s original approach by showing that even odd orders or orders with small prime factors can be exploited for factorization.
- To provide a deterministic classical post-processing method that works with high probability for any composite N.
- To demonstrate that the success probability can be made arbitrarily high by tuning parameters c and k.
Proposed method
- Use the order r of a randomly selected g ∈ Z∗_N as input to a classical algorithm.
- Factor r into its prime power components to identify small and moderate prime factors.
- For each such prime factor q of r, compute gcd((g^{r/q} − 1) mod N, N) to test for non-trivial factors of N.
- Try all combinations of these prime factors (with multiplicity) to maximize the chance of finding non-trivial divisors.
- Use the Chinese Remainder Theorem and known factorizations of pi−1 to simulate order finding classically for testing.
- Tune parameters c (defining the bound m′ = cm) and k (number of iterations) to control failure probability.
Experimental results
Research questions
- RQ1Can a single run of quantum order finding be sufficient to completely factor any integer N, without recursive quantum calls?
- RQ2What is the success probability of recovering all prime factors of N from a single order r, and how can it be maximized?
- RQ3Can odd orders or orders with small prime factors be effectively used to recover non-trivial factors of N?
- RQ4How does the classical post-processing step based on Miller’s method scale with the number of distinct prime factors of N?
- RQ5What are the tight bounds on the failure probability of the classical recovery algorithm?
Key findings
- The algorithm completely factors N in polynomial time with failure probability bounded by 2^{-k} * (n choose 2) + 1/(2c² log² cm), where n is the number of distinct prime factors.
- The success probability can be made arbitrarily high by choosing k = (2 + τ) log n for τ ≥ 1, yielding failure probability ≤ n^{-τ}.
- For any composite N, the algorithm recovers all prime factors efficiently from a single order r with high probability.
- The method works even when r is odd or gr/2 ≡ -1 mod N, by exploiting small prime factors of r.
- Simulations in Sage confirm that the algorithm successfully recovers all factors in seconds to minutes on standard hardware for N with up to 25 prime factors.
- The time complexity is dominated by k exponentiations modulo N, each with O(m)-bit exponents, making the classical post-processing highly efficient.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.