mlsanityData to 7 Oct 2026

KQFuzz: Knowledge-Guided Fuzzing for Quantum Libraries via Large Language Models

arXiv 2607.25647 ↗First posted 28 Jul 2026cs.SE cs.AI cs.MAcited by 1

Not on the map. Why?

Abstract (arXiv)

As quantum computing continually improves, ensuring the reliability and correctness of quantum libraries has become increasingly critical. To this end, many LLM-based fuzzing approaches towards quantum libraries have been proposed to uncover potential bugs. However, these methods still suffer from limitations such as insufficient flexibility and low efficiency, which hinder the progress of the quantum computing field. To address these challenges, we propose KQFuzz, a novel knowledge-guided fuzzer for quantum libraries. It leverages comprehensive codebase knowledge to ground LLM-based test generation, synergizing this with fitness-guided evaluation and two-level mutations to explore complex execution paths and trigger potential bugs. Firstly, KQFuzz introduces a novel prompting scheme tailored to quantum programs, which strategically incorporates knowledge of the codebase to efficiently generate high-quality quantum seed programs. Moreover, we develop evaluation and mutation strategies to handle the generated seed programs, facilitating efficient fuzzing execution while further enriching the diversity of the resulting test cases. We implement KQFuzz and conduct fuzzing on three popular quantum libraries, including Qiskit, PennyLane, and Cirq. Experimental results demonstrate that our approach significantly outperforms other state-of-the-art methods, with coverage improved by up to 18.44%. During the development of KQFuzz, we discovered 13 bugs, all of which have been confirmed and 12 have already been fixed by the developers.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 22 of its 67 references that are in the map. First posted on arXiv 28 Jul 2026.

Builds on

22 of 67 references.

References · 22

  1. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  2. 2024Qwen2.5-Coder Technical Reportcited by 1,151
  3. 2018The Art, Science, and Engineering of Fuzzing: A Surveycited by 61
  4. 2023Challenges and Opportunities in Quantum Optimizationcited by 42
  5. 2020Quantum Software Engineering: Landscapes and Horizonscited by 4
  6. 2022MorphQ: Metamorphic Testing of the Qiskit Quantum Computing Platformcited by 4
  7. 2021Bugs in Quantum Computing Platforms: An Empirical Studycited by 3
  8. 2023Q-Pilot: Field Programmable Qubit Array Compilation with Flying Ancillascited by 3
  9. 2024A Machine Learning-Based Error Mitigation Approach For Reliable Software Development On IBM'S Quantum Computerscited by 3
  10. 2024Faster and Better Quantum Software Testing through Specification Reduction and Projective Measurementscited by 3
  11. 2023QChecker: Detecting Bugs in Quantum Programs via Static Analysiscited by 2
  12. 2023Testing Multi-Subroutine Quantum Programs: From Unit Testing to Integration Testingcited by 2
10 more
  1. 2023Equivalence, Identity, and Unitarity Checking in Black-Box Testing of Quantum Programscited by 2
  2. 2025PROMFUZZ: Leveraging LLM-Driven and Bug-Oriented Composite Analysis for Detecting Functional Bugs in Smart Contractscited by 2
  3. 2025M2QCode: A Model-Driven Framework for Generating Multi-Platform Quantum Programscited by 2
  4. 2026A Methodological Analysis of Empirical Studies in Quantum Software Testingcited by 2
  5. 2026Understanding Bugs in Quantum Simulators: An Empirical Studycited by 2
  6. 2023ResolverFuzz: Automated Discovery of DNS Resolver Vulnerabilities with Query-Response Fuzzingcited by 1
  7. 2023Symbolic Execution for Quantum Error Correction Programscited by 1
  8. 2025ZTaint-Havoc: From Havoc Mode to Zero-Execution Fuzzing-Driven Taint Inferencecited by 1
  9. 2025Is Measurement Enough? Rethinking Output Validation in Quantum Program Testingcited by 1
  10. 2026QEMI: A Quantum Software Stacks Testing Framework via Equivalence Modulo Inputscited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.