arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.24323quant-ph
收藏

通过高级量子指令优化量子编译

Optimizing Quantum Compilation via High-Level Quantum Instructions

Universidade Federal de Santa Catarina(圣卡塔琳娜联邦大学)

Evandro C. R. Rosa, Jerusa Marchi, Eduardo I. Duzzioni, Rafael de Santiago

AI总结:

针对底层电路中心量子编程限制编译器优化的问题,本研究提出利用含量子专用指令的高级编程结构,实现近似门替换、辅助量子位正确反计算等优化,使多控NOT门V链分解的CNOT门最多减少50%,为高效量子计算铺路。

摘要:

当前量子编程以底层、以电路为中心的方法为主,这限制了编译器优化的潜力。本研究阐述了高级编程结构如何为编译器提供实现高级优化所需的语义信息。我们提出了一种新型优化方法,利用量子专用指令自动将量子门替换为更高效的近似分解,该过程对程序员透明,且能显著降低量子资源需求。此外,我们展示了该指令如何保证辅助量子位的正确反计算,从而实现安全、动态的量子内存管理。我们通过实现多控NOT门的V链分解来阐释这些概念,结果表明,我们的高级方法不仅简化了代码,还能让编译器生成CNOT门数量最多减少50%的电路。我们的研究结果表明,高级抽象对于解锁一类全新的强大编译器优化至关重要,为实现更高效的量子计算铺平了道路。

英文摘要:

Current quantum programming is dominated by low-level, circuit-centric approaches that limit the potential for compiler optimization. This work presents how a high-level programming construct provides compilers with the semantic information needed for advanced optimizations. We introduce a novel optimization that leverages a quantum-specific instruction to automatically substitute quantum gates with more efficient, approximate decompositions, a process that is transparent to the programmer and significantly reduces quantum resource requirements. Furthermore, we show how this instruction guarantees the correct uncomputation of auxiliary qubits, enabling safe, dynamic quantum memory management. We illustrate these concepts by implementing a V-chain decomposition of the multi-controlled NOT gate, showing that our high-level approach not only simplifies the code but also enables the compiler to generate a circuit with up to a 50% reduction in CNOT gates. Our results suggest that high-level abstractions are crucial for unlocking a new class of powerful compiler optimizations, paving the way for more efficient quantum computation.

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

↑