← Latest papers
⚛️ quantum physics

CNOT-Distance is NP-complete under all-to-all connectivity

This paper proves that determining the minimum number of CNOT gates required to implement a given invertible binary matrix under all-to-all connectivity is NP-complete, establishing both exact and approximate hardness through a reduction from the Minimum Vertex Cover problem.

Original authors: Antonio Acuaviva, Arturo Acuaviva, Pablo Acuaviva

Published 2026-08-05
📖 5 min read🧠 Deep dive

Original authors: Antonio Acuaviva, Arturo Acuaviva, Pablo Acuaviva

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a master architect trying to build a machine that can rearrange a deck of cards, but with a very strict rule: you can only swap two cards if one of them is a specific "control" card, and you must do it in a way that you can perfectly reverse the process to get the original deck back. This is the world of quantum computing, specifically a branch dealing with "reversible logic." In this universe, the basic building block is a gate called CNOT (Controlled-NOT). Think of it as a magical switch: if the control wire is "on," it flips the target wire; if the control is "off," it leaves the target alone.

Scientists have long known how to build these machines to perform any possible rearrangement of data. They also know how to build them efficiently in the worst-case scenario, using a number of gates that grows predictably with the size of the problem. But here is the tricky part: knowing how to build a machine is easy; knowing how to build the smallest, most efficient machine for a specific task is a nightmare. It's like knowing you can get from New York to London by plane, but trying to find the absolute shortest path through a maze where every turn depends on the one before it. For years, researchers wondered: if we remove all the physical limitations of real hardware (like wires that can't cross or specific connections that are missing) and let every wire talk to every other wire, does the problem of finding the smallest number of CNOT gates become easy? Or is it still a computational monster?

This paper, titled "CNOT-Distance is NP-complete under all-to-all connectivity," answers that question with a definitive "monster." The authors, Antonio, Arturo, and Pablo Acuaviva, prove that even when you give the computer the ultimate freedom—allowing any wire to connect to any other wire—figuring out the minimum number of CNOT gates needed to perform a specific task is NP-complete. In plain English, this means the problem is so hard that as the task gets bigger, the time it takes to find the perfect solution explodes, likely making it impossible to solve perfectly for large systems in any reasonable amount of time.

To prove this, the authors didn't just look at random circuits; they built a clever bridge between two very different worlds. On one side is a classic, notoriously difficult puzzle called Vertex Cover. Imagine a party where you want to invite the smallest possible group of people such that every handshake at the party involves at least one person from your group. Finding that smallest group is hard. On the other side is the quantum world of CNOT gates. The authors constructed a specific mathematical "translation" that turns any party (graph) into a specific quantum circuit (matrix).

Here is the magic trick they discovered: The number of CNOT gates needed to build the circuit for a specific party is exactly equal to a fixed number (based on the number of people and handshakes) plus the size of the smallest "guest list" (Vertex Cover) for that party. Because finding the smallest guest list is known to be a hard problem, finding the smallest gate count must be just as hard.

The authors went further to show that this difficulty doesn't go away even if you try to use alternative methods. In quantum computing, you can sometimes use extra "helper" wires (called ancillas) that start empty and must be returned to empty at the end, or "borrowed" wires that you use temporarily. The paper proves that for this specific family of problems, using these extra wires doesn't help you find a shorter solution at all. The minimum number of gates remains exactly the same, no matter how many helpers you bring to the party.

Furthermore, the paper shows that this isn't just a theoretical curiosity. The authors created a "decoder" that can take any circuit someone claims is the best solution and, in a reasonable amount of time, extract the solution to the original party puzzle. This means that if someone could magically find the perfect, shortest CNOT circuit for these problems, they would also have solved the Vertex Cover problem perfectly. Since we believe Vertex Cover is unsolvable efficiently, we now know that finding the perfect CNOT circuit is also unsolvable efficiently.

The paper also tackles the idea of "approximation." Maybe we can't find the perfect solution, but can we find one that is "close enough"? The authors prove that even getting close is hard. Whether you want a solution that is off by just one gate, or off by a hundred, or even just a small percentage, the problem remains computationally difficult. They showed that for a specific type of graph (where everyone has exactly three connections), finding a circuit that is even slightly better than a random guess is as hard as solving the hardest versions of the Vertex Cover problem.

In short, this paper closes a door that many hoped was open. It confirms that the difficulty of optimizing quantum circuits isn't just a result of messy hardware or limited connections. The hardness is baked into the math itself. Even in a perfect, frictionless world where every wire can talk to every other wire, finding the most efficient way to rearrange data using CNOT gates is a task that will likely always require more computing power than we can ever hope to have. The authors didn't just suggest this; they proved it with a rigorous mathematical argument that holds up even when you try to use extra wires or change the rules slightly. The journey to the smallest quantum circuit is, it turns out, a maze with no shortcuts.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →