Skip to content
DraconiticResearch
Search Sources API
197,768 studies31 sourcesUpdated 20 min ago
PreprintCC BY 4.0arXiv

Fault-Class-Matched Test Oracles for Output-Invisible Quantum Transpiler Regressions

Abstract

Test oracles for quantum transpilers typically judge correctness by comparing compiled output against a reference: a statevector, a sampled distribution, or a unitary compared modulo global phase. A companion empirical study measures how often that choice fails. Roughly 28% of merged Qiskit transpiler bug-fixes (95% Wilson CI 19-40%) repair a fault that corrupts layout metadata, global phase, or run-to-run reproducibility while output stays correct: invisible to a black-box output-equivalence oracle by construction. This paper closes that gap with a fault-class-matched, layout-aware, width-tiered oracle family: a layout/permutation contract checker and a contract-level metamorphic relation (MR-1) for the metadata channel, a global-phase tracker for the phase channel, and a determinism runner for reproducibility. Verified from source on nine real, merged Qiskit transpiler regressions (three per channel), the output-equivalence oracle is blind throughout and the matched mechanism fires on every case. A 675-configuration sweep of the contract/metadata invariant finds no false positive. Synthetic mutant families confirm reliability at scale: 1.00 sensitivity and specificity across 36 mutants apiece for the contract/metadata and global-phase channels, and 1.00 sensitivity (95% CI 0.44-1.00) for reproducibility on the three circuits where the mutation is constructible. The contract checker costs two to six orders of magnitude less than a plain output check, the global-phase tracker is comparably cheap within its exact tier, and only the metamorphic relation carries a bounded cost. Ported natively to pytket/tket, the global-phase mechanism transfers cleanly, an identical 1.00/1.00 result with phases recovered to double-precision accuracy, evidence against a Qiskit-specific artifact.

Related

  1. What Output-Equivalence Oracles Miss: An Empirical Study of Equivalence-Invisible Bug Fixes in Quantum Transpilers
    Furqan Nasir, Arif Shah, Iftikhar Alam
    arXivPreprintCC BY 4.0Full textQuantum physics & quantum informationarXiv
  2. How to make quantum cheese: efficient geometry oracles for exponentially many pseudorandom microstructures
    Alice Barthe
    arXivPreprintarXiv licenceFull textQuantum physics & quantum informationarXiv
  3. Spectral theory of energy-selective quantum search with Ising Hamiltonian phase oracles
    A. S. Plyashechnik, A. A. Zhukov, A. V. Lebedev +1
    arXivPreprintarXiv licenceFull textCondensed matterQuantum physics & quantum informationarXiv
  4. Modeling and Resource Optimization for Quantum Oracles
    Zhihang Li, Bo Zhao, Chuanbing Han +6
    arXivPreprintCC0Full textQuantum physics & quantum informationarXiv
  5. QEncodeBench: Can Large Language Models Encode Classical Problems into Verified Quantum Oracles?
    Xujun Che, Hanhan Wu, Yuchen Yuan +1
    arXivPreprintarXiv licenceFull textQuantum physics & quantum informationarXiv
BibTeX
@misc{nasir2026faultclassmatched,
  title = {{Fault-Class-Matched Test Oracles for Output-Invisible Quantum Transpiler Regressions}},
  author = {Furqan Nasir and Arif Shah and Iftikhar Alam},
  howpublished = {arXiv},
  year = {2026},
  month = sep,
  doi = {10.48550/arxiv.2609.24230},
  eprint = {2609.24230},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.24230},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - Fault-Class-Matched Test Oracles for Output-Invisible Quantum Transpiler Regressions
AU  - Furqan Nasir
AU  - Arif Shah
AU  - Iftikhar Alam
PY  - 2026
DA  - 2026/09/21
PB  - arXiv
DO  - 10.48550/arxiv.2609.24230
UR  - https://arxiv.org/abs/2609.24230
AB  - Test oracles for quantum transpilers typically judge correctness by comparing compiled output against a reference: a statevector, a sampled distribution, or a unitary compared modulo global phase. A companion empirical study measures how often that choice fails. Roughly 28% of merged Qiskit transpiler bug-fixes (95% Wilson CI 19-40%) repair a fault that corrupts layout metadata, global phase, or run-to-run reproducibility while output stays correct: invisible to a black-box output-equivalence oracle by construction. This paper closes that gap with a fault-class-matched, layout-aware, width-tiered oracle family: a layout/permutation contract checker and a contract-level metamorphic relation (MR-1) for the metadata channel, a global-phase tracker for the phase channel, and a determinism runner for reproducibility. Verified from source on nine real, merged Qiskit transpiler regressions (three per channel), the output-equivalence oracle is blind throughout and the matched mechanism fires on every case. A 675-configuration sweep of the contract/metadata invariant finds no false positive. Synthetic mutant families confirm reliability at scale: 1.00 sensitivity and specificity across 36 mutants apiece for the contract/metadata and global-phase channels, and 1.00 sensitivity (95% CI 0.44-1.00) for reproducibility on the three circuits where the mutation is constructible. The contract checker costs two to six orders of magnitude less than a plain output check, the global-phase tracker is comparably cheap within its exact tier, and only the metamorphic relation carries a bounded cost. Ported natively to pytket/tket, the global-phase mechanism transfers cleanly, an identical 1.00/1.00 result with phases recovered to double-precision accuracy, evidence against a Qiskit-specific artifact.
ER  -