MQT Bench - A MQT tool for Benchmarking Quantum Software Tools
Project description
MQT Bench - Benchmarking Software and Design Automation Tools for Quantum Computing
MQT Bench is a quantum circuit benchmark suite with cross-level support, i.e., providing the same benchmark algorithms for different abstraction levels throughout the quantum computing software stack. MQT Bench is hosted at https://www.cda.cit.tum.de/mqtbench/. It is part of the Munich Quantum Toolkit (MQT).
Key Features
- Comprehensive Quantum Benchmark Suite: Provides a wide range of quantum circuit benchmarks, including algorithms such as GHZ, QAOA, QFT, Grover, Shor, and many more. List of benchmarks
- Cross-Level Benchmark Generation: Supports four abstraction levels—algorithmic, target-independent, target-dependent native gates, and target-dependent mapped—enabling benchmarking across the entire quantum software stack. Abstraction levels
- Flexible Target and Gateset Support: Generate circuits for various hardware targets and native gatesets, including IBM, IonQ, Quantinuum, Rigetti, and more. Supported devices and gatesets
- Python API, CLI, and Web Interface: Use MQT Bench programmatically via Python, from the command line, or through an interactive web interface—whichever fits your workflow. Usage guide
- Parameterized and Mirror Circuits: Easily generate parameterized circuits (with random or symbolic parameters) and mirror circuits for robust benchmarking and error detection. Quickstart
- Export to Standard Formats: Save generated circuits in OpenQASM 2, OpenQASM 3, and QPY formats for compatibility with other quantum tools. Output formats
- Extensible and Open Source: Actively maintained, fully open-source, and designed for easy integration and extension within the quantum computing community.
If you have any questions, feel free to create a discussion or an issue on GitHub.
Contributors and Supporters
The Munich Quantum Toolkit (MQT) is developed by the Chair for Design Automation at the Technical University of Munich and supported by the Munich Quantum Software Company (MQSC). Among others, it is part of the Munich Quantum Software Stack (MQSS) ecosystem, which is being developed as part of the Munich Quantum Valley (MQV) initiative.
Thank you to all the contributors who have helped make MQT Bench a reality!
The MQT will remain free, open-source, and permissively licensed—now and in the future. We are firmly committed to keeping it open and actively maintained for the quantum computing community.
To support this endeavor, please consider:
- Starring and sharing our repositories: https://github.com/munich-quantum-toolkit
- Contributing code, documentation, tests, or examples via issues and pull requests
- Citing the MQT in your publications (see Cite This)
- Citing our research in your publications (see References)
- Using the MQT in research and teaching, and sharing feedback and use cases
- Sponsoring us on GitHub: https://github.com/sponsors/munich-quantum-toolkit
Getting Started
mqt.bench is available via PyPI.
(.venv) $ pip install mqt.bench
The following code gives an example on the usage:
from mqt.bench import BenchmarkLevel, get_benchmark
# Get a benchmark circuit on algorithmic level representing the GHZ state with 5 qubits
qc_algorithmic_level = get_benchmark(
benchmark="ghz", level=BenchmarkLevel.ALG, circuit_size=5
)
# Draw the circuit
print(qc_algorithmic_level.draw())
[!NOTE] MQT Bench is also available as a PennyLane dataset.
Detailed documentation and examples are available at ReadTheDocs.
System Requirements
MQT Bench can be installed on all major operating systems with all officially supported Python versions. Building (and running) is continuously tested under Linux, macOS, and Windows using the latest available system versions for GitHub Actions.
Cite This
Please cite the work that best fits your use case.
MQT Bench (the tool)
When citing the software itself or results produced with it, cite the MQT Bench paper:
@article{quetschlich2023mqtbench,
title = {{{MQT Bench}}: {Benchmarking Software and Design Automation Tools for Quantum Computing}},
shorttitle = {{MQT Bench}},
author = {Quetschlich, Nils and Burgholzer, Lukas and Wille, Robert},
year = {2023},
journal = {{Quantum}},
volume = {7},
pages = {1062},
doi = {10.22331/q-2023-07-20-1062},
note = {{{MQT Bench}} is available at \url{https://www.cda.cit.tum.de/mqtbench/}},
eprint = {2204.13719},
eprinttype = {arxiv}
}
The Munich Quantum Toolkit (the project)
When discussing the overall MQT project or its ecosystem, cite the MQT Handbook:
@inproceedings{mqt,
title = {The {{MQT}} Handbook: {{A}} Summary of Design Automation Tools and Software for Quantum Computing},
shorttitle = {{The MQT Handbook}},
author = {Wille, Robert and Berent, Lucas and Forster, Tobias and Kunasaikaran, Jagatheesan and Mato, Kevin and Peham, Tom and Quetschlich, Nils and Rovara, Damian and Sander, Aaron and Schmid, Ludwig and Schoenberger, Daniel and Stade, Yannick and Burgholzer, Lukas},
year = 2024,
booktitle = {IEEE International Conference on Quantum Software (QSW)},
doi = {10.1109/QSW62656.2024.00013},
eprint = {2405.17543},
eprinttype = {arxiv},
addendum = {A live version of this document is available at \url{https://mqt.readthedocs.io}}
}
Acknowledgements
The Munich Quantum Toolkit has been supported by the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation program (grant agreement No. 101001318), the Bavarian State Ministry for Science and Arts through the Distinguished Professorship Program, as well as the Munich Quantum Valley, which is supported by the Bavarian state government with funds from the Hightech Agenda Bayern Plus.
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 mqt_bench-2.1.0.tar.gz.
File metadata
- Download URL: mqt_bench-2.1.0.tar.gz
- Upload date:
- Size: 871.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e239241ca39ded20f1c4ee6dcc952e61da5d2401818139297fd09d8b765c3b1b
|
|
| MD5 |
f5742ce1169491d5abebbb8c6e81d982
|
|
| BLAKE2b-256 |
1aef9ef57bc77da12454b4d1316af19a639202ccf1c1b650a0eea3530edece6f
|
Provenance
The following attestation bundles were made for mqt_bench-2.1.0.tar.gz:
Publisher:
cd.yml on munich-quantum-toolkit/bench
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mqt_bench-2.1.0.tar.gz -
Subject digest:
e239241ca39ded20f1c4ee6dcc952e61da5d2401818139297fd09d8b765c3b1b - Sigstore transparency entry: 621666754
- Sigstore integration time:
-
Permalink:
munich-quantum-toolkit/bench@381e0a4fa9d11b1c8a46c4c6af7bb4b609749852 -
Branch / Tag:
refs/tags/v2.1.0 - Owner: https://github.com/munich-quantum-toolkit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@381e0a4fa9d11b1c8a46c4c6af7bb4b609749852 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mqt_bench-2.1.0-py3-none-any.whl.
File metadata
- Download URL: mqt_bench-2.1.0-py3-none-any.whl
- Upload date:
- Size: 72.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ad15e9153af3396dd3fd7f1c1dcbf651aa8c2597ba924821c65c551b6ce7b2f
|
|
| MD5 |
71e44c200158a2613142b875dcc7deb2
|
|
| BLAKE2b-256 |
5d37b503f6d4118f22d705864cb42dc159a72cd733cd6a503ff8b5754fc17b07
|
Provenance
The following attestation bundles were made for mqt_bench-2.1.0-py3-none-any.whl:
Publisher:
cd.yml on munich-quantum-toolkit/bench
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mqt_bench-2.1.0-py3-none-any.whl -
Subject digest:
2ad15e9153af3396dd3fd7f1c1dcbf651aa8c2597ba924821c65c551b6ce7b2f - Sigstore transparency entry: 621666758
- Sigstore integration time:
-
Permalink:
munich-quantum-toolkit/bench@381e0a4fa9d11b1c8a46c4c6af7bb4b609749852 -
Branch / Tag:
refs/tags/v2.1.0 - Owner: https://github.com/munich-quantum-toolkit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@381e0a4fa9d11b1c8a46c4c6af7bb4b609749852 -
Trigger Event:
release
-
Statement type: