[Paper Review] Shor's algorithm on a nearest-neighbor machine
This paper presents a new quantum exponentiation circuit for Shor's algorithm that achieves linear width and quadratic depth on a nearest-neighbor quantum architecture by combining Draper’s transform adder with Zalka’s approximation technique for modular multiplication. The method reduces the number of large QFTs from O(n²) to O(n), enabling efficient implementation under nearest-neighbor constraints while maintaining correctness with high probability.
We give a new ``nested adds'' circuit for implementing Shor's algorithm in linear width and quadratic depth on a nearest-neighbor machine. Our circuit combines Draper's transform adder with approximation ideas of Zalka. The transform adder requires small controlled rotations. We also give another version, with slightly larger depth, using only reversible classical gates. We do not know which version will ultimately be cheaper to implement.
Motivation & Objective
- To design a scalable quantum exponentiation circuit for Shor’s factorization algorithm under the nearest-neighbor qubit interaction constraint.
- To reduce the depth of nearest-neighbor exponentiation circuits from O(n³) to O(n²) while maintaining linear width.
- To enable practical implementation by minimizing costly controlled rotations and leveraging approximation techniques.
- To provide a viable alternative to existing circuits that require superlinear width or cubic depth on nearest-neighbor architectures.
- To explore trade-offs between quantum circuits with small controlled rotations and those using only reversible classical gates.
Proposed method
- Uses Draper’s transform adder, which relies on QFTs and controlled rotations, to perform controlled additions efficiently.
- Applies Zalka’s approximation method to estimate the quotient q in modular multiplication using only the high-order ℓ₀ bits of intermediate values.
- Performs modular multiplication via O(n) controlled additions, framed by a single QFT per multiplication, reducing the number of large QFTs from O(n²) to O(n).
- Implements a nested-adds structure that interleaves control bits and partial products across qubit blocks to enable nearest-neighbor operations.
- Introduces a classical version using ripple-carry adders and pseudo-Toffoli gates to eliminate small controlled rotations, though at the cost of increased depth to O(n² log n).
- Employs a mesh circuit for register interleaving and a simplified controlled swap for zero-initialized registers to reduce circuit complexity.
Experimental results
Research questions
- RQ1Can a modular exponentiation circuit be constructed with linear width and quadratic depth on a nearest-neighbor quantum architecture?
- RQ2How can the number of large QFTs be reduced in modular multiplication to improve circuit depth?
- RQ3What is the trade-off between circuits using small controlled rotations (via QFT-based adders) and those using only reversible classical gates?
- RQ4Can Zalka’s approximation technique for quotient estimation be effectively integrated into a nearest-neighbor circuit framework?
- RQ5What is the impact of error probability in high-precision arithmetic when using truncated bit representations in quantum circuits?
Key findings
- The proposed circuit achieves width O(n) and depth O(n²) for modular exponentiation on a nearest-neighbor architecture, improving upon prior O(n³) depth solutions.
- By approximating the quotient q using only ℓ₀ = O(log n) high-order bits, the number of large QFTs is reduced from O(n²) to O(n), significantly lowering depth overhead.
- The circuit using Draper’s transform adder requires small controlled rotations but maintains O(n²) depth and linear width.
- An alternative classical version avoids small controlled rotations entirely, achieving depth O(n² log n) with linear width, matching Van Meter’s depth but with better width scaling.
- The error probability of incorrect high-bit estimation in the ripple-carry version is bounded by O(n³ 2⁻ᵗ), which can be made negligible by choosing t = O(log n).
- The circuit framework is compatible with existing nearest-neighbor QFT implementations, enabling a full Shor’s algorithm circuit with linear width and quadratic depth.
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.