Probabilistic Condition, Decision and Path Coverage of Circuit-based Quantum Programs
Daniel Fortunato, Jos\'e Campos, Rui Abreu

TL;DR
This paper introduces quantum-specific coverage criteria and a tool for quantum programs, evaluating their effectiveness and revealing insights into coverage limitations and probabilistic aspects.
Contribution
It proposes six quantum-tailored coverage criteria, implements them in QaCoCo, and provides an empirical analysis of their effectiveness on diverse quantum circuits.
Findings
High condition and decision coverage achieved (over 97%)
Limited path coverage (around 72%) especially with multi-controlled gates
Probabilistic coverage measures provide additional confidence levels
Abstract
Coverage criteria play a central role in assessing test adequacy in classical software, yet their effectiveness for quantum programs remains poorly understood and largely unexplored. In this paper, we propose six quantum-tailored criteria - condition, decision, and path coverage, and their probabilistic variants - adapted from their classical counterparts. We present QaCoCo, a tool that computes these criteria for circuit-based quantum programs. We empirically evaluate these criteria on a large and diverse set of 540 circuits and analyze the coverage achieved. Our results show that while circuits frequently achieve high condition and decision coverage (97.56% and 97.63%, on average), path coverage remains limited (71.84%), particularly in the presence of multi-controlled gates, which induce extreme path explosion and coverage imbalance. Moreover, to account for the probabilistic nature…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
