A Framework for the Efficient Evaluation of Runtime Assertions on Quantum Computers

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Rovara, Damian, Burgholzer, Lukas, Wille, Robert
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866916723408502784
author Rovara, Damian
Burgholzer, Lukas
Wille, Robert
author_facet Rovara, Damian
Burgholzer, Lukas
Wille, Robert
contents The continuous growth of quantum computing and the increasingly complex quantum programs resulting from it lead to unprecedented obstacles in ensuring program correctness. Runtime assertions are, therefore, becoming a crucial tool in the development of quantum programs. They assist developers in the debugging process and help to test and verify the program. However, while assertions can be implemented in a straightforward manner on classical computers, physical limitations of quantum computers pose considerable challenges for the evaluation of quantum assertions. Access to the quantum state of a program is limited, execution time is expensive and noise can significantly distort measurement outcomes. To address these problems, this work proposes a framework that assists developers in the evaluation of runtime assertions on real quantum computers. It translates a variety of assertions into sets of measurements, reduces execution overhead where possible and evaluates the measurement results after the execution even in the presence of noise. This approach substantially aids developers in the debugging process, enabling efficient assertion-driven debugging even in large programs. The proposed framework is available as an open-source implementation at https://github.com/munich-quantum-toolkit/debugger
format Preprint
id arxiv_https___arxiv_org_abs_2505_03885
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle A Framework for the Efficient Evaluation of Runtime Assertions on Quantum Computers
Rovara, Damian
Burgholzer, Lukas
Wille, Robert
Quantum Physics
The continuous growth of quantum computing and the increasingly complex quantum programs resulting from it lead to unprecedented obstacles in ensuring program correctness. Runtime assertions are, therefore, becoming a crucial tool in the development of quantum programs. They assist developers in the debugging process and help to test and verify the program. However, while assertions can be implemented in a straightforward manner on classical computers, physical limitations of quantum computers pose considerable challenges for the evaluation of quantum assertions. Access to the quantum state of a program is limited, execution time is expensive and noise can significantly distort measurement outcomes. To address these problems, this work proposes a framework that assists developers in the evaluation of runtime assertions on real quantum computers. It translates a variety of assertions into sets of measurements, reduces execution overhead where possible and evaluates the measurement results after the execution even in the presence of noise. This approach substantially aids developers in the debugging process, enabling efficient assertion-driven debugging even in large programs. The proposed framework is available as an open-source implementation at https://github.com/munich-quantum-toolkit/debugger
title A Framework for the Efficient Evaluation of Runtime Assertions on Quantum Computers
topic Quantum Physics
url https://arxiv.org/abs/2505.03885