Numerical Evaluation of ZX Calculus Optimization for Solovay Kitaev Quantum Circuit Synthesis
This paper demonstrates that applying ZX-calculus-based diagrammatic simplification to Solovay-Kitaev synthesized quantum circuits consistently reduces T-count and total gate counts by approximately 18–30% across various recursion depths without increasing approximation error, though the computational cost of the rewriting process grows sharply with circuit complexity.
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
Quantum computers promise to solve problems that would take classical machines thousands of years to finish, but building them is like trying to construct a skyscraper out of glass while standing in a hurricane. The machines are incredibly fragile; the slightest noise or vibration causes their calculations to collapse. To survive, engineers must build a system that can detect and fix its own mistakes, a concept known as fault tolerance. In this protected world, not all computer instructions are created equal. Some basic operations are cheap and easy to perform, but the specific instructions needed to make the computer truly powerful are expensive. They require a complex, resource-heavy process to create, consuming vast amounts of time and physical hardware just to produce a single usable command. Because of this, the total number of these expensive commands in a program is the primary measure of how much a quantum computer will cost to run.
The challenge for scientists is that quantum computers cannot natively understand the smooth, continuous rotations needed for many algorithms. Instead, they must approximate these smooth movements by stringing together a long sequence of the few basic instructions they do have. One famous mathematical recipe, known as the Solovay–Kitaev algorithm, provides a way to build these approximations. It works like a recursive nesting doll, where each layer of the solution corrects the errors of the layer below it. While this method is mathematically guaranteed to work and gets the job done, it is not efficient. It produces sequences that are far longer than necessary, filled with redundant steps that cancel each other out. These extra steps are invisible to a standard compiler because they are hidden inside the mathematical structure of the sequence, but they still count toward the expensive cost of running the program.
A team of researchers set out to see if they could clean up this mess. They asked a simple question: if they took the long, messy sequences produced by the Solovay–Kitaev algorithm and ran them through a specialized diagram-based optimization tool, how much of that waste could they recover? They did not invent a new way to build the sequences; they simply took the existing, unoptimized output and applied a set of rules designed to simplify the visual representation of the quantum circuit. By treating the circuit as a graph of connected nodes rather than a linear list of steps, their tool could spot and merge parts of the calculation that a standard compiler would miss. They tested this on twelve hundred different random quantum targets, ranging from simple rotations to complex, general-purpose gates, and ran the process at three different levels of precision to see how the results changed as the circuits grew larger.
The results showed that the diagram-based tool was remarkably effective at finding waste. Across all the tests, the optimization process removed between twenty-six and thirty percent of the total number of instructions in the circuit. More importantly, it reduced the number of those expensive, hard-to-make commands by nearly twenty-two percent. This is a significant saving because every one of those removed commands represents a direct reduction in the physical resources required to run the quantum computer. The researchers found that the amount of waste removed was not random; it was a consistent fraction of the total size. Whether the circuit was small or grew to be twenty-five times larger, the tool removed roughly the same percentage of the instructions. This suggests that the redundancy is a fundamental feature of the mathematical recipe used to build the circuits, rather than a quirk of specific calculations.
However, this cleanup comes with a price, and the researchers were careful to measure exactly what that price was. While the savings in circuit size were substantial, the time it took to perform the optimization grew dramatically as the circuits got larger. For the smallest circuits, the optimization was almost instantaneous and cost nothing to run. But for the largest circuits, the time spent simplifying the diagram became the dominant part of the entire process, taking over ninety-nine percent of the total time. The researchers concluded that this technique is not a free upgrade for every situation. It is a trade-off: you pay a heavy cost in computer time during the preparation phase to save a significant amount of resources every time the circuit is actually run. For a program that will be executed many times, the trade is worth it, but for a one-off calculation, the time spent optimizing might not be justified.
The study also clarified what this method is and what it is not. The researchers were careful to state that they were not proposing the Solovay–Kitaev algorithm as the best way to build quantum circuits in the first place; other methods exist that are already more efficient. Instead, they were measuring how much structural waste is left behind by this specific, general-purpose mathematical construction. They found that the optimization tool successfully recovered a fixed share of that waste, proving that the redundancy is real and measurable. The work does not claim to have solved the problem of quantum circuit efficiency, nor does it suggest that this tool is better than all other existing optimizers. It simply provides a clear, measured answer to how much can be recovered from a specific type of quantum circuit when viewed through the lens of diagrammatic rewriting, offering a concrete data point for engineers designing the next generation of fault-tolerant quantum computers.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.