arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.22089cs.SEcs.PL
收藏

我们是否在测试错误的量子漏洞?量子软件测试中的故障表示差距研究

Are We Testing the Wrong Quantum Bugs? A Study of Fault Representation Gaps in Quantum Software Testing

Tulane University(杜兰大学);The University of Texas at Dallas(德克萨斯大学达拉斯分校);University of California, Riverside(加州大学河滨分校)

Asif Mohammed Saad, Ahsanul Ameen Sabit, Jonah Brandenburgh, Jiyuan Wang, Qian Zhang, Soneya Binta Hossain

AI总结:

本研究对比量子突变测试工具、基准漏洞与真实量子软件漏洞,发现86.3%真实漏洞未被覆盖,指出需关注编译器等组件的故障测试,为构建更贴合实际的量子软件测试基准提供实证依据。

摘要:

量子软件依赖于编译器、中间表示和执行框架,这些组件会在程序执行前对其进行转换。这些组件中的故障会改变原本正确的量子程序的行为。然而,量子测试技术通常使用突变生成的故障和精心整理的基准漏洞进行评估。本研究调查了这些人工制品所表示的故障与现代量子软件中遇到的故障的匹配程度。我们审计了4种量子突变测试工具和3个精心整理的基准漏洞,在两年时间里从10个量子软件仓库中收集了410个已验证的漏洞。我们将来自这三个来源的故障分类为包含56个漏洞家族的通用分类体系,并比较它们在突变算子、精心整理的基准和近期真实漏洞中的表示情况。突变工具支持20个漏洞家族,精心整理的基准额外增加了15个。然而,在410个真实漏洞中,仅有56个(13.7%)属于这两个来源所表示的家族;剩余的354个(86.3%)属于两者都未覆盖的家族。最大的未覆盖家族涉及编译器转换(66个漏洞)、类型处理(53个)和输入验证(47个)。与局部门或语句变更不同,这些故障通常依赖于中间表示、编译器流水线、输入类型或依赖版本。现有的突变算子主要修改电路和程序结构,而许多真实故障产生于处理它们的编译器、表示和框架接口中。解决这一差距需要超越电路级故障,转向测试编译器转换的语义保留、表示边界处的正确性以及软件组件间的交互。本研究提供了实证证据,以指导能够捕获这些机制并保留重现所需上下文的故障模型和基准。

英文摘要:

Quantum software relies on compilers, intermediate representations, and execution frameworks that transform programs before execution. Faults in these components can change the behavior of otherwise correct quantum programs. Yet quantum testing techniques are often evaluated using mutation-generated faults and curated bug benchmarks. We investigate how well the faults represented by these artifacts reflect those encountered in modern quantum software. We audit four quantum mutation-testing tools and three curated bug benchmarks, and collect 410 verified bugs from ten quantum software repositories over two years. We classify faults from all three sources into a common taxonomy of 56 bug families and compare their representation across mutation operators, curated benchmarks, and recent real-world bugs. The mutation tools support 20 bug families, and curated benchmarks add 15 more. Yet only 56 of the 410 real-world bugs (13.7%) belong to families represented by either source; the remaining 354 (86.3%) belong to families absent from both. The largest unrepresented families concern compiler transformations (66 bugs), type handling (53), and input validation (47). Unlike local gate or statement changes, these faults often depend on intermediate representations, compiler pipelines, input types, or dependency versions. Existing mutation operators primarily modify circuits and program constructs, whereas many real-world faults arise in the compilers, representations, and framework interfaces that process them. Addressing this gap requires looking beyond circuit-level faults toward testing semantic preservation across compiler transformations, correctness at representation boundaries, and interactions between software components. Our study provides empirical evidence to guide fault models and benchmarks that capture these mechanisms and preserve the contexts needed to reproduce them.

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

↑