Identifying Flaky Tests in Quantum Code: A Machine Learning Approach

Khushdeep Kaur, Dongchan Kim, Ainaz Jamshidi, Lei Zhang
2/6/2025
cs.SEcs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Testing and debugging quantum software pose significant challenges due to the inherent complexities of quantum mechanics, such as superposition and entanglement. One challenge is indeterminacy, a fundamental characteristic of quantum systems, which increases the likelihood of flaky tests in quantum programs. To the best of our knowledge, there is a lack of comprehensive studies on quantum flakiness in the existing literature. In this paper, we present a novel machine learning platform that leverages multiple machine learning models to automatically detect flaky tests in quantum programs. Our evaluation shows that the extreme gradient boosting and decision tree-based models outperform other models (i.e., random forest, k-nearest neighbors, and support vector machine), achieving the highest F1 score and Matthews Correlation Coefficient in a balanced dataset and an imbalanced dataset, respectively. Furthermore, we expand the currently limited dataset for researchers interested in quantum flaky tests. In the future, we plan to explore the development of unsupervised learning techniques to detect and classify quantum flaky tests more effectively. These advancements aim to improve the reliability and robustness of quantum software testing.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kaur2025identifying,
  title  = {Identifying Flaky Tests in Quantum Code: A Machine Learning Approach},
  author = {Khushdeep Kaur and Dongchan Kim and Ainaz Jamshidi and Lei Zhang},
  year   = {2025},
  eprint = {2502.04471},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.04471v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.04471.svg)](https://codeofpaper.com/paper/2502.04471)

Discussion