Generating Failing Test Suites for Quantum Programs with Search (hot off the Press Track at GECCO 2022).

Xinyi Wang,Paolo Arcaini,Tao Yue,Shaukat Ali
DOI: https://doi.org/10.1145/3520304.3534067
2022-01-01
Abstract:The inherent complexity of quantum programs, due to features such as superposition and entanglement, makes their testing particularly challenging. To tackle these challenges, we present a search-based approach, called Quantum Search-Based Testing (QuSBT), for automatically generating test suites of a given size that possibly expose failures of the quantum program under test. QuSBT encodes a test suite as a search individual, and tries to maximize the objective function that counts the number of failing tests in the test suite. Due to non-deterministic nature of quantum programs, the approach repeats the execution of each test multiple times, and uses suitable statistical tests to assess if a test passes or fails. QuSBT employs a genetic algorithm to perform the search. Experiments on 30 faulty quantum programs show that QuSBT is statistically better than random search, and is able to efficiently generate maximal failing test suites.
What problem does this paper attempt to address?