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

量子符号执行

Quantum Symbolic Execution

Jiang Nan, Wang Zichen, Wang Jian

摘要:

随着量子计算的进步,研究人员现在可以编写和运行许多量子程序。然而,仍然缺乏有效的方法来调试量子程序。本文提出了量子符号执行(QSE)生成测试用例的方法,有助于发现量子程序中的错误。量子符号执行的主要思想是从所有可能的测试用例(即测试用例空间)中找到合适的测试用例。它不同于经典的符号执行方式,通过计算而不是搜索来获得测试用例。QSE利用量子叠加和并行性来存储测试用例空间,只有几个量子位。根据被调试程序中的条件语句,将测试用例空间不断划分为子集、子子集等,同一子集中的元素为合适的测试用例,可以测试待测代码中相应的分支。QSE不仅为量子程序的调试提供了一种可能的途径,而且避免了经典符号执行中求解约束的难题。

英文摘要:

With advances in quantum computing, researchers can now write and run many quantum programs. However, there is still a lack of effective methods for debugging quantum programs. In this paper, quantum symbolic execution (QSE) is proposed to generate test cases, which helps to finding bugs in quantum programs. The main idea of quantum symbolic execution is to find the suitable test cases from all possible ones (i.e. test case space). It is different from the way of classical symbol execution, which gets test cases by calculating instead of searching. QSE utilizes quantum superposition and parallelism to store the test case space with only a few qubits. According to the conditional statements in the debugged program, the test case space is continuously divided into subsets, subsubsets and so on. Elements in the same subset are suitable test cases that can test the corresponding branch in the code to be tested. QSE not only provides a possible way to debug quantum programs, but also avoids the difficult problem of solving constraints in classical symbolic execution.

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

↑