The Signal
Researchers’ Hypergraph Matcher Cuts Qiskit Runtime by 606×
A hypergraph-based quantum-circuit matcher took 21 seconds to optimize a 48-qubit arithmetic benchmark, compared with more than 12,700 seconds for Qiskit’s DAG-based matcher. The result comes from a CPU benchmark in a paper posted to arXiv

Quantum.world Team · Written with AI · fact-checked ·
Qiskit’s DAG-based matcher handles commuting quantum gates, but its representation can erase which gates share qubits. A new hypergraph method aims to keep both the commutation information and those connections—and, on one arithmetic benchmark, finished in 21 seconds where Qiskit took more than 12,700. The result comes from a study posted to arXiv on October 21 by Xin Hong, Jintao Yu, Runhong He, Shenggang Ying, Sanjiang Li and Mingsheng Ying.
What the DAG gives up to handle commuting gates
Template matching simplifies a circuit by finding a fragment equivalent to part of a known identity circuit, then replacing that fragment with a shorter equivalent. The search must account for gates that commute: their order can change without changing the circuit’s operation. Qiskit’s existing approach represents gates as nodes in a directed acyclic graph, connecting gates that depend on one another.
That representation helps treat reordered commuting gates consistently, the authors write, but it can discard links between gates that commute despite acting on shared qubits. The matcher may then lose a useful guide to where the next match lies and search more broadly through the circuit. The researchers’ proposal is to preserve those links rather than make a choice between representing commutation and retaining circuit structure.
Hypergraph matching stays near the last match
The new representation groups commuting gates into super-nodes while retaining the connections that encode gate dependencies. After finding part of a match, the algorithm can extend its search into the immediate neighborhood rather than restarting across the circuit. The authors describe the method as a hypergraph matcher, paired with a subgraph-isomorphism search.
“Experimental results demonstrate that our HG matcher achieves 11–606× speed-up over the DAG-based implementation in Qiskit (Iten et al., 2022) on both random and arithmetic benchmarks, while maintaining the same optimization quality.”
Xin Hong, Jintao Yu, Runhong He, Shenggang Ying, Sanjiang Li and Mingsheng Ying
The tests used an Intel i7-12700H processor with 32 GB of memory; the researchers implemented their matcher in Python, as is Qiskit. Their random-circuit tests used 10 qubits, gates X, CX and CCX, and circuits ranging from 100 to 700 gates. For the 700-gate case, the hypergraph matcher took 20.26 seconds; Qiskit took 1,321.91 seconds, while a Qiskit version using a heuristic took 587.15 seconds.
The 606× result came from a 48-qubit multiplier
The largest reported speedup came from the arithmetic benchmark gf2^E16_mult, which began with 2,707 gates and used 48 qubits. In repeated optimization runs, Qiskit took 12,737.50 seconds and produced a 2,617-gate circuit; the hypergraph method took 20.99 seconds and produced 2,599 gates. That is roughly a 606-fold runtime difference, but the final gate counts were not identical in this case.
Results on the random-circuit suite were closer in gate count: for the 700-gate circuit, the hypergraph method produced 550 gates and Qiskit produced 549. The paper also reports a separate scaling test on six-qubit random circuits with 10 to 250 gates, where the hypergraph method remained below 200 milliseconds. Those measurements support the authors’ case for faster matching, while keeping the claim tied to the tested software, circuits and machine.
The result is a compiler benchmark, not a hardware trial
The paper’s formal canonicity result applies to circuits made up of multi-controlled single-target gates, and the experiments cover random circuits and arithmetic benchmarks rather than a broad set of application programs. The measured gain is in compilation-time template matching; the study does not report running the optimized circuits on a quantum processor. The paper was presented at the 63rd ACM/IEEE Design Automation Conference in Long Beach, California, on July 26–29, 2026, before the authors posted the arXiv version on October 21.