arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.04586quant-phcs.SE
收藏

QuTuner:用于量子编译器的特征和学习引导的优化阶段调整

QTUNER: A Feature-Guided Adaptive Framework for Quantum-Compiler Optimization Pass Tuning

The Chinese University of Hong Kong(香港中文大学);Nebius;State Key Laboratory of Quantum Information Technologies and Materials (CUHK)(量子信息科技与材料国家重点实验室(香港中文大学))

Ming Zhong, Xiangyu Ren, Jinglei Cheng, Shaohua Li, Zhiding Liang

AI总结:

研究针对量子编译器优化阶段调整问题,提出QuTuner框架。通过构建数据集,从静态特征和优化感知嵌入两方面刻画电路,训练模型检索和排序候选阶段序列,经轻量级细化,有效提升了优化效果。

摘要:

量子编译器在将量子电路转换为低成本、高执行保真度的实现中起关键作用。此过程通常由电路级指标引导。尽管编译器阶段调整在经典编译中已广泛研究,但直接应用于量子编译器具有挑战性。我们提出QuTuner,一个跨编译器和调整目标的特征引导的量子编译器阶段调整框架。QuTuner首先构建一个大型优化数据集。然后从两个互补的角度对每个电路进行表征:描述电路结构的静态电路特征,以及总结电路对各个优化阶段的响应的优化感知阶段嵌入。使用这些表示,QuTuner训练两个离线模型来检索和排序未见电路的候选阶段序列,然后进行轻量级细化。我们使用两个基准套件在Qiskit和PyTKET上评估QuTuner。在Qiskit上,QuTuner比最强基线将评估指标降低提高了84.85%,同时将调整时间减少了73.59%。在PyTKET上,它将指标降低提高了18.68%,调整时间减少了64.49%。这些结果表明,QuTuner为量子编译器的自适应阶段调整提供了一种有效的方法。

英文摘要:

Quantum compiler optimization is important for improving the execution fidelity of quantum circuits. In practice, this optimization is often formulated as reducing circuit-level metrics. In classical compilers, pass tuning has been well-established through various methods. However, these methods cannot be directly applied to quantum compilers, because quantum programs exhibit quantum-specific features. Existing quantum compiler tuning studies have attempted to incorporate quantum circuit features with compiler tuning techniques, but they still suffer from two key limitations. First, they tune only a limited subset of optimization passes, leaving the global effectiveness of the full optimization pass space underexplored. Second, the quantum features they use are mainly static features, such as structure and DAG features, which are not directly tied to the optimization characteristics of quantum circuits. In this paper, we propose QTuner, a feature-guided framework for quantum compiler pass tuning. We first construct an optimization dataset by performing Bayesian Optimization and recording their optimized pass sequences. Based on this dataset, QTuner represents each circuit with two types of features: static circuit features and optimization-aware pass embeddings. Finally, QTuner trains two models offline, which are used to efficiently retrieve and rank promising pass sequences for a new circuit. We evaluate QTuner on two benchmarks across Qiskit and PyTKET compilers. On Qiskit, QTuner achieves up to a 10.6-percentage-point improvement in 2Q gate reduction over the strongest baseline while reducing tuning time by 73.59%. On PyTKET, QTuner achieves up to a 9.4-percentage-point improvement in 2Q gate reduction and reduces tuning time by 64.49%. These results demonstrate that QTuner enables efficient pass tuning across quantum compilers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑