Saved in:
Bibliographic Details
Main Authors: Fortunato, Daniel, Campos, José, Abreu, Rui
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2604.26609
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913072807936000
author Fortunato, Daniel
Campos, José
Abreu, Rui
author_facet Fortunato, Daniel
Campos, José
Abreu, Rui
contents 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 of quantum circuits, we introduce probabilistic coverage, which augments structural coverage with a confidence measure (88.87%, 88.65%, and 37.18% for condition, decision, and path coverage, respectively, on average). Finally, through mutation testing, we find weak or no correlation between fault detection and structural coverage, consistent with observations in classical computing.
format Preprint
id arxiv_https___arxiv_org_abs_2604_26609
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Probabilistic Condition, Decision and Path Coverage of Circuit-based Quantum Programs
Fortunato, Daniel
Campos, José
Abreu, Rui
Quantum Physics
Software Engineering
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 of quantum circuits, we introduce probabilistic coverage, which augments structural coverage with a confidence measure (88.87%, 88.65%, and 37.18% for condition, decision, and path coverage, respectively, on average). Finally, through mutation testing, we find weak or no correlation between fault detection and structural coverage, consistent with observations in classical computing.
title Probabilistic Condition, Decision and Path Coverage of Circuit-based Quantum Programs
topic Quantum Physics
Software Engineering
url https://arxiv.org/abs/2604.26609