[Paper Review] Shor's algorithm with fewer (pure) qubits
This paper proposes a revised version of Shor's algorithm that reduces the number of required pure qubits from approximately 2n to about 1.5n by eliminating the need to initialize most qubits and using modular arithmetic with superposed cosets. It introduces a modified modular multiplication technique and a trinary quantum Fourier transform to maintain efficiency, enabling significant qubit savings while preserving correctness through classical precomputation and approximate quantum operations.
In this note we consider optimised circuits for implementing Shor's quantum factoring algorithm. First I give a circuit for which none of the about 2n qubits need to be initialised (though we still have to make the usual 2n measurements later on). Then I show how the modular additions in the algorithm can be carried out with a superposition of an arithmetic sequence. This makes parallelisation of Shor's algorithm easier. Finally I show how one can factor with only about 1.5n qubits, and maybe even fewer.
Motivation & Objective
- To reduce the number of qubits required for Shor’s factoring algorithm, particularly the number of qubits that must be initialized to |0⟩.
- To eliminate the need for initializing any of the ~2n qubits in the standard circuit by modifying modular multiplication operations.
- To enable parallelization of modular additions through a novel quantum method using superpositions of arithmetic sequences.
- To achieve a scalable reduction in qubit count, aiming for 1.5n qubits or fewer, by decomposing n-bit modular multiplications into smaller operations.
Proposed method
- Modifies controlled modular multiplication to act as |α,β⟩ → |a·α, a⁻¹·β⟩ mod N without requiring additional work qubits, replacing two multiplications with three.
- Introduces a 'trinary' quantum Fourier transform to compensate for the increased gate count from the modified multiplication step.
- Uses superpositions of the form ∑|b + xN⟩ to represent n-qubit numbers, enabling approximate modular addition without full modular reduction.
- Applies Draper’s Fourier-addition technique to perform modular additions efficiently using quantum Fourier transforms.
- Decomposes n-bit modular multiplications into two half-size multiplications using intermediate results from the extended Euclidean algorithm.
- Employs classical precomputation and reversible circuits to shift computational burden from quantum to classical processing.
Experimental results
Research questions
- RQ1Can Shor’s algorithm be implemented with fewer initialized qubits than the standard 2n, and if so, how can the circuit be modified to avoid initialization?
- RQ2Can modular addition be performed more efficiently in a quantum circuit by using superpositions of arithmetic sequences instead of standard modular arithmetic?
- RQ3Is it possible to reduce the total number of qubits in Shor’s algorithm below 2n by decomposing n-bit operations into smaller, lower-qubit operations?
- RQ4Can the trade-off between qubit count and circuit depth be optimized using approximate quantum operations and classical precomputation?
- RQ5What is the minimal number of qubits required to factor an n-bit number using a modified version of Shor’s algorithm?
Key findings
- The paper demonstrates that none of the ~2n qubits in Shor’s algorithm need to be initialized to |0⟩, as the modified modular multiplication preserves superposition and avoids the need for work qubits.
- A new method for modular addition using superpositions of arithmetic sequences allows for significant parallelization and reduces circuit depth to O(n²).
- By decomposing n-bit modular multiplications into two n/2-bit multiplications via intermediate results from the extended Euclidean algorithm, the qubit count is reduced to approximately 1.5n.
- The proposed circuit uses only 1 work qubit for modular addition and leverages Draper’s Fourier-addition technique, achieving a total qubit count of ⌈1.5n⌉ + 2 for odd n.
- The method allows for further potential reductions by factoring the n/2-bit components, suggesting that qubit counts as low as 1.1n may be achievable with additional classical factorization of intermediate values.
- The approach maintains correctness through classical precomputation and approximate quantum operations, with the possibility of further optimization via classical factorization of intermediate numbers.
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.