REVIEW
Vanilla Exact Synthesis of CNOT Circuits is NP-hard
Quantum Physics · Submitted 3 Sep 2026
Pith's verdict: The result is likely correct and the reduction is clever, but the written proof of the soundness direction has a genuine gap in the budget counting that must be fixed before publication.
T0 · AI review
Why Pith says this
Highlight any text to comment on it.
Referee report
The paper
The paper claims
Vanilla exact CNOT synthesis is NP-complete
The reading
What carries the argument
The central mechanism is the combination of recorder qubits and a tight budget k = $m^{2}$ + m - 1. For each vertex v of the induced hypercube, m recorder qubits must each end up containing the parity chi_v(x); this requires at least m gates per vertex, giving $m^{2}$ recorder-targeting gates in total. The remaining m-1 gates must be used on the path qubit to generate the m-1 new parities chi_v(x) for v != 0, each transition corresponding to a hypercube edge. The budget leaves no room for shortcuts: any attempt to mix parities across recorder groups or avoid generating a parity would require extra gates, enforcing that the path qubit visits the vertices in a Hamiltonian order.
Extended reading notes
Core claim
The paper establishes that the decision version of vanilla exact CNOT synthesis, MinCNOT_vanilla, is NP-complete. The reduction from the grid-graph Hamiltonian path problem (Grid-HP) proceeds in two stages: first, the grid graph is isometrically embedded into a hypercube via a unary-prefix encoding; second, the hypercube Hamiltonian path instance is encoded into a target parity matrix A_V with a tight gate budget k = $m^{2}$ + m - 1, where m is the number of vertices. Recorder qubits and the tight budget force any circuit of length at most k to realize exactly $m^{2}$ gates targeting recorder qubits (one per vertex per replica) and m-1 gates generating new parities on the path qubit, thereby extracting a Hamiltonian path from the circuit. Thus, Grid-HP reduces to MinCNOT_vanilla, proving NP-completeness.
Load-bearing premise
The soundness direction assumes that no circuit with at most k = $m^{2}$ + m - 1 gates can satisfy the target matrix A_V without having the path qubit visit each vertex's parity exactly once in a contiguous sequence corresponding to a Hamiltonian path, and without using fewer than $m^{2}$ recorder-targeting gates by reusing parities across vertext groups.
Editorial extensions
If this is right
- The shortest word problem over GL(n,2) with respect to the generating set of elementary transvections is NP-complete.
- Computing distances in the Cayley graph of GL(n,2) with that generating set is NP-hard.
- Minimizing the number of instructions in a sequential XOR (s-XOR) program that computes an invertible linear transformation over F2 is NP-hard.
- Exact synthesis of phase polynomial circuits with minimum CNOT count is NP-hard, even when the phase polynomial is trivial.
Reading between the lines
- The tight-budget construction shows a close link between circuit structure and path constraints; similar recorder-based forcing might be applied to prove hardness for other synthesis problems with intermediate state requirements.
- Because the reduction uses only a very restricted class of target matrices (unitriangular with (A-I)^3=0 and rank(A-I)=O(sqrt(n))), the hardness is concentrated in a narrow family of instances, suggesting that many practical synthesis instances may still be tractable on average.
- The result implies that any exact CNOT optimizer that runs in polynomial time for all inputs is impossible unless P=NP, providing a theoretical justification for the exponential scaling observed in SAT-based and search-based methods.
Original 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 $\mathrm{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.
The compiled record
The paper's own sentences, arranged, kept beside the review and separate from it. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. Numbers in the tables are the authors', checked by code. No sentence in this record was written by a model.
The abstract, sentence by sentence
Exact CNOT synthesis asks for a minimum-size CNOT circuit implementing an invertible linear transformation. Although several related synthesis models have been shown to be computationally hard, their hardness proofs rely on additional structure such as restricted qubit connectivity, encoded inputs, or unrestricted intermediate variables. The complexity of the most basic setting---identity input, a fixed number of labelled qubits, no ancillas, and all-to-all CNOT connectivity---had remained unresolved. In this work, we prove that the decision version of this vanilla exact CNOT synthesis problem is NP-complete, and consequently that its optimization version is NP-hard. Our proof gives a polynomial-time reduction from the Hamiltonian-path problem on grid graphs in two steps. First, we isometrically embed the grid graph into a hypercube via a unary encoding map. We then encode this hypercube Hamiltonian path problem into vanilla exact CNOT synthesis. The main challenge is that CNOT synthesis specifies only the final parity matrix and cannot directly enforce the intermediate vertex visits required by a Hamiltonian path. To overcome this difficulty, we introduce extra recorder qubits that encode the required intermediate vertex visits into the final transformation, forcing any CNOT circuit implementation to realize the intended path structure. Beyond CNOT synthesis, our result directly implies hardness for several related problems, including the shortest word problem over $\mathrm{GL}(n,2)$, distance computation on Cayley graphs over $\mathrm{GL}(n,2)$, minimization of sequential XOR programs, and exact synthesis of phase polynomial circuits.
background contribution method result interpretation main claim
| # | sentence | role | the authors' own work | states the main conclusion | strength |
|---|---|---|---|---|---|
| s0 | Exact CNOT synthesis asks for a minimum-size CNOT circuit implementing an invertible linear transformation. | background 1.00 | 0.06 | 0.02 | asserted 0.99 |
| s1 | Although several related synthesis models have been shown to be computationally hard, their hardness proofs rely on additional structure such as restricted qubit connectivity, encoded inputs, or unrestricted intermediate variables. | background 0.89 | 0.04 | 0.02 | asserted 1.00 |
| s2 | The complexity of the most basic setting---identity input, a fixed number of labelled qubits, no ancillas, and all-to-all CNOT connectivity---had remained unresolved. | gap 1.00 | 0.05 | 0.02 | asserted 0.99 |
| s3 | In this work, we prove that the decision version of this vanilla exact CNOT synthesis problem is NP-complete, and consequently that its optimization version is NP-hard. | result 0.88 | 0.97 | 0.97 | asserted 1.00 |
| s4 | Our proof gives a polynomial-time reduction from the Hamiltonian-path problem on grid graphs in two steps. | method 0.91 | 0.95 | 0.06 | asserted 1.00 |
| s5 | First, we isometrically embed the grid graph into a hypercube via a unary encoding map. | method 0.99 | 0.93 | 0.02 | asserted 1.00 |
| s6 | We then encode this hypercube Hamiltonian path problem into vanilla exact CNOT synthesis. | method 0.98 | 0.94 | 0.03 | asserted 1.00 |
| s7 | The main challenge is that CNOT synthesis specifies only the final parity matrix and cannot directly enforce the intermediate vertex visits required by a Hamiltonian path. | method 0.66 | 0.42 | 0.02 | asserted 1.00 |
| s8 | To overcome this difficulty, we introduce extra recorder qubits that encode the required intermediate vertex visits into the final transformation, forcing any CNOT circuit implementation to realize the intended path structure. | method 0.95 | 0.95 | 0.03 | asserted 1.00 |
| s9 | Beyond CNOT synthesis, our result directly implies hardness for several related problems, including the shortest word problem over $\mathrm{GL}(n,2)$, distance computation on Cayley graphs over $\mathrm{GL}(n,2)$, minimization of sequential XOR programs, and exact synthesis of phase polynomial circuits. | interpretation 0.87 | 0.89 | 0.06 | asserted 1.00 |
What was examined, and what was not
- arXiv listing abstract v1
- full text
- figures and tables
- references and citing sentences
- relations to other papers
- P abstract
- S sections
- T body sentences
- C citations
- R cross-paper relations
Figures
Figures reproduced from arXiv:2609.04160 by the authors.
References
Discussion
Disagree with the review, or know something it missed? Leave a comment, highlight any passage above to comment on it, or challenge this review formally.