MorphQ: Metamorphic Testing of the Qiskit Quantum Computing Platform

Matteo Paltenghi, Michael Pradel
6/2/2022
cs.SE

Official code: sola-st/MorphQ-Quantum-Qiskit-Testing-ICSE-23 (10 stars, Jupyter Notebook, MIT, last commit 2025-03-12).

Abstract

As quantum computing is becoming increasingly popular, the underlying quantum computing platforms are growing both in ability and complexity. Unfortunately, testing these platforms is challenging due to the relatively small number of existing quantum programs and because of the oracle problem, i.e., a lack of specifications of the expected behavior of programs.

Show full abstract

This paper presents MorphQ, the first metamorphic testing approach for quantum computing platforms. Our two key contributions are (i) a program generator that creates a large and diverse set of valid (i.e., non-crashing) quantum programs, and (ii) a set of program transformations that exploit quantum-specific metamorphic relationships to alleviate the oracle problem. Evaluating the approach by testing the popular Qiskit platform shows that the approach creates over 8k program pairs within two days, many of which expose crashes. Inspecting the crashes, we find 13 bugs, nine of which have already been confirmed. MorphQ widens the slim portfolio of testing techniques of quantum computing platforms, helping to create a reliable software stack for this increasingly important field.

View on arXivView PDF

Code Implementations(1)

MIT

Companion website of "MorphQ: Metamorphic Testing of the Qiskit Quantum Computing Platform", accepted at ICSE 23

109Jupyter Notebook, PythonJan 17, 20231 years agoMIT

Similar Papers

Cite this paper

@article{paltenghi2022morphq,
  title  = {MorphQ: Metamorphic Testing of the Qiskit Quantum Computing Platform},
  author = {Matteo Paltenghi and Michael Pradel},
  year   = {2022},
  eprint = {2206.01111},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.01111}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.01111.svg)](https://codeofpaper.com/paper/2206.01111)

Discussion