MorphQ: Metamorphic Testing of the Qiskit Quantum Computing Platform
arXiv:2206.01111 · doi:10.1109/ICSE48619.2023.00202
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. 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.
Accepted as full paper in the technical track of ICSE 2023
References in corpus (7)
- An introduction to quantum machine learning
- The quest for a Quantum Neural Network
- tket : A Retargetable Compiler for NISQ Devices
- Resource-Aware Quantum Programming with General Recursion and Quantum Control
- Open source software in quantum computing
- CutQC: Using Small Quantum Computers for Large Quantum Circuit Evaluations
- Statistical Assertions for Validating Patterns and Finding Bugs in Quantum Programs
Cited by in corpus (5)
- Fuzz4All: Universal Fuzzing with Large Language Models
- Quantum Software Engineering: Roadmap and Challenges Ahead
- Analyzing Quantum Programs with LintQ: A Static Analysis Framework for Qiskit
- MR-Scout: Automated Synthesis of Metamorphic Relations from Existing Test Cases
- MetaSpace: Metamorphic Testing for Spatial Cognition in Embodied Agents