27
Qiskit Inspect offers production-ready debugging, tracing, and analysis tools for Qiskit, enhancing the capabilities of Qiskit v2.0+ with practical features. This tool is designed to assist practitioners in debugging classical control flow, validating sampler output against exact statevectors, and ensuring robust tests for production quantum applications.
Deterministic Debugging: Step through instructions with full statevector snapshots, classical bit snapshots, and support for control-flow constructs such as IfElseOp, loops, and SwitchCaseOp.
Prefix Analytics: Compute exact probabilities, sampler-backed probabilities, counts, marginals, expectation values, Shannon entropies, divergences, and total-variation distances for every prefix of a circuit.
Testing Confidence: Assertion helpers compare counts, probabilities, and statevectors with configurable tolerances for noisy hardware.
Operational Insights: CSV/JSON export, pandas integration, ASCII/Matplotlib histograms, and structured trace logging make it simple to observe and share what your primitives are doing.
Qiskit Inspect is open source and licensed under the Apache License 2.0, making it a valuable resource for developers working with quantum circuits.
Built with