QSimBench: An Execution-Level Benchmark Suite for Quantum Software Engineering
Project description
QSimBench
An Execution-Level Benchmark Suite for Quantum Software Engineering
Introduction
QSimBench is an open-source Python library and dataset designed to advance Quantum Software Engineering (QSE) through reproducible, scalable, and transparent benchmarking.
Unlike traditional circuit-focused benchmarks, QSimBench provides precomputed, high-volume execution traces — that is, real measured outcomes of running quantum circuits — across a wide range of quantum algorithms, input sizes (number of qubits), and simulation backends (including both idealized and noisy models).
This means you can rigorously test, compare, and develop QSE tools (like workload orchestrators, error mitigation techniques, and monitoring systems) without needing to run thousands of quantum circuits yourself or access costly hardware. QSimBench empowers both research and development by making experiments reproducible and resource-efficient.
Why QSimBench?
- Reproducibility: Get exactly the same experimental data, every time.
- Rich Data: Thousands of outcome batches per configuration; includes not just outcomes, but also the full quantum circuit, noise model, and backend metadata.
- Rapid Prototyping: Skip the heavy cost (and time!) of running large experiments; sample realistic output distributions instantly.
- Transparency & Auditability: Full context for every execution — retrace, analyze, and verify all details.
- Easy to Use: Fetch and sample outcome data with a single Python call.
Installation
pip install qsimbench
Quickstart Example
from qsimbench import get_outcomes
# Sample 2048 outcomes from a QAOA circuit (8 qubits) on the 'aer_simulator' backend
counts = get_outcomes(
algorithm="qaoa",
size=8,
backend="aer_simulator",
shots=2048,
circuit_kind="circuit", # or "mirror"
exact=True, # ensures the output sums **exactly** to 'shots'
strategy="random", # or "sequential"
seed=42 # for reproducibility
)
print(counts) # {'00110101': 96, '10100100': 123, ...}
Main Features
Sampling Execution Outcomes
Retrieve outcome counts for a given algorithm, size, and backend:
from qsimbench import get_outcomes
counts = get_outcomes(
algorithm="qft",
size=14,
backend="fake_fez",
shots=20000,
)
Dataset Exploration
See what is available in the dataset:
from qsimbench import get_index
index = get_index()
print(index)
# {'qaoa': {8: ['aer_simulator', 'fake_fez',...], ...}, ...}
Metadata Access
Access the circuit, noise model, and backend metadata for any configuration:
from qsimbench import get_metadata
metadata = get_metadata("qaoa", 8, "aer_simulator")[0]["metadata"]
print(metadata['circuit']['circuit']) # OpenQASM code string
print(metadata[0]['backend']) # Detailed backend configurations and noise description
Available Data (July 2025)
QSimBench provides high-volume execution data for a variety of quantum algorithms, input sizes, and backends. For each (algorithm, size, backend) combination, QSimBench has currenlty gathered 20,000 unique real outcomes (by 50 shots batches). These batches can be sampled either sequentially or randomly — supporting both streaming and i.i.d. experimental scenarios, and can be reused indefinitely to simulate an infinite number of shots.
Below is a snapshot of available data:
Algorithm: dj
Size: 4-15 → Backends: ['aer_simulator', 'fake_fez', 'fake_kyiv', 'fake_marrakesh', 'fake_sherbrooke', 'fake_torino']
Algorithm: ghz
Size: 4-15 → Backends: ['aer_simulator', 'fake_fez', 'fake_kyiv', 'fake_marrakesh', 'fake_sherbrooke', 'fake_torino']
Algorithm: qaoa
Size: 4-15 → Backends: ['aer_simulator', 'fake_fez', 'fake_kyiv', 'fake_marrakesh', 'fake_sherbrooke', 'fake_torino']
Algorithm: qft
Size: 4-15 → Backends: ['aer_simulator', 'fake_fez', 'fake_kyiv', 'fake_marrakesh', 'fake_sherbrooke', 'fake_torino']
Algorithm: qnn
Size: 4-15 → Backends: ['aer_simulator', 'fake_fez', 'fake_kyiv', 'fake_marrakesh', 'fake_sherbrooke', 'fake_torino']
Algorithm: qpeexact
Size: 4-15 → Backends: ['aer_simulator', 'fake_fez', 'fake_kyiv', 'fake_marrakesh', 'fake_sherbrooke', 'fake_torino']
Algorithm: random
Size: 4-15 → Backends: ['aer_simulator', 'fake_fez', 'fake_kyiv', 'fake_marrakesh', 'fake_sherbrooke', 'fake_torino']
Algorithm: realamprandom
Size: 4-15 → Backends: ['aer_simulator', 'fake_fez', 'fake_kyiv', 'fake_marrakesh', 'fake_sherbrooke', 'fake_torino']
Algorithm: grover-noancilla
Size: 4-9 → Backends: ['aer_simulator', 'fake_fez', 'fake_kyiv', 'fake_marrakesh', 'fake_sherbrooke', 'fake_torino']
Algorithm: su2random
Size: 4-15 → Backends: ['aer_simulator', 'fake_fez', 'fake_kyiv', 'fake_marrakesh', 'fake_sherbrooke', 'fake_torino']
Algorithm: twolocalrandom
Size: 4-15 → Backends: ['aer_simulator', 'fake_fez', 'fake_kyiv', 'fake_marrakesh', 'fake_sherbrooke', 'fake_torino']
Algorithm: vqe
Size: 4-15 → Backends: ['aer_simulator', 'fake_fez', 'fake_kyiv', 'fake_marrakesh', 'fake_sherbrooke', 'fake_torino']
Algorithm: wstate
Size: 4-15 → Backends: ['aer_simulator', 'fake_fez', 'fake_kyiv', 'fake_marrakesh', 'fake_sherbrooke', 'fake_torino']
For each trace, you can sample any number of shots from the 20,000 pre-collected real batches, with QSimBench reusing these in a loop or at random as needed to simulate arbitrarily large experiments.
API Reference
get_outcomes(...)
Sample quantum execution results for a chosen algorithm, problem size, backend, and shot count.
- algorithm: Name of the quantum algorithm (e.g.,
"qaoa","qft"). - size: Number of qubits (positive integer).
- backend: Backend or simulator name.
- shots: Number of measurement outcomes to sample.
- circuit_kind:
"circuit"(standard) or"mirror"(mirror circuit). - exact: If
True, total output equalsshots(using multinomial sampling). - strategy:
"sequential"(next batch) or"random"(random batch). - seed: Integer seed for reproducibility.
get_index(...)
Lists all available algorithms, sizes, and backends in the dataset.
- circuit_kind:
"circuit"or"mirror". - by_backend: If
True, groups by backend instead of algorithm.
get_metadata(...)
Fetches the circuit, backend, and noise model metadata for a given configuration.
Dataset Architecture
Each (algorithm, size, backend) combination in QSimBench is backed by thousands of raw outcome batches (50 shots each), fully indexed and ready for fast sampling and analysis. All raw data is cached locally to avoid repeated downloads. The library handles all caching and networking for you.
When Should You Use QSimBench?
- Developing or comparing quantum software engineering tools (error mitigation, schedulers, monitors, etc.)
- Benchmarking quantum circuit execution under realistic noise models
- Building reproducible experiments without running on real hardware
- Rapid prototyping or teaching with quantum measurement data
How Does QSimBench Differ from Other Benchmarks?
- Other quantum benchmarks focus on circuit definitions; QSimBench delivers reproducible, real-world measurement outcomes — the data your QSE tools actually operate on.
- You can instantly reproduce or extend published experiments — no more re-running expensive or non-deterministic jobs.
- Full metadata (circuits, noise models, configs) enables transparency and in-depth research.
Citing QSimBench
If you use QSimBench in your research, please cite:
Bisicchia, G., et al. "QSimBench: An Execution-Level Benchmark Suite for Quantum Software Engineering". 2025 IEEE International Conference on Quantum Computing and Engineering (QCE), 2025.
@inproceedings{bisicchia2025qsimbench,
title={QSimBench: An Execution-Level Benchmark Suite for Quantum Software Engineering},
author={Bisicchia, Giuseppe and Bocci, Alessandro and Garc{\'\i}a-Alonso, Jos{\'e} and Murillo, Juan M and Brogi, Antonio},
booktitle={2025 IEEE International Conference on Quantum Computing and Engineering (QCE)},
year={2025},
}
License
Get Involved
Issues and pull requests are welcome! For questions, feature requests, or to report bugs, please open an issue.
QSimBench: Making quantum experiments reproducible, scalable, and fair.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qsimbench-0.1.0.tar.gz.
File metadata
- Download URL: qsimbench-0.1.0.tar.gz
- Upload date:
- Size: 43.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
433c0e0f1c381f856e0e219c350996ba3345d6b97745244f3f21f6fd833f9cc5
|
|
| MD5 |
9a02980f3fe453485e1c763a603644ca
|
|
| BLAKE2b-256 |
e2d468b4eaf73de1d0dcb7ecfb716111f48bfaf96970367a4575e8530f352795
|
File details
Details for the file qsimbench-0.1.0-py3-none-any.whl.
File metadata
- Download URL: qsimbench-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7f4795ea669a331ba0d5bef408d1897be633babaa3c7a8c8ba726adf30b0046
|
|
| MD5 |
c4985a092ccd5d7e0efc73294e6bc536
|
|
| BLAKE2b-256 |
88356d40df925382b193b62b5c0bec7ac1b190aaef823225d1538a8a2dd0fb25
|