MorphQ: Metamorphic Testing of Quantum Computing Platforms

06/02/2022
by   Matteo Paltenghi, et al.
0

As quantum computing is becoming increasingly popular, the underlying quantum computing platforms are growing both in ability and complexity. This growth may cause bugs in the platforms, which hinders the adoption of quantum computing. Unfortunately, testing quantum computing 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) 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 50k program pairs within two days, many of which expose crashes. Inspecting the crashes, we find twelve bugs, eight 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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/27/2021

Bugs in Quantum Computing Platforms: An Empirical Study

The interest in quantum computing is growing, and with it, the importanc...
research
01/21/2022

A Comprehensive Study of Bug Fixes in Quantum Programs

As quantum programming evolves, more and more quantum programming langua...
research
05/20/2019

Statistical Assertions for Validating Patterns and Finding Bugs in Quantum Programs

In support of the growing interest in quantum computing experimentation,...
research
06/29/2023

Noise-Aware Quantum Software Testing

Quantum Computing (QC) promises computational speedup over classic compu...
research
06/10/2023

An Empirical Study of Bugs in Quantum Machine Learning Frameworks

Quantum computing has emerged as a promising domain for the machine lear...
research
11/13/2018

QDB: From Quantum Algorithms Towards Correct Quantum Programs

With the advent of small-scale prototype quantum computers, researchers ...
research
09/08/2023

Locating Buggy Segments in Quantum Program Debugging

When a bug is detected by testing a quantum program on a quantum compute...

Please sign up or login with your details

Forgot password? Click here to reset