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

Members: Prof. Dr. Malte Lochau (University Siegen), Prof. Dr. Otfried Gühne (University Siegen), Adrián Marín Boyero (University Siegen), Fynn Otto (University Siegen), Albert Rico (University Siegen)

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.

 

Witness expansion: A unified framework for analytical and measurable mixed-state resource detection
Y. Tang, C. Zhu, Y. Zhang, J. Eisert, Z.-W. Liu, I. Roth, O. Gühne, X. Wang, and Z. Liu
2026, arXiv. DOI: 10.48550/ARXIV.2606.27105.

Complete Hierarchies for the Geometric Measure of Entanglement
L. T. Weinbrenner, A. Rico, K. Goodenough, X.-D. Yu, and O. Gühne
2026, arXiv. DOI: 10.48550/ARXIV.2601.23243.

Device-independent quantum memory certification in two-point measurement experiments
L. S. V. Santos, P. Tirler, M. Meth, L. Gerster, M. John, K. Pareek, T. Gollerthan, M. Ringbauer, and O. Gühne
2026, arXiv. DOI: 10.48550/ARXIV.2601.14191.

Witnesses and Counterexamples for Timed Bisimulation
A. Lieb and M. Lochau
2026, arXiv. DOI: 10.48550/ARXIV.2606.16736.

Robust certification of high-dimensional quantum devices
J. Fernández, A. Rico, D. Viedma, E. A. Ortega, V. Pruneri, A. Vallés, V. Ahufinger, A. Sanpera, and S. S. Bhattacharya
2026, arXiv. DOI: 10.48550/ARXIV.2605.04338.

Model-Based Testing of Quantum Computations
M. Lochau and I. Schaefer
2025, in Tests and Proofs, vol. 15153, M. Huisman and F. Howar, Eds., in Lecture Notes in Computer Science, vol. 15153. , Cham: Springer Nature Switzerland, pp. 127–147. DOI: 10.1007/978-3-031-72044-4_7.

Qubits in second quantisation in fermionic simulators
A. Ghoshal, C. de Gois, K. Hansenne, O. Gühne, and H.-C. Nguyen
2025, arXiv. DOI: 10.48550/ARXIV.2512.11726.

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.

Analysing quantum systems with randomised measurements
P. Cieśliński, S. Imai, J. Dziewior, O. Gühne, L. Knips, W. Laskowski, J. Meinecke, T. Paterek, and T. Vértesi
2024, Physics Reports, vol. 1095, pp. 1–48, DOI: 10.1016/j.physrep.2024.09.009.

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

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, and C. Schroth
2024, in Quantum Software, I. Exman, R. Pérez-Castillo, M. Piattini, and M. Felderer, Eds., Cham: Springer Nature Switzerland, pp. 311–335. DOI: 10.1007/978-3-031-64136-7_12.

Symmetries in quantum networks lead to no-go theorems for entanglement distribution and to verification techniques
K. Hansenne, Z.-P. Xu, T. Kraft, and O. Gühne
2022, Nat Commun, vol. 13, no. 1, p. 496, DOI: 10.1038/s41467-022-28006-3.

Bound Entanglement from Randomized Measurements
S. Imai, N. Wyderka, A. Ketterer, and O. Gühne
2021, Phys. Rev. Lett., vol. 126, no. 15, p. 150501, DOI: 10.1103/PhysRevLett.126.150501.

HybridTiger: Hybrid Model Checking and Domination-based Partitioning for Efficient Multi-Goal Test-Suite Generation (Competition Contribution)
S. Ruland, M. Lochau, and M.-C. Jakobs
2020, in Fundamental Approaches to Software Engineering, vol. 12076, H. Wehrheim and J. Cabot, Eds., in Lecture Notes in Computer Science, vol. 12076. , Cham: Springer International Publishing, pp. 520–524. 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, and G. Saake
2019, Softw Syst Model, vol. 18, no. 1, 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, and D. Beyer
2015, in Fundamental Approaches to Software Engineering, vol. 9033, A. Egyed and I. Schaefer, Eds., in Lecture Notes in Computer Science, vol. 9033. , Berlin, Heidelberg: Springer Berlin Heidelberg, pp. 84–99. DOI: 10.1007/978-3-662-46675-9_6.

Entanglement detection
O. Gühne and G. Tóth
2009, Physics Reports, vol. 474, no. 1–6, pp. 1–75, DOI: 10.1016/j.physrep.2009.02.004.

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