Using Quantum Computers to Speed Up Dynamic Testing of Software

09/11/2022
by   Andriy Miranskyy, et al.
0

Software under test can be analyzed dynamically, while it is being executed, to find defects. However, as the number and possible values of input parameters increase, the cost of dynamic testing rises. This paper examines whether quantum computers (QCs) can help speed up the dynamic testing of programs written for classical computers (CCs). To accomplish this, an approach is devised involving the following three steps: (1) converting a classical program to a quantum program; (2) computing the number of inputs causing errors, denoted by K, using a quantum counting algorithm; and (3) obtaining the actual values of these inputs using Grover's search algorithm. This approach can accelerate exhaustive and non-exhaustive dynamic testing techniques. On the CC, the computational complexity of these techniques is O(N), where N represents the count of combinations of input parameter values passed to the software under test. In contrast, on the QC, the complexity is O(ε^-1√(N/K)), where ε is a relative error of measuring K. The paper illustrates how the approach can be applied and discusses its limitations. Moreover, it provides a toy example executed on a simulator and an actual QC. This paper may be of interest to academics and practitioners as the approach presented in the paper may serve as a starting point for exploring the use of QC for dynamic testing of CC code.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/16/2021

On Testing and Debugging Quantum Software

Quantum computers are becoming more mainstream. As more programmers are ...
research
11/02/2022

Koopman Operator learning for Accelerating Quantum Optimization and Machine Learning

Finding efficient optimization methods plays an important role for quant...
research
01/29/2020

Is Your Quantum Program Bug-Free?

Quantum computers are becoming more mainstream. As more programmers are ...
research
06/29/2023

Noise-Aware Quantum Software Testing

Quantum Computing (QC) promises computational speedup over classic compu...
research
02/02/2019

Distributional property testing in a quantum world

A fundamental problem in statistics and learning theory is to test prope...
research
07/14/2020

Hybrid divide-and-conquer approach for tree search algorithms

As we are entering the era of real-world small quantum computers, findin...
research
10/16/2018

QuanFuzz: Fuzz Testing of Quantum Program

Nowadays, quantum program is widely used and quickly developed. However,...

Please sign up or login with your details

Forgot password? Click here to reset