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

并非所有SWAP都具有相同的成本:优化感知量子位路由的案例

Not All SWAPs Have the Same Cost: A Case for Optimization-Aware Qubit Routing

Ji Liu, Peiyi Li, Huiyang Zhou

摘要:

尽管量子计算技术取得了快速发展,但量子位连接限制仍然是一个关键挑战。近期的NISQ量子计算机和相对长期的可扩展量子架构都不能提供完全的连接。因此,量子线路可能无法直接在量子硬件上执行,量子编译器需要执行量子位路由以使电路与器件布局兼容。在量子位路由步骤期间,编译器插入SWAP门并执行电路转换。给定目标硬件的连接拓扑,通常存在多个量子位路由候选者。最先进的编译器使用成本函数来评估不同路由的SWAP门的数量,然后选择具有最少SWAP门数量的路由。在量子位路由之后,量子编译器对具有新插入的SWAP门的电路执行门优化。在本文中,我们观察到上述量子位路由不是最优的,并且量子位路由\textit{not}应该独立于随后的门优化。我们发现,考虑到门优化,并不是所有的SWAP门具有相同的基门成本。这些见解导致我们的量子位路由算法NASSC(不是所有的交换都有相同的成本)的发展。NASSC是第一个在路由步骤中考虑后续优化的算法。我们的优化感知量子位路由导致更好的路由决策,并有利于后续的优化。我们还提出了一个新的优化意识的分解插入交换门。我们的实验表明,我们的路由算法编译的路由开销减少了高达$69.30\%$($21.30\%$平均)的CNOT门的数量和高达$43.50\%$($7.61\%$平均)的电路深度相比,国家的最先进的计划,SABRE。

英文摘要:

Despite rapid advances in quantum computing technologies, the qubit connectivity limitation remains to be a critical challenge. Both near-term NISQ quantum computers and relatively long-term scalable quantum architectures do not offer full connectivity. As a result, quantum circuits may not be directly executed on quantum hardware, and a quantum compiler needs to perform qubit routing to make the circuit compatible with the device layout. During the qubit routing step, the compiler inserts SWAP gates and performs circuit transformations. Given the connectivity topology of the target hardware, there are typically multiple qubit routing candidates. The state-of-the-art compilers use a cost function to evaluate the number of SWAP gates for different routes and then select the one with the minimum number of SWAP gates. After qubit routing, the quantum compiler performs gate optimizations upon the circuit with the newly inserted SWAP gates. In this paper, we observe that the aforementioned qubit routing is not optimal, and qubit routing should \textit{not} be independent on subsequent gate optimizations. We find that with the consideration of gate optimizations, not all of the SWAP gates have the same basis-gate cost. These insights lead to the development of our qubit routing algorithm, NASSC (Not All Swaps have the Same Cost). NASSC is the first algorithm that considers the subsequent optimizations during the routing step. Our optimization-aware qubit routing leads to better routing decisions and benefits subsequent optimizations. We also propose a new optimization-aware decomposition for the inserted SWAP gates. Our experiments show that the routing overhead compiled with our routing algorithm is reduced by up to $69.30\%$ ($21.30\%$ on average) in the number of CNOT gates and up to $43.50\%$ ($7.61\%$ on average) in the circuit depth compared with the state-of-the-art scheme, SABRE.

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

↑