Summary
Researchers have proposed a quantum metamorphic testing (QMT) framework to address the challenge of systematically verifying quantum programs. Unlike classical testing, quantum states cannot be directly inspected; the QMT framework overcomes this by incorporating measurement procedures into metamorphic relations to automatically derive new test cases from existing ones.
The framework was applied to testing the preparation of stabilizer states, which are essential for measurement-based quantum computing and quantum error correction. Implemented in Qiskit, the method reduced testing run time by an order of magnitude compared to random input states and successfully identified synthetic faults and a real Qiskit compiler bug.