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

Institutions

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Towards Defect Prediction for Quantum Software*

Lizhi Cai, Zijie Huang, Xuan Mao, Chao Wang et al.
3 citations
Software Engineering Research
9.74
article

Towards Defect Prediction for Quantum Software*

Lizhi Cai, Zijie Huang, Xuan Mao, Chao Wang, Junbo Ge, W. Wang
article en
3 citations

Abstract

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.

East China University of Science and Technology (CN)
China Postdoctoral Science Foundation
Openalex Percentile: Top 2%
Software Engineering Research
9.74
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.