Search arXiv⌕ Search

arXiv subjects

Era Thaqi

Publications and source records attributed to Era Thaqi.

3 recordsLinked to original sources

Quantum Debugging in Action: Statistical and State Vector Assertions

Debugging quantum programs presents fundamentally different challenges from classical debugging: quantum systems have exponentially large state spaces, and measuring a quantum state collapses it. Our assertion-based approach provides debugging support despite these constraints, and we implement it in NVIDIA CUDA-Q, which has recently gained rapid adoption due to its GPU-accelerated simulation and hardware integration capabilities. This tool, QDB3, provides a Python assertions library that extends prior work in sampling-based assertions with state vector assertions that directly inspect simulated amplitudes. We demonstrate the complementary usage of both assertion forms in a set of teaching examples, including deterministic, variational, and other circuit types.

quant-ph↗

Shot Allocation Strategies in Debugging Quantum Circuits

Debugging quantum programs remains challenging due to the nature of quantum measurement. As quantum algorithms and systems scale, it is increasingly crucial to develop rigorous debugging and verification approaches. Statistical assertion-based debugging validates quantum program behavior through repeated circuit execution and statistical hypothesis testing, but existing frameworks treat shot count as a fixed input parameter, leaving the problem of optimal shot allocation across multiple mid-circuit assertions unexplored. To improve debugging efficiency by making better use of given shot counts, this paper proposes and evaluates four shot allocation strategies within the QDB quantum debugger implemented within the CUDA-Q framework. These allocation approaches: equal split, static weight allocation, adaptive entropy routing, and sequential retirement, use statistical approaches to test whether qubits have expected state characteristics at different points in execution. We evaluate these allocation strategies on different circuits, under both noise-free and depolarizing noise conditions. We show how adaptive strategies use shots efficiently by concentrating them on assertions with high uncertainty. This substantially reduces total shot usage while maintaining comparable debugging confidence.

quant-ph↗

Symbolic Timing Analysis of Digital Circuits Using Analytic Delay Functions

We propose a novel approach to symbolic timing analysis for digital integrated circuits based on recently developed analytic delay formulas for 2-input NOR, NAND, and Muller-C gates by Ferdowsi et al. (NAHS 2025). Given a fixed order of the transitions of all input and internal signals of a circuit, our framework computes closed-form analytic delay expressions for all the internal signal transition times that depend on (i) the symbolic transition times of the relevant input signals and (ii) the model parameters of the relevant gates. The resulting formulas facilitate per-transition timing analysis without any simulation, by instantiating the symbolic input transition times and the gate parameters. More importantly, however, they also enable an \emph{analytic} study of the dependencies of certain timing properties on input signals and gate parameters. For instance, differentiating a symbolic delay expression with respect to a gate parameter or input transition time enables sensitivity analysis. As a proof of concept, we implement our approach using the computer algebra system SageMath and apply it to the NOR-gate version of the c17 slack benchmark circuit.

cs.AR↗