arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.03971cs.PL
收藏

量子程序的自动化预期成本分析

Automated Expected Cost Analysis for Quantum Programs

Universität Innsbruck(因斯布鲁克大学)

Georg Moser, Michael Schaper

AI总结:

本文提出Qet工具,通过量子期望转换器框架实现对混合经典-量子程序的自动精确预期成本分析,支持中电路测量和经典控制流等高级功能,能够自动推导预期成本上界。

摘要:

近年来,量子计算取得了显著进展,量子设备的能力持续提升。然而,从头编写量子程序仍然繁琐且容易出错,亟需自动化工具支持。我们提出了Qet,一个完全自动化的静态程序分析工具,能够为混合经典-量子程序提供精确的预期成本分析。Qet支持中电路测量和经典控制流等高级功能。我们的原型实现基于最近提出的量子期望转换器框架,扩展了Dijkstra的谓词转换器和Hoare逻辑。原型Qet在文献和网络资源中的多个案例研究上进行了评估。Qet能够完全自动推导出此前只能通过繁琐手动计算得出的预期成本上界。

英文摘要:

In recent years, quantum computing has gained a substantial amount of momentum, and the capabilities of quantum devices are continually expanding and improving. Nevertheless, writing a quantum program from scratch remains tedious and error-prone work, showcasing the clear demand for automated tool support. We present Qet, a fully automated static program analysis tool that yields a precise expected cost analysis of mixed classical-quantum programs. Qet supports programs with advanced features like mid-circuit measurements and classical control flow. The methodology of our prototype implementation is based on a recently proposed quantum expectation transformer framework, generalising Dijkstra's predicate transformer and Hoare logic. The prototype implementation Qet is evaluated on a number of case studies taken from the literature and online references. Qet is able to fully automatically infer precise upper bounds on the expected costs that previously could only be derived by tedious manual calculations.

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

↑