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

QuSBT:基于搜索的量子程序测试

QuSBT: Search-Based Testing of Quantum Programs

Xinyi Wang, Paolo Arcaini, Tao Yue, Shaukat Ali

摘要:

为量子程序生成测试套件,使其具有最大数量的失败测试是一个优化问题。对于这样的优化,基于搜索的测试在经典程序的背景下显示出有希望的结果。为此,我们提出了一个基于遗传算法的量子程序测试生成工具,称为QuSBT(基于搜索的量子程序测试)。QuSBT自动化量子程序的测试,目的是找到一个测试套件具有最大数量的失败测试用例。QuSBT利用IBM的Qiskit作为量子程序的模拟框架。除了实现的方法之外,我们还介绍了工具架构(即,搜索个体的编码、表示搜索问题的适应度函数的定义以及测试评估w.r.t.两种失败)。最后,我们报告的实验结果,我们测试了一组错误的量子程序与QuSBT,以评估其有效性。存储库(代码和实验结果):https://github.com/Simula-COMPLEX/qusbt-tool视频:https://youtu.be/3apRCtluAn4

英文摘要:

Generating a test suite for a quantum program such that it has the maximum number of failing tests is an optimization problem. For such optimization, search-based testing has shown promising results in the context of classical programs. To this end, we present a test generation tool for quantum programs based on a genetic algorithm, called QuSBT (Search-based Testing of Quantum Programs). QuSBT automates the testing of quantum programs, with the aim of finding a test suite having the maximum number of failing test cases. QuSBT utilizes IBM's Qiskit as the simulation framework for quantum programs. We present the tool architecture in addition to the implemented methodology (i.e., the encoding of the search individual, the definition of the fitness function expressing the search problem, and the test assessment w.r.t. two types of failures). Finally, we report results of the experiments in which we tested a set of faulty quantum programs with QuSBT to assess its effectiveness. Repository (code and experimental results): https://github.com/Simula-COMPLEX/qusbt-tool Video: https://youtu.be/3apRCtluAn4

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

↑