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

NovaQ:通过多样性引导的测试用例生成改进量子程序测试

NovaQ: Improving Quantum Program Testing through Diversity-Guided Test Case Generation

Tiancheng Jin, Shangzhou Xia, Jianjun Zhao

AI总结:

针对量子程序可靠性保障需求,本文提出多样性引导测试框架NovaQ,结合分布式生成器与新颖性评估模块,实验显示其在多样性和bug检测上优于现有基线。

摘要:

量子程序旨在运行于量子计算机上,借助量子电路解决经典计算机难以处理的问题。随着量子计算技术的发展,确保量子程序的可靠性已变得愈发重要。本文提出NovaQ,一种面向量子程序的多样性引导测试框架。NovaQ将基于分布的测试用例生成器与新颖性驱动的评估模块相结合。生成器通过变异电路参数生成多样化的量子态输入,评估器则基于内部电路状态指标(包括幅度、相位和纠缠)量化行为新颖性。通过选择映射到指标空间中较少被覆盖区域的输入,NovaQ可有效探索未被充分测试的程序行为。我们在不同规模和复杂度的量子程序上评估了NovaQ。实验结果表明,与现有基线方法相比,NovaQ始终能实现更高的测试输入多样性,并检测出更多错误。

英文摘要:

Quantum programs are designed to run on quantum computers, leveraging quantum circuits to solve problems that are intractable for classical machines. As quantum computing advances, ensuring the reliability of quantum programs has become increasingly important. This paper introduces NovaQ, a diversity-guided testing framework for quantum programs. NovaQ combines a distribution-based test case generator with a novelty-driven evaluation module. The generator produces diverse quantum state inputs by mutating circuit parameters, while the evaluator quantifies behavioral novelty based on internal circuit state metrics, including magnitude, phase, and entanglement. By selecting inputs that map to infrequently covered regions in the metric space, NovaQ effectively explores under-tested program behaviors. We evaluate NovaQ on quantum programs of varying sizes and complexities. Experimental results show that NovaQ consistently achieves higher test input diversity and detects more bugs than existing baseline approaches.

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

↑