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

量子软件中缺陷和质量属性的特征化:一项大规模经验研究

Characterizing Bugs and Quality Attributes in Quantum Software: A Large-Scale Empirical Study

NIT Srinagar(印度国立技术学院斯利那加分校)

Mir Mohammad Yousuf, Shabir Ahmad Sofi

AI总结:

本研究通过大规模分析量子软件缺陷,揭示了全栈库和编译器的高缺陷率及自动化测试对减少缺陷的重要性。

摘要:

量子软件工程(QSE)对于确保混合量子-经典系统可靠性及可维护性至关重要,但关于现实世界量子项目中缺陷如何产生并影响质量的实证证据仍然有限。本研究首次对123个开源量子仓库进行了生态系统层面的纵向分析,时间跨度从2012年到2024年,涵盖八个功能类别,包括全栈库、模拟器、退火、算法、编译器、汇编、密码学和实验计算。采用混合方法,结合仓库挖掘、静态代码分析、问题元数据提取以及经过验证的基于规则的分类框架,我们分析了32,296个已验证的缺陷报告。结果显示,全栈库和编译器是缺陷最多的类别,由于电路、门和转译相关的问题,而模拟器主要受测量和噪声建模错误影响。经典缺陷主要影响可用性和互操作性,而量子特定缺陷则不成比例地降低性能、可维护性和可靠性。纵向分析表明生态系统成熟,缺陷密度在2017至2021年间达到峰值,之后下降。高严重性缺陷集中在密码学、实验计算和编译器工具链中。采用自动化测试的仓库检测更多缺陷并更快解决。负二项回归进一步显示自动化测试与预期缺陷发生率减少约60%相关。总体而言,本研究提供了首个大规模数据驱动的量子软件缺陷特征化,并为改进QSE中的测试、文档和可维护性实践提供了实证指导。

英文摘要:

Quantum Software Engineering (QSE) is essential for ensuring the reliability and maintainability of hybrid quantum-classical systems, yet empirical evidence on how bugs emerge and affect quality in real-world quantum projects remains limited. This study presents the first ecosystem-scale longitudinal analysis of software bugs across 123 open source quantum repositories from 2012 to 2024, spanning eight functional categories, including full-stack libraries, simulators, annealing, algorithms, compilers, assembly, cryptography, and experimental computing. Using a mixed method approach combining repository mining, static code analysis, issue metadata extraction, and a validated rule-based classification framework, we analyze 32,296 verified bug reports. Results show that full-stack libraries and compilers are the most bug-prone categories due to circuit, gate, and transpilation-related issues, while simulators are mainly affected by measurement and noise modeling errors. Classical bugs primarily impact usability and interoperability, whereas quantum-specific bugs disproportionately degrade performance, maintainability, and reliability. Longitudinal analysis indicates ecosystem maturation, with bug densities peaking between 2017 and 2021 and declining thereafter. High-severity bugs cluster in cryptography, experimental computing, and compiler toolchains. Repositories employing automated testing detect more bugs and resolve issues faster. A negative binomial regression further shows that automated testing is associated with an approximate 60 percent reduction in expected bug incidence. Overall, this work provides the first large-scale data-driven characterization of quantum software bugs and offers empirical guidance for improving testing, documentation, and maintainability practices in QSE.

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

↑