OpenMQPI:一种基于MLIR的通过OpenMP卸载量子电路的流水线
OpenMQPI: An MLIR-based Pipeline to Offload Quantum Circuits via OpenMP
AI总结:
OpenMQPI是一种基于MLIR的OpenMP扩展,它通过QPIR方言和编译流水线将量子资源集成到HPC应用中,经测试在VQE等算法中执行时间优于Qiskit和CUDA Quantum
摘要:
量子计算引入了专门的软件栈和编程接口,这些通常与特定生态系统和硬件后端紧密耦合,限制了互操作性和软件复用性。对于HPCQC应用开发者而言,这使得将量子加速器集成到现有应用中变得复杂。现有量子框架也使用特定生态系统的电路表示和编译流水线,阻碍了与成熟的异构编译器基础设施的集成。我们提出OpenMQPI,一种基于MLIR的用于量子编程的OpenMP扩展,它利用OpenMP的标准化目标卸载基础设施将量子资源集成到HPC应用中。OpenMQPI引入了QPIR,一种用于在OpenMP目标区域内表示量子电路的轻量级MLIR方言,以及一个执行量子特定优化并将电路降低为与OpenMP卸载兼容的可执行文件的编译流水线。在运行时,MQSS插件使生成的可执行文件能够通过OpenMP目标卸载模型将量子电路卸载到量子硬件。我们使用具有5、10、15和20量子比特的VQE、QFT和Deutsch-Jozsa算法评估OpenMQPI,将执行时间与Qiskit和CUDA Quantum进行比较。OpenMQPI在所有测试的量子比特配置中实现了最低的平均VQE执行时间,在20量子比特时,其需要5.18秒,而Qiskit为5.83秒,CUDA Quantum为7.39秒。对于QFT和Deutsch-Jozsa,OpenMQPI实现了与Qiskit相当且低于CUDA Quantum的执行时间。
英文摘要:
Quantum computing introduces specialized software stacks and programming interfaces that are often tightly coupled to specific ecosystems and hardware backends, limiting interoperability and software reuse. For HPCQC application developers, this complicates the integration of quantum accelerators into existing applications. Existing quantum frameworks also use ecosystem-specific circuit representations and compilation pipelines, hindering integration with established heterogeneous compiler infrastructures. We propose OpenMQPI, an MLIR-based OpenMP extension for quantum programming that leverages OpenMP's standardized target offloading infrastructure to integrate quantum resources into HPC applications. OpenMQPI introduces QPIR, a lightweight MLIR dialect for representing quantum circuits within OpenMP target regions, and a compiler pipeline that performs quantum-specific optimizations and lowers circuits to executables compatible with OpenMP offloading. At runtime, an MQSS plugin enables the generated executable to offload quantum circuits to quantum hardware through the OpenMP target offloading model. We evaluate OpenMQPI using the VQE, QFT, and Deutsch-Jozsa algorithms with 5, 10, 15, and 20 qubits, comparing execution times against Qiskit and CUDA Quantum. OpenMQPI achieves the lowest average VQE execution time across all tested qubit configurations. At 20 qubits, it requires 5.18 s, compared with 5.83 s for Qiskit and 7.39 s for CUDA Quantum. For QFT and Deutsch-Jozsa, OpenMQPI achieves execution times comparable to Qiskit and lower than those of CUDA Quantum.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。