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

QOPS:一个利用剖面引导优化加速量子电路模拟的编译器框架

QOPS: A Compiler Framework for Quantum Circuit Simulation Acceleration with Profile Guided Optimizations

Yu-Tsung Wu, Po-Hsuan Huang, Kai-Chieh Chang, Chia-Heng Tu, Shih-Hao Hung

AI总结:

本文提出量子编译器框架 QOPS,通过剖面引导优化加速量子电路模拟,实验显示其模拟器特定优化可提速1.19倍,硬件无关优化在仅需极少编译时间的情况下实现16%加速。

摘要:

量子电路模拟在量子软件和硬件的演进中具有重要意义。在物理量子计算机可用之前,可以通过在经典计算机上执行量子电路模拟来开发和评估新算法。然而,与物理量子计算机相比,过长的模拟时间阻碍了量子算法的快速开发。受经典编译器中用于改进生成代码的反馈导向优化方案的启发,本文提出了一个量子编译器框架 QOPS,以实现面向量子电路模拟加速的剖面引导优化(PGO)。QOPS 编译器对量子模拟器进行插桩,以在电路模拟过程中收集性能数据,然后根据收集到的数据生成优化后的量子电路版本。实验结果表明,PGO 能够有效缩短所测试基准程序上的模拟时间。特别是,模拟器特定的 PGO(虚拟交换)应用于基准程序后,可将模拟速度提升 1.19 倍。至于与硬件无关的 PGO,与暴力机制(开启所有可用的编译标志)相比,后者相对于未优化版本实现了 21% 的性能提升,而 PGO 可以实现 16% 的加速,同时编译时间比暴力方法减少了 63 倍。

英文摘要:

Quantum circuit simulation is important in the evolution of quantum software and hardware. Novel algorithms can be developed and evaluated by performing quantum circuit simulations on classical computers before physical quantum computers are available. Unfortunately, compared with a physical quantum computer, a prolonged simulation time hampers the rapid development of quantum algorithms. Inspired by the feedback-directed optimization scheme used by classical compilers to improve the generated code, this work proposes a quantum compiler framework QOPS to enable profile-guided optimization (PGO) for quantum circuit simulation acceleration. The QOPS compiler instruments a quantum simulator to collect performance data during the circuit simulation and it then generates the optimized version of the quantum circuit based on the collected data. Experimental results show the PGO can effectively shorten the simulation time on our tested benchmark programs. Especially, the simulator-specific PGO (virtual swap) can be applied to the benchmarks to accelerate the simulation speed by a factor of 1.19. As for the hardware-independent PGO, compared with the brute force mechanism (turning on all available compilation flags), which achieves 21% performance improvement against the non-optimized version, the PGO can achieve 16% speedup with a factor of 63 less compilation time than the brute force approach.

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

↑