English

Evaluating Mutation-based Fault Localization for Quantum Programs

Software Engineering 2025-05-15 v1

Abstract

Quantum computers leverage the principles of quantum mechanics to execute operations. They require quantum programs that define operations on quantum bits (qubits), the fundamental units of computation. Unlike traditional software development, the process of creating and debugging quantum programs requires specialized knowledge of quantum computation, making the development process more challenging. In this paper, we apply and evaluate mutation-based fault localization (MBFL) for quantum programs with the aim of enhancing debugging efficiency. We use quantum mutation operations, which are specifically designed for quantum programs, to identify faults. Our evaluation involves 23 real-world faults and 305 artificially induced faults in quantum programs developed with Qiskit(R). The results show that real-world faults are more challenging for MBFL than artificial faults. In fact, the median EXAM score, which represents the percentage of the code examined before locating the faulty statement (lower is better), is 1.2% for artificial benchmark and 19.4% for the real-world benchmark in the worst-case scenario. Our study highlights the potential and limitations of MBFL for quantum programs, considering different fault types and mutation operation types. Finally, we discuss future directions for improving MBFL in the context of quantum programming.

Keywords

Cite

@article{arxiv.2505.09059,
  title  = {Evaluating Mutation-based Fault Localization for Quantum Programs},
  author = {Yuta Ishimoto and Masanari Kondo and Naoyasu Ubayashi and Yasutaka Kamei and Ryota Katsube and Naoto Sato and Hideto Ogawa},
  journal= {arXiv preprint arXiv:2505.09059},
  year   = {2025}
}

Comments

6 pages, Accepted at Short Papers, Emerging Results in the International Conference on Evaluation and Assessment in Software Engineering (EASE), 2025