Optimizing Locally Equivalent Graph States in Quantum Computing Using Greedy Best-First Search

Sora Harada, Ryo Kuroiwa, Shin Nishio, Takeaki UnoarXiv 2026

Imagine you’re building a complex machine where every connection between parts costs you money and introduces a chance of failure. Naturally, you’d want to find the simplest possible blueprint that still gets the job done.

In the world of quantum computing, this "blueprint" is often a graph state. This paper, "Optimizing Locally Equivalent Graph States in Quantum Computing Using Greedy Best-First Search," tackles the challenge of simplifying these blueprints using a classic tool from the AI toolbox.

TL;DR

Quantum "graph states" are essential resources, but building them is expensive in terms of gates and time. This paper shows that by treating the optimization of these states as a map-search problem and applying Greedy Best-First Search (GBFS), we can find significantly "cheaper" versions of the same quantum state than previous methods could.

What Problem Does This Paper Address?

In certain flavors of quantum computing, we represent quantum states as graphs: vertices are qubits, and edges are the "entangling" operations (specifically, Controlled-Z or CZ gates) needed to link them.

Figure 1: Quantum circuit for the preparation of a graph state |G⟩for graph G. Each horizontal line corresponds to a qubit prepared in |0⟩state. For preparing a graph state, one needs to apply Hadamard gates (H) in parallel first, and then apply CZ gates corresponding to the edges.

There are two major costs here:

  1. Gate Count: Every edge in your graph is a CZ gate. More edges = more noise and higher error rates.
  2. Circuit Depth: If one qubit (vertex) is connected to ten others, it has to undergo ten sequential operations. This "maximum degree" of the graph determines how long the circuit takes to run.

The "magic" is a move called local complementation (LC). By picking a vertex and "toggling" the connections between all its neighbors, you create a new graph that represents an operationally equivalent quantum state. You can reach a whole "orbit" of different graphs just by applying these LC moves. The challenge? Finding the one graph in that massive orbit with the fewest edges and the lowest maximum degree.

Methods

The authors frame this as a state-space search problem. Think of it like a giant maze where every room is a different graph, and the hallways are LC operations.

  • The Algorithm: They use Greedy Best-First Search (GBFS). Unlike a simple local search that just takes the first step down, GBFS keeps a "to-do list" (an open list) of graphs it has seen but hasn't explored yet, always picking the one that looks most promising.
  • The Heuristic ($h$): To decide what’s "promising," they look at the number of edges first, and the maximum degree second.
  • Symmetry Breaking (Orbit Search): Many graphs in the search space are actually identical if you just relabel the vertices (isomorphism). The authors use "graph canonization" to ensure they don't waste time exploring the same structural graph twice.
Figure 3: LC orbit for a complete graph with 3 vertices (K3). Each graph is connected via a local complementation. LC orbit may contain self-loops.

Datasets

The researchers didn't just stick to toy problems. They tested their approach on:

  • Random Graphs (Erdős–Rényi): To see how the algorithm handles "messy" unstructured data.
  • Structured Graphs: Bounded-degree and distance-hereditary graphs.
  • Quantum Error-Correcting Codes (QECC): This is the high-stakes stuff. They used graphs derived from real-world codes like Surface codes, Color codes, and LDPC (Low-Density Parity-Check) codes, which are the leading candidates for building fault-tolerant quantum computers.

Key Insights and Ideas

  • The "Uphill" Necessity: A simple "greedy" approach (always moving to a graph with fewer edges) often fails. As shown in Figure 7, the algorithm sometimes has to move to a more complex graph to eventually find the path to the global minimum.
Trace of edge count during search
  • Search vs. Optimization: Previous methods like Integer Linear Programming (ILP) try to find the perfect answer but often choke on larger graphs. GBFS is an "anytime" algorithm—it finds a good answer quickly and keeps improving it if given more time.
  • Structure Matters: Symmetry breaking (Orbit search) is incredibly powerful for highly structured graphs (like those in error correction) but adds unnecessary overhead for random graphs where symmetries are rare.

Key Results

  • Outperforming Baselines: GBFS consistently beat existing local search and ILP-based methods. For many random graphs, it found optimal solutions where other methods timed out or got stuck.
  • QECC Wins: On practical quantum error-correction instances, GBFS and its "Orbit" variant achieved the lowest edge counts and circuit depths. For example, on certain LDPC codes, it reduced the number of required gates by significant margins compared to the raw input.
  • Efficiency: The search behavior analysis confirmed that GBFS finds the "first-best" state much faster than it takes to prove that state is truly the absolute best in the entire orbit.

Limitations and Future Work

  • Memory Constraints: Like many search algorithms, GBFS can be a memory hog. On very large graphs, the "to-do list" can grow faster than available RAM.
  • Limited Move Set: This paper only looks at local complementation (which corresponds to "cheap" local Clifford gates). Future work could include more "expensive" operations to see if even greater simplifications are possible.
  • Scaling: While it handles tens of qubits well, the "LC orbit" grows exponentially. Scaling this to thousands of qubits will likely require even smarter heuristics or combining search with machine learning.

In short, if you're designing a quantum computer, this paper suggests that a little bit of classic AI search can go a long way in making your hardware more efficient and less error-prone.

Summary updated

Abstract

In measurement-based quantum computation and quantum repeater networks, graph-structured quantum states called graph states play a central role as an essential resource. In a graph state, each vertex corresponds to a qubit, and each edge is prepared by applying one controlled-Z (CZ) gate. Local complementation, which toggles adjacencies among the neighbors of a selected vertex, produces operationally equivalent graph states up to an inexpensive operation called local Clifford gates. Therefore, finding equivalent graphs up to local complementation with fewer edges and lower maximum degree can reduce the preparation cost, such as the number of CZ gates and the circuit depth. In this paper, we formulate the problem of finding a desirable equivalent graph via local complementations as a state space search problem. We apply a heuristic search algorithm, greedy best-first search (GBFS), to the formulated problem. Our experimental evaluation shows that despite its simplicity, GBFS outperforms existing approaches based on integer linear programming or local search across multiple graph classes, including random graphs, bounded-degree graphs, and most of the graphs constructed from quantum LDPC codes. In addition, we empirically analyze GBFS's search behavior, confirming that we need search rather than stopping at the first local minimum to find the best solution.
BibTeX
@misc{harada2026optimizing,
  author = {Sora Harada and Ryo Kuroiwa and Shin Nishio and Takeaki Uno},
  title = {{Optimizing Locally Equivalent Graph States in Quantum Computing Using Greedy Best-First Search}},
  year = {2026},
  eprint = {2611.30738},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30738},
}
Figure