Metraipolis › archive › dc_c4a7327174f2
BadQubits: An LLM-Based Framework for Static Pre-Execution Detection of Structurally Harmful Quantum Circuits — arXiv:2609.18965
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.18965
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-15T14:31:44.982Z
- SHA-256 of the archived text
e4b696391c0368817f9adfa9b88943fcc97f21d3cabc2ebcc1cbfa94c05b90bb- Stable URL of this page
https://metraipolis.com/documento/dc_c4a7327174f2
How to cite
BadQubits: An LLM-Based Framework for Static Pre-Execution Detection of Structurally Harmful Quantum Circuits — arXiv:2609.18965 — arXiv (en), https://arxiv.org/abs/2609.18965 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_c4a7327174f2 (Metraipolis archive dc_c4a7327174f2, sha256 e4b696391c0368817f9adfa9b88943fcc97f21d3cabc2ebcc1cbfa94c05b90bb)
BibTeX
@misc{dcc4a7327174f2,
title = {BadQubits: An LLM-Based Framework for Static Pre-Execution Detection of Structurally Harmful Quantum Circuits — arXiv:2609.18965},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.18965},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_c4a7327174f2; sha256 e4b696391c0368817f9adfa9b88943fcc97f21d3cabc2ebcc1cbfa94c05b90bb},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.18965. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
This paper presents BadQubits, an LLM-based framework for static pre-execution detection of structurally harmful OpenQASM 2.0 circuits. The framework targets physical-execution-layer threats by analyzing submitted circuits prior to runtime, where dynamic inspection is constrained by measurement irreversibility and the exponential cost of classical quantum-state simulation. We evaluate four code-understanding LLM architectures on a dataset of 1,500 circuits consisting of 1,000 benign programs from MQTBench[33] and 500 synthetic attack circuits derived from three documented physical-layer threat primitives. Our fine-tuned Qwen Coder 2.5 7B model achieves 92.67% classification accuracy and 96.1% harmful-circuit recall. Two of the four evaluated base models fail to generalize under constrained LoRA fine-tuning, indicating that architecture-aware model selection is a necessary design consideration rather than a minor tuning choice. To characterize what the detector has learned, we compare it against a bag-of-gates CNN under progressive confound removal and adversarial syntactic perturbation. The CNN's harmful-circuit recall drops from 100% to 17%, while the fine-tuned LLM decreases only from 96.1% to 91.2%. We attribute this gap to the sequential structure retained in token-level LLM inputs but discarded by histogram-based baselines. A correlation analysis further shows that model decisions track threat-defining features, specifically SWAP density and measurement timing, rather than generator-specific artifacts such as register naming. Tema degli esploratori: fiducia digitale e crittografia (retro-catalogo arXiv: annunci del 2026-09-17 in cs.CR). Categorie arXiv: Cryptography and Security (cs.CR) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2609.18965 — 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-15T13:56:52.876Z dalla pagina https://arxiv.org/catchup/cs.CR/2026-09-17?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).