Skip to content
DraconiticResearch
Search Sources API
197,768 studies31 sourcesUpdated 14 min ago
PreprintarXiv licencearXiv

QDiff: Differential Testing of Quantum Software Stacks

Abstract

Over the past few years, several quantum software stacks (QSS) have been developed in response to rapid hardware advances in quantum computing. A QSS includes a quantum programming language, an optimizing compiler that translates a quantum algorithm written in a high-level language into quantum gate instructions, a quantum simulator that emulates these instructions on a classical device, and a software controller that sends analog signals to a very expensive quantum hardware based on quantum circuits. In comparison to traditional compilers and architecture simulators, QSSes are difficult to tests due to the probabilistic nature of results, the lack of clear hardware specifications, and quantum programming complexity. This work devises a novel differential testing approach for QSSes, named QDIFF with three major innovations: (1) We generate input programs to be tested via semantics-preserving, source to source transformation to explore program variants. (2) We speed up differential testing by filtering out quantum circuits that are not worthwhile to execute on quantum hardware by analyzing static characteristics such as a circuit depth, 2 qubit gate operations, gate error rates, and T1 relaxation time. (3) We design an extensible equivalence checking mechanism via distribution comparison functions such as Kolmogorov Smirnov test and cross entropy

Versions

Related

  1. Noise-Awareness in Quantum Software Testing: An Empirical Landscape Analysis
    Mir Mohammad Yousuf, Shabir Ahmad Sofi, Bisma Majid
    arXivPreprintCC BY 4.0Full textQuantum physics & quantum informationarXiv
  2. How general relativity stacks up: Testing gravity by coherently combining gravitational-wave observations
    Lachlan Passenger, Nir Guttman, Paul D. Lasky +1
    arXivPreprintCC BY 4.0Full textHigh-energy astrophysicsInstrumentation & methodsarXiv
  3. An extensible software platform for automated operational and characterization testing of scientific cameras
    Baolong Chen, Hongfei Zhang, Wei Liu +5
    arXivPreprintarXiv licenceFull textApplied physics & instrumentationarXiv
  4. HEPToolBench 1.2: Testing How Reliably Language Models Can Drive Particle Physics Software
    Aadarsh Singh, Sudhir K. Vempati
    arXivPreprintarXiv licenceFull textHigh-energy & particle physicsarXiv
  5. QSoftCore: A Conceptual Foundation for Quantum Software Engineering
    Tao Yue, Yuechen Li, Man Zhang
    arXivPreprintCC BY 4.0Full textQuantum physics & quantum informationarXiv
BibTeX
@misc{wang2026qdiff,
  title = {{QDiff: Differential Testing of Quantum Software Stacks}},
  author = {Jiyuan Wang and Qian Zhang and Guoqing Harry Xu and Miryung Kim},
  howpublished = {arXiv},
  year = {2026},
  month = nov,
  doi = {10.48550/arxiv.2611.08220},
  eprint = {2611.08220},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.08220},
}
RIS
TY  - UNPB
TI  - QDiff: Differential Testing of Quantum Software Stacks
AU  - Jiyuan Wang
AU  - Qian Zhang
AU  - Guoqing Harry Xu
AU  - Miryung Kim
PY  - 2026
DA  - 2026/11/05
PB  - arXiv
DO  - 10.48550/arxiv.2611.08220
UR  - https://arxiv.org/abs/2611.08220
AB  - Over the past few years, several quantum software stacks (QSS) have been developed in response to rapid hardware advances in quantum computing. A QSS includes a quantum programming language, an optimizing compiler that translates a quantum algorithm written in a high-level language into quantum gate instructions, a quantum simulator that emulates these instructions on a classical device, and a software controller that sends analog signals to a very expensive quantum hardware based on quantum circuits. In comparison to traditional compilers and architecture simulators, QSSes are difficult to tests due to the probabilistic nature of results, the lack of clear hardware specifications, and quantum programming complexity. This work devises a novel differential testing approach for QSSes, named QDIFF with three major innovations: (1) We generate input programs to be tested via semantics-preserving, source to source transformation to explore program variants. (2) We speed up differential testing by filtering out quantum circuits that are not worthwhile to execute on quantum hardware by analyzing static characteristics such as a circuit depth, 2 qubit gate operations, gate error rates, and T1 relaxation time. (3) We design an extensible equivalence checking mechanism via distribution comparison functions such as Kolmogorov Smirnov test and cross entropy
ER  -