[Paper Review] Quantum Carry-Save Arithmetic
This paper proposes a quantum carry-save arithmetic framework that replaces classical ripple-carry adders with carry-save techniques to reduce quantum gate delay from O(N³) to O(N log N) in Shor’s algorithm. By deferring carry propagation until the end using reversible quantum full adders and modular carry-save adders, it achieves logarithmic-depth arithmetic circuits at the cost of O(N²) qubits instead of O(N), enabling faster modular exponentiation critical for factoring and discrete logarithms.
This paper shows how to design efficient arithmetic elements out of quantum gates using "carry-save" techniques borrowed from classical computer design. This allows bit-parallel evaluation of all the arithmetic elements required for Shor's algorithm, including modular arithmetic, deferring all carry propagation until the end of the entire computation. This reduces the quantum gate delay from O(N^3) to O(N log N) at a cost of increasing the number of qubits required from O(N) to O(N^2).
Motivation & Objective
- To reduce quantum gate delay in Shor’s algorithm by replacing ripple-carry adders with carry-save techniques.
- To enable efficient modular arithmetic in quantum circuits without intermediate carry propagation.
- To design reversible quantum full adders and half adders that support carry-save computation.
- To achieve logarithmic-depth arithmetic networks while maintaining quantum superposition and unitarity.
- To demonstrate that final carry propagation can be deferred to the end without impacting overall performance in Shor’s algorithm.
Proposed method
- Designs a reversible quantum full adder using CNOT and Toffoli gates, with inputs A, B, C and ancilla D, producing sum S = Xor(A,B,C) and carry K = Xor(D, Maj(A,B,C)).
- Constructs a 3->2 carry-save adder using quantum full adders to add three N-bit numbers into sum and carry outputs, deferring carry propagation.
- Develops a quantum modular 3->2 carry-save adder using quantum half adders and controlled operations to maintain modular arithmetic in superposition.
- Implements a binary tree of carry-save stages to achieve O(log N) cumulative gate delay for N-bit additions.
- Uses a final ripple-carry adder to convert the carry-save result into a unique modular representation at the end of computation.
- Applies the modular carry-save adder in a linear chain for modular exponentiation, with each step conditional on exponent bits.
Experimental results
Research questions
- RQ1Can carry-save techniques from classical arithmetic be adapted to quantum circuits to reduce gate delay?
- RQ2What is the minimal qubit overhead required to implement unitary, reversible carry-save adders in quantum circuits?
- RQ3How does carry-save arithmetic affect the depth and scalability of modular exponentiation in Shor’s algorithm?
- RQ4Can modular arithmetic be performed without intermediate carry propagation in the quantum domain?
- RQ5What is the trade-off between gate delay and qubit count when using carry-save versus ripple-carry arithmetic in quantum circuits?
Key findings
- The quantum carry-save approach reduces the gate delay for modular exponentiation from O(N³) to O(N log N), offering a significant speedup for large N.
- The method requires O(N²) qubits instead of O(N), representing a polynomial increase in space complexity to achieve logarithmic depth.
- For N = 1000, the speedup factor is approximately 10⁵, while the qubit cost increases by a factor of ~10³.
- The final result remains in carry-save form, but a single final ripple-carry adder can convert it to a unique modular representation without affecting overall delay.
- The quantum full adder is implemented using one CNOT and one Toffoli gate, with a reversible structure that preserves unitarity and supports superposition.
- The modular carry-save adder avoids intermediate carry propagation, enabling efficient quantum network design for Shor’s algorithm.
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.