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 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 2 3 β’ Requires Õ (log π) logical qubits. β’ Has a complexity with a better exponent than the Number Field Sieve. The Number Field Sieve (NFS) algorithm The best known pre-quantum method to factor π runs in heuristic asymptotic time πΏπ+π(1) where: p β 1.902 πΏ β π (log π)1/3 (log log π)2/3 This complexity is called βsubexponentialβ. The NFS algorithm is practical for nontrivial 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 πΏ 3 8/3 β 1.387 < π β 1.902 3 8 +π(1) 3 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 π. 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 π 2 3 so it requires Õ log π 2 3 qubits 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 π 2 3 Solution: Use iterations on Shorβs algorithm running ``in superpositionββ. qubits. Running Shorβs algorithm in superposition Shorβs algorithm Let π β β€ of (unknown) order π modulo π₯ Quantum part π 2 π π π π β π 2 π π, π₯ π 2 Measurement Classical part 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 We get π₯ π β1 π +1 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 |π₯ 1 (1) 2 |π₯1 , π₯2 (1) (1) (1) π₯1 π₯ = π₯1 π₯2 (π) Leaves π₯π Features 2 (2) |π₯1 , π₯2 , π₯3 = (2) (2) π₯1 π₯2 β¦ (π‘) π‘ |π₯1 , β¦ , π₯π (π‘) (π‘) π₯ = π₯1 β¦ π₯π β€ π¦ untouched Keeps them in the first indices Detects prime powers (π‘) Last test: is π₯π β€π¦? Open problem: challenges of fault-tolerant implementations Standard version of the threshold theorem [Aharonov,Ben-Or 97]: A logical circuit containing β’ π qubits, β’ π gates 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. Conclusion: other aspects we considered Smoothness test with quantum ECM β’ Same run time. β’ Qubit requirement in Õ DLP in β€π β’ Useful for the precomputation phase β’ Useless for individual logarithms log π 5/6 Parallel variant of smoothness test β’ Separates any two primes with good probability. β’ Unclear if it reduces the run time. Thank you for your attention
© Copyright 2026 Paperzz