[Paper Review] Improving the Success Probability for Shor's Factoring Algorithm
This paper improves Shor's integer factoring algorithm by selecting inputs $ y \in \mathbb{Z}_n^* $ with Jacobi symbol $ \left(\frac{y}{n}\right) = -1 $, which guarantees that the order of $ y $ modulo $ n $ is even and avoids the $ y^k \equiv -1 \pmod{n} $ failure case. This selection increases the success probability from $ \frac{1}{2} $ to at least $ \frac{3}{4} $, significantly reducing the worst-case failure rate.
Given n=p*q with p and q prim and y in Z_{p*q}^*. Shor's Algorithm computes the order r of y, i.e. y^r=1 (mod n). If r=2k is even and y^k e -1 (mod n) we can easily compute a non trivial factor of n: gcd(y^k-1,n). In the original paper it is shown that a randomly chosen y is usable for factoring with probabily {1/2}. In this paper we will show an efficient possibility to improve the lower bound of this probability by selecting only special y in Z_n^* to {3/4}, so we are able to reduce the fault probabilty in the worst case from {1/2} to {1/4}.
Motivation & Objective
- To reduce the failure probability in Shor’s integer factoring algorithm by improving the success probability of finding nontrivial factors.
- To identify a class of inputs $ y \in \mathbb{Z}_n^* $ that guarantee even order and avoid the $ y^k \equiv -1 \pmod{n} $ failure case.
- To provide a deterministic preprocessing criterion—using the Jacobi symbol—that increases the lower bound on success probability beyond Shor’s original random selection.
- To prove that selecting $ y $ with $ \left(\frac{y}{n}\right) = -1 $ yields a success probability of at least $ \frac{3}{4} $, improving upon the $ \frac{1}{2} $ bound from random $ y $.
Proposed method
- Use the Jacobi symbol $ \left(\frac{y}{n}\right) = -1 $ as a filtering criterion to select $ y \in \mathbb{Z}_n^* $ with guaranteed even order modulo $ n $.
- Leverage the property that if $ y $ is a non-square modulo $ p $ or $ q $, then its order modulo $ p $ or $ q $ is even, ensuring even order modulo $ n $.
- Apply Lemma 5 to characterize elements of even order in $ \mathbb{Z}_p^* $ and $ \mathbb{Z}_q^* $ based on their discrete logarithm exponents in terms of $ 2 $-adic valuations.
- Count the number of $ y \in \mathbb{Z}_n^* $ with $ \left(\frac{y}{n}\right) = -1 $ that satisfy $ y^k \equiv -1 \pmod{n} $, which are the only ones failing the factoring condition.
- Use case analysis based on the 2-adic valuations $ m_1 = v_2(p-1) $, $ m_2 = v_2(q-1) $ to compute the fraction of bad $ y $, showing it is at most $ \frac{1}{4} $.
- Derive the success probability as $ P(n) = 1 - \frac{1}{2^{m_2 - m_1 + 1}} $ when $ m_1 \neq m_2 $, and $ 1 $ when $ m_1 = m_2 $, yielding a lower bound of $ \frac{3}{4} $.
Experimental results
Research questions
- RQ1Can the success probability of Shor’s factoring algorithm be improved beyond the $ \frac{1}{2} $ lower bound achieved by random input selection?
- RQ2What class of inputs $ y \in \mathbb{Z}_n^* $ ensures that the order of $ y $ is even and $ y^k \not\equiv -1 \pmod{n} $, thus enabling successful factorization?
- RQ3How does the 2-adic valuation of $ p-1 $ and $ q-1 $ affect the fraction of inputs that fail the factoring condition?
- RQ4Can a deterministic preprocessing step using the Jacobi symbol $ \left(\frac{y}{n}\right) = -1 $ be used to increase the guaranteed success probability of Shor’s algorithm?
Key findings
- Selecting $ y \in \mathbb{Z}_n^* $ with $ \left(\frac{y}{n}\right) = -1 $ ensures that the order of $ y $ modulo $ n $ is even, satisfying the first condition for successful factorization.
- The probability that such $ y $ satisfies $ y^k \not\equiv -1 \pmod{n} $ is at least $ \frac{3}{4} $, improving the worst-case success probability from $ \frac{1}{2} $ to $ \frac{3}{4} $.
- When $ v_2(p-1) = v_2(q-1) $, all $ y $ with $ \left(\frac{y}{n}\right) = -1 $ satisfy both conditions, yielding a success probability of $ 1 $.
- The number of failing $ y $ with $ \left(\frac{y}{n}\right) = -1 $ is bounded by $ \frac{1}{4} \varphi(n) \cdot \frac{1}{2^{m_2 - m_1}} $ when $ m_1 \neq m_2 $, leading to a failure probability of at most $ \frac{1}{4} $.
- The method is efficient because the Jacobi symbol is computable in polynomial time, enabling fast preprocessing to boost success rates in quantum factoring.
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.