用强化学习解决量子线路布线问题,显著减少纠缠门数量。
QAP-Router: Tackling Qubit Routing as Dynamic Quadratic Assignment with Reinforcement Learning

- 将布线问题建模为动态二次分配问题,统一编码逻辑交互与硬件距离
- 在三个真实数据集上减少12.1%至30.4%的CNOT门数,优于现有编译器
- 采用结构感知Transformer和前瞻机制,避免局部贪心决策
量子编译中的量子比特布线是核心难题,被证明为NP难问题。其动态特性导致局部决策随时间累积并影响全局效率。现有启发式方法依赖局部规则且预见性差,而基于学习的方法常将其视为通用序列决策问题,未能充分利用内在结构。本文提出QAP-Router,将布线建模为动态二次分配问题(QAP):以量子门作为流量矩阵,硬件拓扑作为距离矩阵,统一定义交互-距离耦合目标函数,构成强化学习的奖励信号。策略网络采用解感知Transformer,将流量矩阵与距离矩阵的交互融入注意力机制;同时集成自然融入QAP框架的前瞻机制,防止短视决策。在来自MQTBench、AgentQ和QUEKO的1,831个真实量子电路上的实验表明,该方法相较现有工业级编译器分别降低CNOT门数15.7%、30.4%和12.1%。
原文摘要 · Abstract (English)
Qubit routing is a fundamental problem in quantum compilation, known to be NP-hard. Its dynamic nature makes local routing decisions propagate and compound over time, making global efficient solutions challenging. Existing heuristic methods rely on local rules with limited lookahead, while recent learning-based approaches often treat routing as a generic sequential decision problem without fully exploiting its underlying structure. In this paper, we introduce QAP-Router, framing qubit routing based on a dynamic Quadratic Assignment Problem (QAP) formulation. By modeling logical interactions, or quantum gates, as flow matrices and hardware topology as a distance matrix, our approach captures the interaction-distance coupling in a unified objective, which defines the reward in the reinforcement learning environment. To further exploit this structure, the policy network employs a solution-aware Transformer backbone that encodes the interaction between the flow matrix and the distance matrix into the attention mechanism. We also integrate a lookahead mechanism that blends naturally into the QAP framework, preventing myopic decisions. Extensive experiments on 1,831 real-world quantum circuits from the MQTBench, AgentQ and QUEKO datasets show that our method substantially reduces the CNOT gate count of routed circuits by 15.7%, 30.4% and 12.1%, respectively, relative to existing industry compilers.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。