IEEE CHILEAN Conference on Electrical, Electronics Engineering, Information and Communication Technologies (CHILECON)
qWard: A Unified Toolkit for Pre- and Post-Runtime Quantum Circuit Metrics
Carmen Márquez, Daniel Sierra-Sosa, Kelly Garcés
Abstract
As quantum computing (QC) matures towards practical applications, effective methods to evaluate quantum algorithms, circuits, and execution quality in quantum software are gaining more relevance. To apply such methods, a set of meaningful metrics must be defined, understood, calculated, and applied. In an effort to solve that problem, this paper categorizes quantum related metrics into pre-runtime (derived from the static analysis of circuits before execution) and post-runtime (derived from the analysis of execution results). It is worthwhile to mention that while popular quantum SDKs such as Qiskit, PennyLane, and Q\# offer some circuit characteristics, there is often a gap between these native capabilities and the broader set of insightful pre- and post-runtime metrics in the literature. This paper introduces$\boldsymbol{q}$Ward, a Python library developed to bridge this gap by offering an initial implementation for the Qiskit SDK. qWard provides a toolkit designed to compute and visualize key pre-runtime and post-runtime metrics, facilitating the analysis of quantum algorithms. To illustrate its application, an experiment using a bell state circuit is conducted, which includes different backend configurations within the simulator as well as its execution on the IBM “torino” quantum processor. It is important to note that the initial version of qWard is limited to the Qiskit SDK and the Qiskit AER simulator.