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

量子电路程序的概率条件、决策和路径覆盖

Probabilistic Condition, Decision and Path Coverage of Circuit-based Quantum Programs

Faculty of Engineering of the University of Porto(波尔图大学工程学院);INESC-ID(葡萄牙信息与控制研究所);LASIGE, Faculty of Science of the University of Lisbon(里斯本大学理学院LASIGE)

Daniel Fortunato, José Campos, Rui Abreu

AI总结:

本文提出六个量子定制的覆盖标准及其概率变体,通过QaCoCo工具评估540个电路的覆盖情况,发现路径覆盖受限,引入概率覆盖以增强结构覆盖,并通过突变测试发现故障检测与结构覆盖无显著相关性。

摘要:

覆盖标准在经典软件测试充分性评估中起核心作用,但其在量子程序中的有效性仍不明确。本文提出六个量子定制的覆盖标准——条件、决策和路径覆盖及其概率变体,基于经典对应物。我们展示了QaCoCo工具,用于计算电路量子程序的这些标准。我们对540个大型多样化的电路进行了实证评估,并分析了所获得的覆盖情况。结果表明,尽管电路经常达到高条件和决策覆盖(平均97.56%和97.63%),但路径覆盖仍有限(71.84%),特别是在存在多控制门时,导致极端路径爆炸和覆盖不平衡。此外,为了考虑量子电路的概率性质,我们引入了概率覆盖,它在结构覆盖的基础上加入了置信度度量(平均条件、决策和路径覆盖分别为88.87%、88.65%和37.18%)。最后,通过突变测试,我们发现故障检测与结构覆盖之间存在弱或无相关性,这与经典计算中的观察一致。

英文摘要:

Coverage criteria play a central role in assessing test adequacy in classical software, yet their effectiveness for quantum programs remains poorly understood and largely unexplored. In this paper, we propose six quantum-tailored criteria - condition, decision, and path coverage, and their probabilistic variants - adapted from their classical counterparts. We present QaCoCo, a tool that computes these criteria for circuit-based quantum programs. We empirically evaluate these criteria on a large and diverse set of 540 circuits and analyze the coverage achieved. Our results show that while circuits frequently achieve high condition and decision coverage (97.56% and 97.63%, on average), path coverage remains limited (71.84%), particularly in the presence of multi-controlled gates, which induce extreme path explosion and coverage imbalance. Moreover, to account for the probabilistic nature of quantum circuits, we introduce probabilistic coverage, which augments structural coverage with a confidence measure (88.87%, 88.65%, and 37.18% for condition, decision, and path coverage, respectively, on average). Finally, through mutation testing, we find weak or no correlation between fault detection and structural coverage, consistent with observations in classical computing.

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

↑