Identifying Flaky Tests in Quantum Code: A Machine Learning Approach

dc.contributor.authorKaur, Khushdeep
dc.contributor.authorKim, Dongchan
dc.contributor.authorJamshidi, Ainaz
dc.contributor.authorZhang, Lei
dc.date.accessioned2025-04-01T14:55:52Z
dc.date.available2025-04-01T14:55:52Z
dc.date.issued2025-02-06
dc.description.abstractTesting 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.
dc.description.urihttp://arxiv.org/abs/2502.04471
dc.format.extent8 pages
dc.genrejournal articles
dc.genrepostprints
dc.identifierdoi:10.13016/m2c3ll-4e6e
dc.identifier.urihttps://doi.org/10.48550/arXiv.2502.04471
dc.identifier.urihttp://hdl.handle.net/11603/37937
dc.language.isoen
dc.relation.isAvailableAtThe University of Maryland, Baltimore County (UMBC)
dc.relation.ispartofUMBC Information Systems Department
dc.relation.ispartofUMBC Faculty Collection
dc.relation.ispartofUMBC Student Collection
dc.rightsThis item is likely protected under Title 17 of the U.S. Copyright Law. Unless on a Creative Commons license, for uses protected by Copyright Law, contact the copyright holder or the author.
dc.subjectComputer Science - Software Engineering
dc.subjectUMBC Emerging Software Technologies Lab
dc.subjectComputer Science - Machine Learning
dc.titleIdentifying Flaky Tests in Quantum Code: A Machine Learning Approach
dc.typeText
dcterms.creatorhttps://orcid.org/0000-0002-7342-3982
dcterms.creatorhttps://orcid.org/0000-0001-9343-3654

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Identifying_Flaky.pdf
Size:
292.92 KB
Format:
Adobe Portable Document Format