Vanilla Exact Synthesis of CNOT Circuits is NP-hard
quant-ph, cs.CC
Submitted: 2026-09-03
Updated: 2026-09-27
Code: https://github.com/qiskit-community/qiskit-sat-synthesis
License: http://creativecommons.org/licenses/by-nc-nd/4.0/
The gist: Exact CNOT synthesis seeks a minimum-size circuit implementing a given invertible binary linear transformation.
Terminology
Abstract
Exact CNOT synthesis seeks a minimum-size circuit implementing a given invertible binary linear transformation. We study its vanilla formulation: synthesis from the identity on fixed labeled qubits, without ancillas and with all-to-all connectivity. We prove that this problem is NP-hard and that its bounded decision version is NP-complete. Hardness persists even for unitriangular targets that are low-rank perturbations of the identity and under near-linear gate budgets. Our proof gives a polynomial-time reduction from the NP-complete Hamiltonian path problem on grid graphs. A unary hypercube embedding translates graph vertices into circuit parities and edge traversals into CNOT updates. The central challenge is that Hamiltonian paths require intermediate vertex visits, whereas exact synthesis constrains only the final transformation. We bridge this gap with a replicated recorder qubits construction that encodes the required parities in the final outputs, together with a tight gate budget that forces every sufficiently short implementation to trace a Hamiltonian path. Crucially, this path structure is enforced by the construction rather than imposed as a restriction on the circuit. The result directly implies NP-hardness for shortest word problem and Cayley-graph distance computation over GL(n,2) with elementary transvections as generators, as well as fixed-width sequential XOR program minimization. For CNOT-minimal exact phase polynomial synthesis, it yields NP-hardness with a zero phase polynomial; extending the reduction to grid-graph Hamiltonian cycle problem establishes hardness even when the final linear transformation is the identity. These complementary results show that the linear and phase components each independently suffice for NP-hardness of exact phase polynomial synthesis.
Sources
- Quantum error correction below the surface code threshold
- CNOT-Distance is NP-complete under all-to-all connectivity
- On the CNOT-complexity of CNOT-PHASE circuits
- Leveraging Phase Polynomials for Quantum Circuit Optimization
- A Quantum Approximate Optimization Algorithm
- Parallelizable Exact Synthesis of Quantum Circuits via Semi-Tensor Product
- HOPPS: Hardware-Aware Optimal Phase Polynomial Synthesis with Blockwise Optimization for Quantum Circuits
- Quantum Computing in the NISQ era and beyond
- Optimal Layout-Aware CNOT Circuit Synthesis with Qubit Permutation
- Optimising quantum circuits is generally hard
- Heuristic and Optimal Synthesis of CNOT and Clifford Circuits
Related papers
- Reconquering Bell sampling on qudits: stabilizer learning and testing, quantum pseudorandomness bounds, and more
- Encrypted clones can leak: Classification of informative subsets in Quantum Encrypted Cloning
- Polynomial-time classical and quantum simulation of quantum impurity models
- Theory of quantum-enhanced interferometry with general Markovian light sources
- A convergent hierarchy of spectral gap certificates for qubit Hamiltonians
- Universal Bound and Phase Transition in Many-Body Fermionic Non-Gaussianity