P8: Optimized Quantum Software Testing based on Functional Property Specifications and Quantum State Verification Techniques (QuTe)

Members: Prof. Dr. Malte Lochau, Prof. Dr. Otfried Gühne


Programming a quantum computer is difficult and error-prone which makes it very hard for developers of new quantum algorithms to write functionally correct code. In classical software development, software testing is a widely established and easy-to-use technique for systematically inspecting program code to detect and localize potential bugs. As software testing relies on actual program executions, it is not only able to find bugs in the software, but may also exploit erroneous effects of the hardware which is particularly crucial for inherently noisy quantum computers. But, adopting classical testing techniques to quantum programs is challenging due to the inaccessibility of quantum variables in intermediate states of test executions and the probabilistic nature of quantum measurements.

The goal of this project is a new methodology for functional white-box testing of quantum programs that tackles these challenges. As a first step, we define a quantum-specific test specification language to formalize functional correctness properties to be tested.  The design of the language should allow developers to express properties to obtain effective tests and, at the same time, to ensure practical testability of these specified properties in a quantum environment. We combine techniques for generating test cases from probabilistic test models with quantum state verification techniques to operationalize the execution and evaluation of the generated test cases in a simulated quantum computing environment. We use estimated cost measures for different state verification strategies to optimize the trade-off between efficiency (testing effort) and effectiveness (probability of detecting property violations) and thereby characterizing the confidence level of the test results.

To study practical applicability of the methodology, we consider two application scenarios. First, we test canonical quantum algorithms with classical inputs and outputs such as Shor’s algorithm.  We use existing program repositories with documented bugs to investigate the efficiency/effectiveness trade-off obtained by different testing strategies. Second, we consider newly developed algorithms for quantum graph state preparation for which more elaborated testing concepts like hyper properties and corresponding state verification techniques are required.

To investigate the impact of noise in quantum hardware on the confidence level of test results, we also consider simulations with noise and, ultimately, also potential test executions on real quantum hardware. Here, we are interested in the question, whether it is possible to characterize test cases which are able to distinguish between errors caused by software bugs and errors at the hardware level.

 

Related Publications

Following is a list of papers that are related to QuTe. Some of the mentioned papers have been published in previous projects, but are highly related to QuTe.

Entanglement detection
O. Gühne, G. Toth
2009. Physics Reports 474.1-6. pp. 1
75. 10. DOI: 1016/j.physrep.2009.02.004.

Symmetries in quantum networks lead to no-go theorems for entanglement distribution and to verification techniques
K. Hansenne, Z.-P. Xu, T. Kraft, O. Gühne
2022. Nature Communications 13.1. DOI: 10.1038/s41467-022-28006-3.

Certifying the Topology of Quantum Networks: Theory and Experiment
L. T.Weinbrenner, N. Prasannan, K. Hansenne, S. Denker, J. Sperling, B. Brecht, C. Silberhorn, O. Gühne
2024. Phys. Rev. Lett. 132.24. American Physical Society. DOI: 10.1103/PhysRevLett.132.240802.

Bound Entanglement from Randomized Measurements
S. Imai, N. Wyderka, A. Ketterer, O. Gühne
2021. Phys. Rev. Lett. 126.15. American Physical Society. DOI: 10.1103/PhysRevLett.126.150501.

Analysing quantum systems with randomised measurements
P. Cieslinski, S. Imai, J. Dziewior, O. Gühne, L. Knips, W. Laskowski, J. Meinecke, T. Paterek, T. Vertesi
2024. Physics Reports 1095. pp. 1
48. DOI: 10.1016/j.physrep.2024.09.009.

Model-Based Testing of Quantum Computations
M. Lochau, I. Schaefer
2024. Tests and Proofs (TAP). Springer. DOI: 10.1007/978-3-031-72044-4_7.

Challenges for Quantum Software Engineering: An Industrial Application Scenario Perspective
C. Carbonelli, M. Felderer, M. Jung, E. Lobe, M. Lochau, S. Luber, W. Mauerer, R. Ramler, I. Schaefer, C. Schroth
2024. Quantum Software: Aspects of Theory and System Design. Springer. DOI: 10.1007/978-3-031-64136-7_12.

HybridTiger: Hybrid Model Checking and Dominationbased Partitioning for Efficient Multi-Goal Test-Suite Generation (Competition Contribution)
S. Ruland, M. Lochau, M. Jakobs
2020. Fundamental Approaches to Software Engineering (FASE). pp. 520
524. Springer. DOI: 10.1007/978-3-030-45234-6_26.

Effective Product-line Testing using Similarity-Based Product Prioritization
M. Al-Hajjaji, T. Thüm, M. Lochau, J. Meinicke, G. Saake
2019. Softw Syst Model 18. pp. 499–521. DOI: 10.1007/s10270-016-0569-2.

Facilitating Reuse in Multi-goal Test-Suite Generation for Software Product Lines
J. Bürdek, M. Lochau, S. Bauregger, A. Holzer, A. von Rhein, S. Apel, D. Beyer
2015. Fundamental Approaches to Software Engineering (FASE). Springer. DOI: 10.1007/978-3-662-46675-9_6.

Contact
Name Title Group E-Mail
Prof. Dr. University Siegen, Group Leader 'Model-based Engineering' malte lochau does-not-exist.uni-siegen de