中文

MetaMorphQ: Physics-Based Metamorphic Testing of Variational Quantum Circuits

新兴技术 2026-06-27 v1

摘要

Variational Quantum Eigensolvers (VQEs) are central to quantum computing, yet testing them remains challenging due to the oracle problem: the ground-state energy they compute is itself unknown. Existing approaches, such as convergence-based testing, are unreliable and yield high false-positive rates due to optimisation instability. We propose METAMORPHQ, a metamorphic testing framework that derives test oracles directly from quantum mechanical properties of VQE circuits. Exploiting algebraic properties of parametrised rotation gates and diagonal Hamiltonians, we define five physics-based invariants that hold for any correct circuit and can be verified at initialisation without ground-truth outputs. Evaluated on 500 benchmark circuits with 2,469 mutants, METAMORPHQ achieves zero false positives and significantly improves diagnostic effectiveness (Youden's J = 0.57 vs. 0.02 for convergence testing). These results demonstrate that physics-derived invariants provide a practical, oracle-free foundation for testing quantum software, enabling reliable validation of both human- and LLM-generated circuits.

引用

@article{arxiv.2606.28742,
  title  = {MetaMorphQ: Physics-Based Metamorphic Testing of Variational Quantum Circuits},
  author = {Ngoc Nhi Nguyen and John Le and Thai T. Vu and Thi Thuy Nga Nguyen and Jun Shen},
  journal= {arXiv preprint arXiv:2606.28742},
  year   = {2026}
}

备注

10 pages, 3 figures, IEEE QSW 2026 (IEEE International Conference on Quantum Software)