Skip to main content
QUICK REVIEW

[Paper Review] On the CNOT-cost of TOFFOLI gates

Vivek Shende, Igor L. Markov|arXiv (Cornell University)|Mar 15, 2008
Advancements in Semiconductor Devices and Circuit DesignEngineering8 citations
TL;DR

This paper proves the CNOT-cost optimality of the Toffoli gate by showing that any quantum circuit implementing the n-qubit Toffoli gate without ancilla qubits requires at least 2n CNOT gates, with the three-qubit case requiring exactly six CNOTs—achieving the known decomposition from the literature. The proof uses Cartan decompositions, particularly the cosine-sine and demultiplexing decompositions, to derive circuit constraints and leverage the canonicity of these forms to bound CNOT counts via CZ-counting techniques.

ABSTRACT

The three-input TOFFOLI gate is the workhorse of circuit synthesis for classical logic operations on quantum data, e.g., reversible arithmetic circuits. In physical implementations, however, TOFFOLI gates are decomposed into six CNOT gates and several one-qubit gates. Though this decomposition has been known for at least 10 years, we provide here the first demonstration of its CNOT-optimality. We study three-qubit circuits which contain less than six CNOT gates and implement a block-diagonal operator, then show that they implicitly describe the cosine-sine decomposition of a related operator. Leveraging the canonicity of such decompositions to limit one-qubit gates appearing in respective circuits, we prove that the n-qubit analogue of the TOFFOLI requires at least 2n CNOT gates. Additionally, our results offer a complete classification of three-qubit diagonal operators by their CNOT-cost, which holds even if ancilla qubits are available.

Motivation & Objective

  • To establish the minimum number of CNOT gates required to implement the n-qubit Toffoli gate in quantum circuits without ancilla qubits.
  • To prove that the standard six-CNOT decomposition of the three-qubit Toffoli gate is optimal in terms of CNOT count.
  • To develop a framework for CNOT-counting in small quantum circuits using Cartan decompositions and their canonicity.
  • To classify three-qubit diagonal operators by their CNOT-cost, even when ancilla qubits are available.
  • To extend the analysis to circuits with ancillae and determine the CNOT-cost of CCZ and Peres gates under such conditions.

Proposed method

  • Utilizes the KAK (Cartan) decomposition in SU(2^n) to generalize singular value decomposition for quantum circuits.
  • Applies the cosine-sine decomposition and demultiplexing decomposition to derive constraints on circuit structure and gate placement.
  • Leverages the canonicity of Cartan decompositions to limit the number of one-qubit gates and reduce circuit topology search space.
  • Introduces qubit-local CZ-costs and uses spectral invariants from the demultiplexing decomposition to lower-bound CNOT counts.
  • Employs matrix entry analysis from circuit equations to derive gate constraints, generalizing prior two-qubit results to n-qubit systems.
  • Uses Corollary 13 to eliminate non-diagonal one-qubit gates and restructure circuits to isolate critical CNOT gate dependencies.

Experimental results

Research questions

  • RQ1What is the minimum number of CNOT gates required to implement the n-qubit Toffoli gate without ancilla qubits?
  • RQ2Is the six-CNOT decomposition of the three-qubit Toffoli gate optimal in terms of CNOT count?
  • RQ3Can the CNOT-cost of diagonal three-qubit operators be completely classified, even with ancilla qubits?
  • RQ4How do Cartan decompositions—particularly cosine-sine and demultiplexing—enable rigorous CNOT-counting in quantum circuits?
  • RQ5What is the CNOT-cost of the controlled-controlled-Z (CCZ) and Peres gates when ancillae are permitted?

Key findings

  • The n-qubit Toffoli gate requires at least 2n CNOT gates when no ancilla qubits are used, establishing a tight lower bound.
  • For the three-qubit Toffoli gate, the CNOT-cost is exactly six, and this bound holds even when ancilla qubits are available.
  • The CNOT-cost of the CCZ gate with ancillae is six, and the Peres gate has a CNOT-cost of five under the same conditions.
  • The analysis provides a complete classification of three-qubit diagonal operators by their CNOT-cost, valid even in the presence of ancilla qubits.
  • The proof demonstrates that the standard six-CNOT decomposition of the Toffoli gate is CNOT-optimal, resolving an open problem from Nielsen and Chuang’s textbook.
  • The method establishes that qubit-local CZ-counting, combined with Cartan decomposition canonicity, enables rigorous CNOT-counting with linear lower bounds for general n-qubit operators.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.