A four-vertex grid graph lies at the heart of a new proof about one of quantum computing’s stubborn puzzles: even when researchers know what a quantum operation should do, finding its most economical circuit can be exceptionally hard.

The result comes from Kvantify researcher Søren Fuglede Jørgensen, whose study, “Clifford synthesis is NP-complete,” was published on the arXiv preprint server in 2026. Clifford circuits are built from Hadamard, phase and controlled-NOT gates, often called CNOT gates. They matter in quantum computing, but on today’s hardware, two-qubit operations such as CNOTs tend to have higher error rates than single-qubit gates. Cutting their number can therefore help make quantum programs more practical.

Jørgensen examined a precise version of the optimization problem: given a Clifford operation, can it be implemented using no more than a set number of CNOT gates, if any number of single-qubit Clifford gates is allowed? The study shows that deciding whether such a circuit exists is NP-complete. In plain terms, a proposed circuit can be checked efficiently, but finding one that meets the budget is as hard, in the worst case, as the toughest problems in a broad class called NP.

The proof links circuit design to the Hamiltonian path problem on grid graphs. That problem asks whether a route can visit every vertex in a graph exactly once. The researchers translated instances of the path problem into circuit-synthesis challenges: an equivalent circuit that stays within the CNOT budget must encode a Hamiltonian path. The four-vertex grid in the study’s illustration shows how a path is turned into a circuit, including extra “recorder” qubits used in the construction.

Allowing unlimited single-qubit gates makes the result more demanding to prove, because those gates might help reduce the CNOT count. The construction accounts for that possibility. The finding is shown for a restricted class of Clifford operations and also extends to broader settings, including different ways of assigning costs to gates, arbitrary two-qubit Clifford gates, and circuits where qubits can be freely rearranged.

Clifford circuits are used in several parts of quantum computing. In quantum chemistry, they can help organize measurements of molecular energies: suitable transformations let groups of compatible measurements be taken together. They are also used to encode information in stabilizer codes, a method central to quantum error correction. In both settings, fewer costly two-qubit gates could be valuable, especially when operations must be repeated.

The result does not mean useful optimization is out of reach. It means there is unlikely to be one fast method that always finds the absolute best circuit for every case, unless P equals NP—a major open question in computer science. Researchers can still optimize restricted kinds of circuits, and practical shortcuts called heuristics can often improve designs without proving they are globally best. By drawing a firm boundary around the hardest version of the task, the study gives future work a clearer place to start.