[Paper Review] A logarithmic-depth quantum carry-lookahead adder
This paper presents a quantum carry-lookahead adder (qCLA) that computes the sum of two n-bit numbers in O(log n) depth using O(n) ancillary qubits, significantly improving upon the O(n) depth of prior quantum ripple-carry adders. By adapting classical carry-lookahead techniques—using generate, propagate, and kill signals in a tree-structured computation—the qCLA enables logarithmic-depth quantum addition, drastically reducing circuit depth for applications like Shor’s algorithm.
We present an efficient addition circuit, borrowing techniques from the classical carry-lookahead arithmetic circuit. Our quantum carry-lookahead (QCLA) adder accepts two n-bit numbers and adds them in O(log n) depth using O(n) ancillary qubits. We present both in-place and out-of-place versions, as well as versions that add modulo 2^n and modulo 2^n - 1. Previously, the linear-depth ripple-carry addition circuit has been the method of choice. Our work reduces the cost of addition dramatically with only a slight increase in the number of required qubits. The QCLA adder can be used within current modular multiplication circuits to reduce substantially the run-time of Shor's algorithm.
Motivation & Objective
- To design a quantum addition circuit with logarithmic depth to overcome the O(n) depth bottleneck of existing quantum ripple-carry adders.
- To adapt classical carry-lookahead arithmetic techniques—based on generate, propagate, and kill signals—into a reversible quantum circuit framework.
- To minimize ancillary qubit usage while maintaining low circuit depth and ensuring reversibility and space-boundedness in quantum computation.
- To enable efficient modular addition (mod 2^n and mod 2^n−1) and comparison operations within quantum circuits.
- To support faster execution of quantum algorithms such as Shor’s algorithm by reducing the depth of arithmetic subroutines.
Proposed method
- Adapts the classical carry-lookahead adder’s tree-structured carry computation, where carry status (generate, propagate, kill) is computed recursively over intervals.
- Uses Toffoli and controlled-NOT gates to implement reversible logic for computing generate and propagate signals across bit pairs.
- Constructs a hierarchical tree of carry status computations, with depth logarithmic in n, enabling parallel evaluation of carry bits.
- Employs in-place and out-of-place variants, with explicit erasure of ancillary qubits to preserve quantum interference.
- Modifies the circuit for modular arithmetic by truncating or reducing the output register size, and handles incoming carry bits as inputs.
- Uses the identity ∑⌊n/2^i⌋ = n − w(n) to analyze the number of required Toffoli gates and optimize ancilla count.
Experimental results
Research questions
- RQ1Can classical carry-lookahead techniques be adapted to quantum circuits while preserving reversibility and minimizing ancilla usage?
- RQ2What is the minimum achievable depth for a reversible quantum adder, and can it be reduced from O(n) to O(log n) without excessive qubit overhead?
- RQ3How can modular addition (mod 2^n and mod 2^n−1) be efficiently implemented in a logarithmic-depth quantum circuit?
- RQ4What are the trade-offs between in-place and out-of-place computation in terms of qubit count and circuit depth?
- RQ5Can the carry-lookahead structure be extended to support comparison and other arithmetic primitives in quantum circuits?
Key findings
- The qCLA adder achieves O(log n) circuit depth for adding two n-bit numbers, a significant improvement over the O(n) depth of previous quantum ripple-carry adders.
- The circuit uses O(n) ancillary qubits, with the exact number depending on the version (in-place or out-of-place) and modular variant.
- For n = 2^k, the in-place qCLA adder uses 2n − w(n) − ⌊log n⌋ − 1 ancillae and has a size of 10n − 3w(n) − 3w(n−1) − 3⌊log n⌋ − 3⌊log(n−1)⌋ − 7 Toffoli gates.
- The out-of-place qCLA adder for addition modulo 2^n−1 uses 2n−2 ancillae and has a depth of 3⌊log(n−1)⌋ + ⌊log((n−1)/3)⌋ + 12, which is substantially lower than the O(n) depth of ripple-carry alternatives.
- The qCLA circuit supports both in-place and out-of-place computation, as well as addition with or without an incoming carry bit, enabling flexible integration into quantum algorithms.
- The paper demonstrates that the qCLA adder can reduce the runtime of Shor’s algorithm by accelerating the modular multiplication subroutines that rely on fast addition.
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.