mlsanityData to 7 Oct 2026

Automating Detection and Root-Cause Analysis of Flaky Tests in Quantum Software

arXiv 2603.09029 ↗First posted 9 Mar 2026cs.SE cs.AI cs.ETcited by 0

Not on the map. Why?

Abstract (arXiv)

Like classical software, quantum software systems rely on automated testing. However, their inherently probabilistic outputs make them susceptible to quantum flakiness -- tests that pass or fail inconsistently without code changes. Such quantum flaky tests can mask real defects and reduce developer productivity, yet systematic tooling for their detection and diagnosis remains limited. This paper presents an automated pipeline to detect flaky-test-related issues and pull requests in quantum software repositories and to support the identification of their root causes. We aim to expand an existing quantum flaky test dataset and evaluate the capability of Large Language Models (LLMs) for flakiness classification and root-cause identification. Building on a prior manual analysis of 14 quantum software repositories, we automate the discovery of additional flaky test cases using LLMs and cosine similarity. We further evaluate a variety of LLMs from OpenAI GPT, Meta LLaMA, Google Gemini, and Anthropic Claude suites for classifying flakiness and identifying root causes from issue descriptions and code context. Classification performance is assessed using standard performance metrics, including F1-score. Using our pipeline, we identify 25 previously unknown flaky tests, increasing the original dataset size by 54%. The best-performing model, Google Gemini, achieves an F1-score of 0.9420 for flakiness detection and 0.9643 for root-cause identification, demonstrating that LLMs can provide practical support for triaging flaky reports and understanding their underlying causes in quantum software. The expanded dataset and automated pipeline provide reusable artifacts for the quantum software engineering community. Future work will focus on improving detection robustness and exploring automated repair of quantum flaky tests.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 16 of its 41 references that are in the map. First posted on arXiv 9 Mar 2026.

Builds on

16 of 41 references.

References · 16

  1. 2024The Llama 3 Herd of Modelscited by 14,192
  2. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
  3. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  4. 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
  5. 2022MTEB: Massive Text Embedding Benchmarkcited by 623
  6. 2023Improving Text Embeddings with Large Language Modelscited by 295
  7. 2023AnglE-optimized Text Embeddingscited by 98
  8. 2021Flakify: A Black-Box, Language Model-based Predictor for Flaky Testscited by 11
  9. 2023FlakyFix: Using Large Language Models for Predicting Flaky Test Fix Categories and Test Code Repaircited by 6
  10. 2025Science Is Falling Behind the Frontier: Foundation Model Adoption Across Half a Million Paperscited by 5
  11. 2021A Qualitative Study on the Sources, Impacts, and Mitigation Strategies of Flaky Testscited by 4
  12. 2023Identifying Flakiness in Quantum Programscited by 4
4 more
  1. 2024Automated flakiness detection in quantum software bug reportscited by 3
  2. 2021An Empirical Study of Flaky Tests in Pythoncited by 2
  3. 2022Predicting Flaky Tests Categories using Few-Shot Learningcited by 1
  4. 2025Identifying Flaky Tests in Quantum Code: A Machine Learning Approachcited by 1

Built on by

Not cited yet.