QuTuner: Feature- and Learning-Guided Optimization Pass Tuning for Quantum Compilers

2026-07-06Software Engineering

Software Engineering
AI summary

The authors present QuTuner, a tool that helps quantum compilers choose the best way to optimize quantum circuits for better performance. Unlike previous methods that looked only at simple, static features of circuits, QuTuner also considers how circuits change when different optimization steps are applied. It builds a large dataset and uses machine learning models to predict good sequences of optimization passes for new circuits, making the tuning process faster and more effective. Tested on two popular quantum compilers, QuTuner showed significant improvements in reducing costs and tuning time.

Quantum compilerQuantum circuitOptimization passCircuit depthGate countStatic featuresMachine learningQiskitPyTKETPass tuning
Authors
Ming Zhong, Xiangyu Ren, Jinglei Cheng, Shaohua Li, Zhiding Liang
Abstract
Quantum compilers play a key role in transforming quantum circuits into lower-cost implementations with improved execution fidelity. This process is commonly guided by circuit-level metrics, such as gate counts and circuit depth. Although compiler pass tuning has been widely studied in classical compilation, directly transferring these techniques to quantum compilers is challenging, because quantum programs are expressed as circuits and exhibit optimization behaviors that are shaped by quantum-specific structures. Prior quantum compiler tuning approaches have begun to use circuit features to guide pass selection, but they remain limited in two aspects: they search only a small portion of the optimization-pass space, and they mainly rely on static features that do not explicitly reflect how a circuit reacts to compiler optimizations. We present QuTuner, a feature-guided quantum compiler pass tuning framework that generalizes across compilers and tuning objectives. QuTuner first builds a large optimization dataset. It then characterizes each circuit from two complementary views: static circuit features that describe circuit structure, and optimization-aware pass embeddings that summarize the circuit's responses to individual optimization passes. Using these representations, QuTuner trains two offline models to retrieve and rank candidate pass sequences for unseen circuits, followed by lightweight refinement. We evaluate QuTuner on Qiskit and PyTKET using two benchmark suites. On Qiskit, QuTuner improves the evaluation-metric reduction by up to 84.85% over the strongest baseline while reducing tuning time by 73.59%. On PyTKET, it improves metric reduction by up to 18.68% with a 64.49% reduction in tuning time. These results show that QuTuner provides an effective approach to adaptive pass tuning for quantum compilers.