Metraipolis › archive › dc_6ad12666619d

QuSema: Detecting Silent Bugs in Quantum Libraries via Quantum-knowledge-enhanced Agents — arXiv:2610.10258

Source
arXiv (en)
Original
https://arxiv.org/abs/2610.10258
License (as archived)
CC0-1.0
Archived
2026-10-08T11:12:02.396Z
SHA-256 of the archived text
493003d28efdd39172e22a94ecb83a5732fe60e543e6240653bf11e39f16cc80
Stable URL of this page
https://metraipolis.com/documento/dc_6ad12666619d

How to cite

QuSema: Detecting Silent Bugs in Quantum Libraries via Quantum-knowledge-enhanced Agents — arXiv:2610.10258 — arXiv (en), https://arxiv.org/abs/2610.10258 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_6ad12666619d (Metraipolis archive dc_6ad12666619d, sha256 493003d28efdd39172e22a94ecb83a5732fe60e543e6240653bf11e39f16cc80)
BibTeX
@misc{dc6ad12666619d,
  title = {QuSema: Detecting Silent Bugs in Quantum Libraries via Quantum-knowledge-enhanced Agents — arXiv:2610.10258},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2610.10258},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_6ad12666619d; sha256 493003d28efdd39172e22a94ecb83a5732fe60e543e6240653bf11e39f16cc80},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.10258. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Quantum libraries are now critical infrastructure for quantum algorithm development, yet their correctness remains difficult to test. Existing testing techniques mainly rely on failure-based or comparison-based oracles, exposing bugs only when executions fail, violate runtime checks, or disagree with another implementation. Their applicability is limited when suitable execution-based oracles are unavailable, leaving some silent bugs undetected. Such missed bugs can produce incorrect results that propagate into experimental conclusions, simulation studies, and algorithmic designs. Here we present QuSema, an autonomous testing agent for finding silent bugs in quantum libraries. QuSema uses constraints from quantum semantics and documentation as a source-level semantic oracle to assess whether implementation logic can produce invalid outputs from valid inputs. It operates through an agentic loop that repeatedly inspects library API documentation and source code, reasons about the intended behavior of quantum operations, identifies potential semantic deviations, and validates them by generating executable tests through library APIs. Guided by quantum-domain reasoning, QuSema turns high-level behavioral mismatches into concrete, user-triggerable bug reports, enabling it to uncover non-crash defects. We implement QuSema for Qiskit and PennyLane. On a benchmark of 20 historical silent bugs, QuSema achieves higher mean bug relocation counts than Claude Code and Codex, with the DeepSeek configuration costing less than Claude Code. QuSema also discovers 40 previously unknown bugs confirmed by the developers, including 30 silent bugs.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno).
Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI); Quantum Physics (quant-ph).
Pagina del lavoro: https://arxiv.org/abs/2610.10258 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-08T10:14:06.169Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).