Towards Defect Prediction for Quantum Software*
Software defects are faults or bugs within a program that can lead to incorrect or unexpected outcomes. Efficiently allocating software quality assurance (SQA) resources to components with a higher likelihood of defects, based on software defect prediction (SDP) models, can save significant effort. Although SDP has been extensively studied in classical software, its applicability to quantum software remains unexplored. Defect prediction for quantum software presents unique challenges, including the susceptibility to quantum-specific defects arising from quantum coding conventions and the limited size of available datasets. To address these issues, we propose QDP-FSL, an SDP model using a pre-trained code model to capture the semantics of quantum software code, and applying few-shot learning (FSL) to learn effectively from a small number of defective samples. Results show that QDP-FSL outperforms baseline methods that rely on static analysis. This work lays the foundation for future research in defect prediction for quantum software engineering and outlines potential directions for further improvement.
Authors
- Lizhi Cai
- Zijie Huang (ORCID: https://orcid.org/0000-0002-8911-9889)
- Xuan Mao
- Chao Wang (ORCID: https://orcid.org/0000-0002-7427-793X)
- Junbo Ge (ORCID: https://orcid.org/0000-0002-2549-0398)
- W. Wang
Institutions
- East China University of Science and Technology (CN)
Publication Details
- Published
- 2025-05-03
- DOI
- https://doi.org/10.1109/q-se66736.2025.00007
- Citations
- 3
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 9.74
Funders
- China Postdoctoral Science Foundation