arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.11599quant-phcs.ETcs.PF
收藏

高效转换OpenQASM 3.0动态电路到CUDA-Q:性能和表达性优势

Efficient Transpilation of OpenQASM 3.0 Dynamic Circuits to CUDA-Q: Performance and Expressiveness Advantages

Case Western Reserve University(凯斯西储大学)

Vinooth Kulkarni, Jaehyun Lee, Adam Hutchings, Anas Albahri, Jai Nana, Shuai Xu, Vipin Chaudhary

AI总结:

本文提出将OpenQASM 3.0动态电路转换为CUDA-Q C++内核的流水线,通过利用CUDA-Q的中电路测量和主机语言控制流,提升性能和表达性,适用于近期量子算法。

摘要:

动态量子电路包含中电路测量和经典反馈,是近期算法如误差缓解、自适应相位估计和变分量子本征求解器(VQE)的关键。然而,跨框架转换这些程序具有挑战,因为对控制流和测量语义的支持不一致。我们提出一个转换流水线,将带有经典控制结构(条件和有界循环)的OpenQASM 3.0程序转换为优化的CUDA-Q C++内核,利用CUDA-Q的原生中电路测量和主机语言控制流,将动态模式转换为无静态电路扩展。我们的开源框架在IBM Quantum的经典反馈指南衍生的全面测试套件上进行了验证,包括条件重置、if-else分支、多比特谓词和顺序反馈,以及具有运行时参数优化的VQE风格参数化电路。实验表明,所得到的CUDA-Q内核通过避免分支重复减少电路深度,通过低延迟经典反馈提高执行效率,并通过直接映射OpenQASM 3.0的控制结构到C++控制流提高代码可读性,从而将OpenQASM 3.0的可移植电路规范与CUDA-Q的性能导向执行模型连接起来,适用于需要动态电路能力的NISQ时代应用。

英文摘要:

Dynamic quantum circuits with mid-circuit measurement and classical feedforward are essential for near-term algorithms such as error mitigation, adaptive phase estimation, and Variational Quantum Eigensolvers (VQE), yet transpiling these programs across frameworks remains challenging due to inconsistent support for control flow and measurement semantics. We present a transpilation pipeline that converts OpenQASM 3.0 programs with classical control structures (conditionals and bounded loops) into optimized CUDA-Q C++ kernels, leveraging CUDA-Q's native mid-circuit measurement and host-language control flow to translate dynamic patterns without static circuit expansion. Our open-source framework is validated on comprehensive test suites derived from IBM Quantum's classical feedforward guide, including conditional reset, if-else branching, multi-bit predicates, and sequential feedforward, and on VQE-style parameterized circuits with runtime parameter optimization. Experiments show that the resulting CUDA-Q kernels reduce circuit depth by avoiding branch duplication, improve execution efficiency via low-latency classical feedback, and enhance code readability by directly mapping OpenQASM 3.0 control structures to C++ control flow, thereby bridging OpenQASM 3.0's portable circuit specification with CUDA-Q's performance-oriented execution model for NISQ-era applications requiring dynamic circuit capabilities.

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

↑