arrow
Return

Bug-Locating Method Based on Statistical Testing for Quantum Programs

delete2025-08-08
delete0
PRE
AI
N
Naoto Sato
R
Ryota Katsube
DOI:10.1109/TSE.2025.3597316delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
When a bug is detected by testing a quantum program on a quantum computer, we want to determine its location to fix it. To locate the bug, the quantum program is divided into several segments, and each segment is tested. However, to prepare a quantum state that is input to a segment, it is necessary to execute all the segments ahead of that segment in a quantum computer. This means that the cost of testing each segment depends on its location. We can also locate a buggy segment only if it is confirmed that there are no bugs in all segments ahead of that buggy segment. Since a quantum program is tested statistically on the basis of measurement results, there is a tradeoff between testing accuracy and cost. These characteristics are unique to quantum programs and complicate locating bugs. We propose an efficient bug-locating method consisting of four approaches, i.e., cost-based binary search, early determination, finalization, and looking back, which take these characteristics into account. We present experimental results indicating that the proposed method can reduce bug-locating cost, represented as the number of executed quantum gates, compared with naive methods that do not use the four approaches. The limitations and usefulness of the proposed method are also discussed on the basis of the experimental results.
Keywords:
Testing and debugging
testing strategies
statistical methods
Statistical debugging: A hypothesis testing-based approach
err2006-10-01
err230
PREAI
errLiu, Chao; Fei, Long; Yan, Xifeng; Han, Jiawei; Midkiff, Samuel P.
errShare
errSave
Evaluating testing methods by delivered reliability
err1998-01-01
err113
errOAAI
errFrankl, PG; Hamlet, RG; Littlewood, B; Strigini, L
errShare
errSave
Locating faults with program slicing: an empirical analysis
err2021-04-01
err26
errOAAI
errSoremekun, Ezekiel; Kirschner, Lukas; Bohme, Marcel; Zeller, Andreas
errShare
errSave
Combining Operational and Debug Testing for Improving Reliability
err2013-06-01
err31
PREAI
errCotroneo, Domenico; Pietrantuono, Roberto; Russo, Stefano
errShare
errSave
Systematic testing of model-based code generators
err2007-09-01
err41
PREAI
errStuermer, Ingo; Conrad, Mirko; Doerr, Heiko; Pepper, Peter
errShare
errSave

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
3.0K
Citations:
1.3W

Organization

H
hitachi ltd.
Scholars:
0
Papers: 2
Citations: 1
Cited Papers

Cited Papers

No cited papers available