TRANSMISSION // 2611.40889v1
Why one more CNOT layer makes synthesis much harder
Source published
A theoretical study finds a sharp boundary in exact CNOT-circuit synthesis: depth-two targets can be recognized efficiently, while depth-three feasibility is NP-complete—even with clean ancillas.

Quantum compilers can often rearrange a circuit to run gates in parallel, but how difficult is it to find the shallowest circuit that performs a specified transformation? A new theoretical paper draws a striking line between circuits with two and three layers of CNOT gates, under a specific idealized hardware model.
The challenge of making a circuit shallow
A CNOT gate flips its target qubit when its control qubit is 1. Networks of these gates implement reversible linear transformations on bits, and they also form useful components of quantum circuits. Because two-qubit gates can contribute to execution time and exposure to errors, compilers often try to arrange them into parallel layers: gates in the same layer must act on separate wires.
This paper asks a precise question: given a binary matrix describing a transformation, can it be implemented using no more than a specified number of CNOT layers? This is an exact synthesis problem. The algorithm is given the target transformation, not a pre-existing gate sequence to tidy up, and may build a circuit from scratch.
The authors study an all-to-all connectivity model, where any two wires may interact, but wire labels stay fixed and swaps are not free. They also consider clean ancillas: extra wires initialized to zero that must be returned to zero. There is no measurement in the model.
An efficient test at depth two
For depth at most two, the authors give a deterministic algorithm that decides whether an explicit n × n binary matrix has a suitable CNOT circuit, and constructs one if it does. Its running time is O(n²), matching the time needed to read a dense matrix. Clean ancillas do not change which transformations are achievable at this depth.
The method uses the pattern of nonzero entries in the target matrix to build a graph linking pairs of wires. The authors show that any feasible two-layer circuit can be represented using only links visible in this graph. Its structure is constrained enough for the algorithm to solve a related finite constraint problem using dynamic programming. In broad terms, a graph with limited structural complexity makes the search manageable.
At depth three, the picture changes. Deciding whether a target can be implemented in at most three layers is NP-complete. This means the problem is in the class for which a proposed solution can be checked efficiently, but it is at least as hard as every problem in NP under standard polynomial-time reductions. It does not prove that no efficient algorithm exists; it implies that one would be unlikely unless P = NP.
The hardness result is robust within the paper’s model. It holds even when target matrices are unit lower-triangular, and across the clean-ancilla settings studied: no ancillas, specified polynomially bounded budgets, or any finite amount of clean workspace. The proof encodes a graph-coloring problem into the matrix so that a valid three-layer circuit exists exactly when a prescribed edge coloring can be completed. A structural description of how clean ancillas can help at depth three lets the authors rule out shortcuts through extra wires.
Ancillas: limited help, with a bound
The results do not say ancillas are useless. At depth two they do not improve feasibility, but at depth three they can help particular transformations. The paper gives a five-wire example whose minimum depth is four without ancillas and three with one clean ancilla.
The authors also prove a workspace bound: if any finite number of clean ancillas makes a target feasible in three layers, then at most ⌊n/3⌋ suffice. Their three-layer normal form explains why: ancillas can assist through a restricted copy–use–clear pattern, effectively creating certain two-target operations in the middle layer.
What the boundary does—and doesn’t—tell us
The result is a complexity classification, not a benchmark of compiled circuits on quantum hardware. The O(n²) bound guarantees an algorithmic running time, but the paper notes that its implementation has large constants and is not claimed to outperform practical heuristic or SAT-based tools. Nor does NP-completeness establish that every depth-three instance is hard in practice; it concerns worst-case computational difficulty.
The conclusions also depend on the chosen rules. Restricted connectivity, free wire permutations, borrowed ancillas that begin in unknown states, or measurement and feed-forward could change what circuits can do and how difficult synthesis is. The paper identifies several such settings, as well as fixed depths of four or more, as open questions.
This account is based on the arXiv preprint version 1, posted 30 November 2026. A preprint is a publicly shared research manuscript and may not have undergone peer review. The evidence available here includes the paper text and abstract, not independent validation of its proofs or claims. The authors also disclose AI assistance in developing proofs and drafting the manuscript, while stating that they checked the claims and take responsibility for the content.
- quantum computing
- CNOT circuits
- circuit synthesis
- computational complexity
- quantum compilation
- clean ancillas
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Using a unitary’s spectrum to trim quantum circuits
Source published
Shared keywords: circuit synthesis, quantum computing
RubriQ teaches AI to favor cheaper correct quantum circuits
Source published
Shared keywords: circuit synthesis, quantum computing
A compiler search pushes RSA-2048 estimates below one billion Toffolis
Source published
Shared keywords: quantum compilation, quantum computing
A smarter way to split fermion simulations across quantum processors
Source published
Shared keywords: quantum compilation, quantum computing
A quantum compiler that keeps error correction in view
Source published
Shared keywords: quantum compilation