---
title: "RuntimeSpeQ: Specifying Runtime Monitors for Quantum Programs"
description: "With the growing maturity of quantum computing, robust verification techniques become essential. In this paper, we introduce RuntimeSpeQ: a specification…"
url: https://greencode.ai/publications/runtimespeq-specifying-runtime-monitors-for-quantum-programs/
---

# RuntimeSpeQ: Specifying Runtime Monitors for Quantum Programs

- **Authors:** [Flavio Melinte-Citea](https://orcid.org/0009-0000-2401-6435 "ORCID profile of Flavio Melinte-Citea") , [Mohammad Reza Mousavi](https://orcid.org/0000-0002-4869-6794 "ORCID profile of Mohammad Reza Mousavi")
- **Contributing partner:** [King's College London](https://greencode.ai/partners/king-s-college-london/ "King's College London in GreenCode")
- **Published in:** Proceedings of the 7th IEEE/ACM International Workshop on Quantum Software Engineering
- **Published:** Apr 2026
- **Type:** Conference paper
- **DOI:** [10.1145/3786150.3788610](https://doi.org/10.1145/3786150.3788610)

### Synopsis

With the growing maturity of quantum computing, robust verification techniques become essential. In this paper, we introduce RuntimeSpeQ: a specification language for the runtime behaviour of quantum programs. We then propose a scheme to translate RuntimeSpeQ into runtime monitors, exploiting two types of runtime assertions. We evaluate our approach in terms of fault detection and equivalence checking capabilities as well as reusability of specifications. The results show promising runtime fault detection capabilities, with several faults detected before the final steps of the programs. Our experiments show that our monitors found 40% of faults in erroneous implementations of Quantum Phase Estimation before the final result was checked, and 90% of faults for Grover’s Algorithm. They also show no false negatives in equivalence checking. Also, across four different implementations of one case study, we found that we could reuse the same specification structure by only making minor changes, such as changing the indices pertaining to qubits or execution steps, showing the promise of reusability.

Abstract as published.

 [Download PDF](https://doi.org/10.1145/3786150.3788610) [View at the publisher](https://doi.org/10.1145/3786150.3788610) [All publications](https://greencode.ai/publications/)Cite this work

Melinte-Citea, F., & Mousavi, M. R. (2026). RuntimeSpeQ: Specifying Runtime Monitors for Quantum Programs. Proceedings of the 7th IEEE/ACM International Workshop on Quantum Software Engineering, 42–49. <https://doi.org/10.1145/3786150.3788610>
