Identifying Flaky Tests in Quantum Code: A Machine Learning Approach
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 10 of its 31 references that are in the map. First posted on arXiv 6 Feb 2025.
Builds on
10 of 31 references.
References · 10
- 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,166
- 2015A Random Forest Guided Tourcited by 168
- 2020Quantum Software Engineering: Landscapes and Horizonscited by 4
- 2021A Qualitative Study on the Sources, Impacts, and Mitigation Strategies of Flaky Testscited by 4
- 2023Identifying Flakiness in Quantum Programscited by 4
- 2022Software Engineering for Quantum Programming: How Far Are We?cited by 3
- 2024Automated flakiness detection in quantum software bug reportscited by 3
- 2021An Empirical Study of Flaky Tests in Pythoncited by 2
- 2022A Survey on How Test Flakiness Affects Developers and What Support They Need To Address Itcited by 2
- 2024Automating Quantum Software Maintenance: Flakiness Detection and Root Cause Analysiscited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Qiskit QuantumKatas: Adapting Microsoft's Quantum Computing exercises for LLM evaluation
- 2026Beyond Rules: LLM-Powered Linting for Quantum Programs ↗
- 2023Potential and limitations of random Fourier features for dequantizing quantum machine learning
- 2023Classical Verification of Quantum Learning
- 2023Quantum-Inspired Machine Learning: a Survey
- 2025QHackBench: Benchmarking Large Language Models for Quantum Code Generation Using PennyLane Hackathon Challenges
- 2024Discrete Randomized Smoothing Meets Quantum Computing
- 2026Quantum vs. Classical Machine Learning: A Unified Empirical Comparison