Presentation is loading. Please wait.

Presentation is loading. Please wait.

A low cost quantum factoring algorithm

Similar presentations


Presentation on theme: "A low cost quantum factoring algorithm"β€” Presentation transcript:

1 A low cost quantum factoring algorithm
D. J. Bernstein, J.-F. Biasse and M. Mosca University of Illinois at Chicago University of South Florida University of Waterloo

2 Shor’s algorithm [Shor 94]: There is a quantum factoring algorithm to factor 𝑁. Runs in polynomial time in log 𝑁 . Requires O( log 𝑁) qubits ( 2log (𝑁) +𝑂(1) with [Beauregard 03, EkerΓ₯-HΓ₯stad 17]) Question: Is there an algorithm which uses a sublinear number of qubits and still outperforms the best known classical factoring methods ? In this work, we describe an algorithm for factoring 𝑁 that Requires Γ• (log 𝑁 ) logical qubits. Has a complexity with a better exponent than the Number Field Sieve.

3 The Number Field Sieve (NFS) algorithm
The best known pre-quantum method to factor 𝑁 runs in heuristic asymptotic time 𝐿 𝑝+π‘œ(1) where: p β‰ˆ 𝐿 ≔ 𝑒 (log 𝑁) 1/3 ( log log 𝑁) 2/3 This complexity is called β€œsubexponential”. The NFS algorithm is practical for non- trivial key sizes: Factorization of a 768-bit RSA modulus [Kleinjung et al. 10]. Factorization of 512-bit moduli for $75 with Amazon Cloud [VCLFBH16] Starting idea: use a quantum NFS variant to achieve a heuristic run time of 𝐿 π‘œ(1) 3 8/3 β‰ˆ1.387<π‘β‰ˆ1.902

4 Relation collection in the Number Field Sieve (NFS)
Search space π‘ˆ π‘βˆˆβ„€ Search for π‘Ž,𝑏 βˆˆπ‘ˆ such that 𝑔(π‘Ž,𝑏) is a product of primes ≀𝑦 where: π‘¦βˆˆβ„• is a subexponential bound. π‘”βˆˆβ„€[𝑋,π‘Œ] depends on 𝑁. When enough relations are found, they are used to find 𝑋,π‘Œβˆˆβ„€ such that: 𝑋 2 βˆ’ π‘Œ 2 ≑0 π‘šπ‘œπ‘‘ 𝑁 a βˆˆβ„€ With good probability, this yields a non trivial divisor of 𝑁.

5 Testing the smoothness of an integer
Problem: How do we decide if 𝑔(π‘Ž,𝑏) is a product of primes ≀𝑦 (i.e. 𝑦-smooth) ? Classical method Elliptic Curve Method (ECM) Complexity in 𝑒 Γ•( log 𝑦 ) In the NFS, this step is negligible With a quantum computer, we can use Shor’s algorithm It runs in polynomial time. log (𝑔 π‘Ž,𝑏 ) βˆˆΓ• log 𝑁 so it requires Γ• log 𝑁 qubits

6 Grover’s search algorithm
Suppose there is a polynomial time algorithm represented by the unitary π‘ˆ with π‘ˆ |π‘Ž,𝑏 = βˆ’|π‘Ž,𝑏 if 𝑔(π‘Ž,𝑏) is 𝑦-smooth. π‘ˆ |π‘Ž,𝑏 = |π‘Ž,𝑏 otherwise. Then Grover’s algorithm can find π‘Ž,𝑏 such that x=𝑔(π‘Ž,𝑏) is 𝑦-smooth in a range of π‘˜ elements in time 𝑂( π‘˜ ) Challenge: quantum algorithm for the smoothness test with Γ• log 𝑁 qubits. Solution: Use iterations on Shor’s algorithm running ``in superposition’’.

7 Running Shor’s algorithm in superposition
Let π‘Žβˆˆβ„€ of (unknown) order π‘Ÿ modulo π‘₯ 𝑀 2 𝑛 β‰ˆ 𝑗 π‘Ÿ 𝑗 π‘Ÿ π‘Ž,π‘₯ Quantum part Measurement Classical part We get π‘₯ π‘Ž π‘Ÿ 2 βˆ’1 π‘Ž π‘Ÿ 2 +1 Yields a non trivial factor of π‘₯ with probability 1/Ξ©( log log π‘₯ ) This work: completely quantum algorithm that returns a state that encodes a pair of divisors of π‘₯ Uses Γ• log 𝑁 2/3 qubits when log π‘₯ βˆˆΓ• log 𝑁 2/3

8 Smoothness test by iterations of Shor’s algorithm
We have a quantum algorithm that performs |π‘₯ β†’ |π‘₯ 1 , π‘₯ 2 where π‘₯= π‘₯ 1 π‘₯ 2 Runs 𝑑= (log 𝑁) 2/3+π‘œ(1) iterations | π‘₯ , π‘₯ 2 (1) | π‘₯ , π‘₯ , π‘₯ 3 (2) | π‘₯ 1 𝑑 ,…, π‘₯ 𝑙 (𝑑) |π‘₯ … π‘₯= π‘₯ 1 (1) π‘₯ 2 (1) π‘₯ 1 (1) =π‘₯ 1 (2) π‘₯ 2 (2) π‘₯= π‘₯ 1 (𝑑) … π‘₯ 𝑙 (𝑑) Leaves π‘₯ 𝑗 (𝑖) ≀𝑦 untouched Features Keeps them in the first indices Last test: is π‘₯ 𝑙 (𝑑) ≀ 𝑦 ? Detects prime powers

9 Open problem: challenges of fault-tolerant implementations
Standard version of the threshold theorem [Aharonov,Ben-Or 97]: π‘š qubits, 𝑇 gates A logical circuit containing can be replaced by a fault tolerant implementation using 𝑂 π‘š Polylog π‘šπ‘‡ qubits. Problem: here 𝑇 is subexponential, therefore log 𝑇 βˆˆΓ• (log 𝑁) 1/3 . [Gottesman 13]: We can achieve a constant ratio #Physical qubits/#Logical qubits using quantum error correction with certain properties. Some LDPC codes meet these restrictions, but the (classical) decoding algorithms are inefficient.

10 Conclusion: other aspects we considered
Smoothness test with quantum ECM Same run time. Qubit requirement in Γ• log 𝑁 5/6 DLP in β„€ 𝒑 Useful for the precomputation phase Useless for individual logarithms Parallel variant of smoothness test Separates any two primes with good probability. Unclear if it reduces the run time.

11 Thank you for your attention


Download ppt "A low cost quantum factoring algorithm"

Similar presentations


Ads by Google