[Paper Review] Circuit for Shor's algorithm using 2n+3 qubits
This paper presents a quantum circuit for Shor's factorization algorithm that uses only 2n+3 qubits—fewer than previous designs—by employing a Fourier-space adder, classical control of modular exponentiation, and sequential quantum Fourier transforms. The circuit achieves polynomial-time factorization with O(n³lg n) gates and O(n³) depth, offering a practical reduction in qubit requirements without relying on special number properties or unbounded quantum gates.
We try to minimize the number of qubits needed to factor an integer of n bits using Shor's algorithm on a quantum computer. We introduce a circuit which uses 2n+3 qubits and O(n^3 lg(n)) elementary quantum gates in a depth of O(n^3) to implement the factorization algorithm. The circuit is computable in polynomial time on a classical computer and is completely general as it does not rely on any property of the number to be factored. Keywords: Factorization, quantum circuits, modular arithmetics
Motivation & Objective
- To minimize the number of qubits required for Shor’s factorization algorithm on a quantum computer.
- To design a circuit that uses only elementary quantum gates and avoids unbounded Toffoli gates.
- To maintain polynomial runtime and general applicability, independent of number-specific properties.
- To enable practical implementation on near-term quantum hardware with limited qubit availability.
Proposed method
- The circuit uses a Fourier-space adder (ϕADD) that performs addition in the quantum Fourier transform basis, allowing classical control of the addend.
- Classical values of the base 'a' in modular exponentiation are precomputed and applied as controlled phase shifts, reducing the need for full quantum control.
- An ancillary qubit prevents overflow during addition, and the modular addition is implemented by conditional subtraction of N using the inverse ϕADD gate.
- The quantum Fourier transform is applied sequentially rather than in parallel to reduce qubit overhead.
- The order-finding circuit is constructed by composing controlled ϕADD gates to implement modular exponentiation, with the final measurement yielding the order r modulo N.
- An approximate QFT is used with k_max = O(lg(n/ε)) to reduce gate count while maintaining sufficient accuracy for factorization.
Experimental results
Research questions
- RQ1Can Shor’s algorithm be implemented with fewer than 2n+3 qubits while maintaining polynomial runtime and general applicability?
- RQ2How can modular exponentiation be implemented with minimal qubit usage using only elementary quantum gates?
- RQ3What is the trade-off between qubit count and circuit depth in order-finding circuits for factoring?
- RQ4Can classical precomputation and Fourier-space arithmetic reduce the need for full quantum control in modular exponentiation?
- RQ5To what extent can the number of qubits be reduced without relying on unbounded Toffoli gates or special number properties?
Key findings
- The proposed circuit uses exactly 2n+3 qubits, representing a reduction compared to prior designs such as the 5n+1 or 7n+1 qubit circuits.
- The circuit achieves O(n³lg n) elementary quantum gates and O(n³) circuit depth, ensuring polynomial-time execution.
- The use of classical control and Fourier-space addition allows the elimination of full quantum control over the base 'a' in modular exponentiation.
- The circuit is general and does not depend on any specific properties of the number N being factored, making it applicable to all composite integers.
- The use of an approximate QFT with k_max = O(lg(n/ε)) ensures high accuracy for any polynomially small error ε while minimizing gate count.
- For N=15, the circuit requires 11 qubits, but many operations are identity due to the small order of a, indicating potential for further optimization in specific cases.
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.