arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2409.20011cs.SEquant-ph
收藏

基于统计测试的量子程序缺陷定位方法

Bug-locating Method based on Statistical Testing for Quantum Programs

Naoto Sato, Ryota Katsube

AI总结:

针对量子程序缺陷定位中测试成本依赖段位置且需统计测试的问题,提出结合基于成本的二分搜索、提前判定、最终确认和回溯检查的高效定位方法,实验证明其可显著降低以量子门数量衡量的定位成本。

摘要:

当在量子计算机上测试量子程序时检测到缺陷,我们希望确定其位置以便修复。为了定位缺陷,量子程序被划分为若干段,并对每一段进行测试。然而,为了准备输入到某一段的量子态,必须在量子计算机中执行该段之前的所有段。这意味着测试每一段的成本取决于其所在位置。此外,只有在确认某个可疑缺陷段之前的所有段都没有缺陷时,我们才能定位该缺陷段。由于量子程序是基于测量结果进行统计测试的,因此测试精度与成本之间存在权衡。这些特性是量子程序所独有的,并使缺陷定位变得复杂。我们提出了一种高效的缺陷定位方法,由四种策略组成:基于成本的二分搜索、提前判定、最终确认和回溯检查,这些策略充分考虑了上述特性。我们给出的实验结果表明,与不使用这四种策略的朴素方法相比,所提出的方法能够降低以执行的量子门数量表示的缺陷定位成本。实验还讨论了所提方法的局限性和实用性。

英文摘要:

When a bug is detected by testing a quantum program on a quantum computer, we want to determine its location to fix it. To locate the bug, the quantum program is divided into several segments, and each segment is tested. However, to prepare a quantum state that is input to a segment, it is necessary to execute all the segments ahead of that segment in a quantum computer. This means that the cost of testing each segment depends on its location. We can also locate a buggy segment only if it is confirmed that there are no bugs in all segments ahead of that buggy segment. Since a quantum program is tested statistically on the basis of measurement results, there is a tradeoff between testing accuracy and cost. These characteristics are unique to quantum programs and complicate locating bugs. We propose an efficient bug-locating method consisting of four approaches, cost-based binary search, early determination, finalization, and looking back, which take these characteristics into account. We present experimental results that indicate that the proposed method can reduce the bug-locating cost, represented as the number of executed quantum gates, compared to naive methods that do not use the four approaches. The limitation and usefulness of the proposed method are also discussed from the experimental results.

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

↑