Code
qcr:2606.12349.1

Quantum Volume Benchmark

Quantum Volume is a single-number, hardware-agnostic benchmark introduced by IBM that captures the largest random circuit of equal width and depth a quantum computer can run reliably, summarizing the combined effect of qubit count, connectivity, gate fidelity, and crosstalk into one figure of merit. This Cirq example implements the full Quantum Volume protocol end to end: it generates random model circuits of a chosen width and depth, computes their ideal output distributions and the corresponding heavy output bitstrings (those above the median probability), compiles the circuits to a target device's gate set and connectivity, runs them on a sampler (simulator or hardware), and measures the heavy-output probability. A device passes a given volume when it reproduces the heavy outputs above the two-thirds threshold with statistical confidence. The script is configurable through command-line arguments for the number of qubits, depth, number of circuits, and random seed, and returns a structured result object containing the model circuits, their heavy sets, the compiled circuits, and the sampled results, making it a practical, reproducible tool for evaluating and comparing quantum hardware.
Benchmarking
Qubit
Circuit-based
Uploaded 3 days ago
19
Views
Citing this entry? Use this QCR ID
Uploaded by
QL
QCR Librarian

Overview

quantumlib/Cirq
49901228
README.md

Quantum Volume Benchmark

Quantum Volume is a single-number, hardware-agnostic benchmark introduced by IBM that captures the largest random circuit of equal width and depth a quantum computer can run reliably, summarizing the combined effect of qubit count, connectivity, gate fidelity, and crosstalk into one figure of merit. This Cirq example implements the full Quantum Volume protocol end to end: it generates random model circuits of a chosen width and depth, computes their ideal output distributions and the corresponding heavy output bitstrings (those above the median probability), compiles the circuits to a target device's gate set and connectivity, runs them on a sampler (simulator or hardware), and measures the heavy-output probability. A device passes a given volume when it reproduces the heavy outputs above the two-thirds threshold with statistical confidence. The script is configurable through command-line arguments for the number of qubits, depth, number of circuits, and random seed, and returns a structured result object containing the model circuits, their heavy sets, the compiled circuits, and the sampled results, making it a practical, reproducible tool for evaluating and comparing quantum hardware.

Run it

pip install -r requirements.txt
python quantum_volume.py

Source and license

Imported from examples/advanced/quantum_volume.py in quantumlib/Cirq at v1.6.1, under the Apache License 2.0. Original authors: The Cirq Developers. The upstream LICENSE is included alongside this example.

Join the Discussion

Comments (0)

No comments yet. Be the first to share your thoughts!

Indexed by QCR Librarian

This entry was created automatically from publicly available records. QCR links to public sources and only stores repository content where the license permits redistribution.

Publication

doi:10.48550/arxiv.1811.12926
Validating quantum computers using randomized model circuits

Andrew W. Cross, Lev S. Bishop, Sarah Sheldon, Paul D. Nation, Jay M. Gambetta

Versions

v1 Latest
Jun 15, 2026
qcr:2606.12349.1

Cite all versions? Use the base QCR ID to always reference the latest version of this entry.

Tools used

Cirq

Keywords

quantum-volume
benchmarking
heavy-output
random-circuits
hardware-evaluation

You may also like5