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

自动精化断言以高效调试量子程序

Automatically Refining Assertions for Efficient Debugging of Quantum Programs

Damian Rovara, Lukas Burgholzer, Robert Wille

AI总结:

本文提出一种自动精化量子程序断言的方法,通过移动断言位置或添加新断言缩小错误范围,使开发者无需手动放置即可利用丰富断言高效调试。

摘要:

随着量子计算领域的不断新进展推动着日益复杂的程序的开发,验证和调试这些程序的方法正变得越来越重要。为此,经典调试中采用的方法,例如用于测试程序状态特定属性的断言,已被适配于量子程序。然而,为了高效地调试量子程序,关键在于恰当地放置这些断言。这通常需要对程序底层的数学性质有深刻的理解,构成了开发者一项耗时的手动任务。为了解决这个问题,本文提出了自动精化量子程序中断言的方法,通过将断言移动到程序中更有利的位置,或通过放置新的断言来帮助进一步缩小潜在错误位置的范围。这使得开发者能够利用丰富且富有表现力的断言,极大地改善调试体验,而无需以原本繁琐的方式手动放置这些断言。所提出方法的开源实现可在 https://github.com/cdatum/mqt-debugger 获取。

英文摘要:

As new advancements in the field of quantum computing lead to the development of increasingly complex programs, approaches to validate and debug these programs are becoming more important. To this end, methods employed in classical debugging, such as assertions for testing specific properties of a program's state, have been adapted for quantum programs. However, to efficiently debug quantum programs, it is key to properly place these assertions. This usually requires a deep understanding of the program's underlying mathematical properties, constituting a time-consuming manual task for developers. To address this problem, this work proposes methods for automatically refining assertions in quantum programs by moving them to more favorable positions in the program or by placing new assertions that help to further narrow down potential error locations. This allows developers to take advantage of rich and expressive assertions that greatly improve the debugging experience without requiring them to place these assertions manually in an otherwise tedious manner. An open-source implementation of the proposed methods is available at https://github.com/cdatum/mqt-debugger.

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

↑