arXiv:2507.19093quant-phcs.LG2025-07被引 2

用图神经网络自动选量子硬件,准确率超94%

Graph Neural Network-Based Predictor for Optimal Quantum Hardware Selection

  • 直接分析量子电路的有向无环图,无需人工提取特征
  • 在498个电路上实现94.4%准确率,少数类F1达85.5%
  • 适合需要快速选型的量子算法开发者

量子硬件种类增多,每种设备在连接性和原生门集方面各有特点,导致选择最佳执行平台变得困难。传统方法需对多种设备逐一编译并评估性能,计算成本高且难以扩展。本文提出基于图神经网络(GNN)的预测器,通过分析量子电路的有向无环图(DAG)实现自动化硬件选择。研究使用MQT Bench数据集中的498个量子电路(最大27量子比特),在四个设备上进行编译:三个超导处理器(IBM-Kyiv、IBM-Brisbane、IBM-Sherbrooke)和一个离子阱处理器(IONQ-Forte)。性能通过结合电路深度与门保真度的指标评估,结果显示93个电路最优编译于离子阱设备,其余偏好超导平台。该方法直接以图结构输入模型,避免特征提取,显著加速决策过程并保留完整信息。实验表明,模型准确率达94.4%,少数类F1分数为85.5%,能有效预测最优编译目标。代码已开源于GitHub。

原文摘要 · Abstract (English)

The growing variety of quantum hardware technologies, each with unique peculiarities such as connectivity and native gate sets, creates challenges when selecting the best platform for executing a specific quantum circuit. This selection process usually involves a brute-force approach: compiling the circuit on various devices and evaluating performance based on factors such as circuit depth and gate fidelity. However, this method is computationally expensive and does not scale well as the number of available quantum processors increases. In this work, we propose a Graph Neural Network (GNN)-based predictor that automates hardware selection by analyzing the Directed Acyclic Graph (DAG) representation of a quantum circuit. Our study evaluates 498 quantum circuits (up to 27 qubits) from the MQT Bench dataset, compiled using Qiskit on four devices: three superconducting quantum processors (IBM-Kyiv, IBM-Brisbane, IBM-Sherbrooke) and one trapped-ion processor (IONQ-Forte). Performance is estimated using a metric that integrates circuit depth and gate fidelity, resulting in a dataset where 93 circuits are optimally compiled on the trapped-ion device, while the remaining circuits prefer superconducting platforms. By exploiting graph-based machine learning, our approach avoids extracting the circuit features for the model evaluation but directly embeds it as a graph, significantly accelerating the optimal target decision-making process and maintaining all the information. Experimental results prove 94.4% accuracy and an 85.5% F1 score for the minority class, effectively predicting the best compilation target. The developed code is publicly available on GitHub (https://github.com/antotu/GNN-Model-Quantum-Predictor).

量子计算图神经网络硬件选型机器学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。