https://github.com/munich-quantum-toolkit/bench
MQT Bench - A MQT Tool for Benchmarking Quantum Software Tools
https://github.com/munich-quantum-toolkit/bench
benchmarking performance-testing quantum-circuits quantum-computing
Last synced: 7 months ago
JSON representation
MQT Bench - A MQT Tool for Benchmarking Quantum Software Tools
- Host: GitHub
- URL: https://github.com/munich-quantum-toolkit/bench
- Owner: munich-quantum-toolkit
- License: mit
- Created: 2021-11-05T15:08:50.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-05-10T07:22:15.000Z (8 months ago)
- Last Synced: 2025-05-10T21:47:13.786Z (8 months ago)
- Topics: benchmarking, performance-testing, quantum-circuits, quantum-computing
- Language: Python
- Homepage: https://www.cda.cit.tum.de/mqtbench/
- Size: 10.8 MB
- Stars: 87
- Watchers: 4
- Forks: 20
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Contributing: .github/contributing.rst
- License: LICENSE.md
- Citation: CITATION.bib
- Support: .github/support.rst
Awesome Lists containing this project
README
[](https://pypi.org/project/mqt.bench/)

[](https://opensource.org/licenses/MIT)
[](https://github.com/munich-quantum-toolkit/bench/actions/workflows/ci.yml)
[](https://github.com/munich-quantum-toolkit/bench/actions/workflows/cd.yml)
[](https://mqt.readthedocs.io/projects/bench)
[](https://codecov.io/gh/munich-quantum-toolkit/bench)
# 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 part of the [_Munich Quantum Toolkit_ (_MQT_)](https://mqt.readthedocs.io) [^1] and is hosted at [https://www.cda.cit.tum.de/mqtbench/](https://www.cda.cit.tum.de/mqtbench/).
If you have any questions, feel free to create a [discussion](https://github.com/munich-quantum-toolkit/bench/discussions) or an [issue](https://github.com/munich-quantum-toolkit/bench/issues) on [GitHub](https://github.com/munich-quantum-toolkit/bench).
[
](https://www.cda.cit.tum.de/mqtbench)
## Getting Started
`mqt-bench` is available via [PyPI](https://pypi.org/project/mqt.bench/).
```console
(venv) $ pip install mqt.bench
```
The following code gives an example on the usage:
```python3
from mqt.bench import get_benchmark
# get a benchmark circuit on algorithmic level representing the GHZ state with 5 qubits
qc_algorithmic_level = get_benchmark(benchmark_name="ghz", level="alg", circuit_size=5)
# draw the circuit
print(qc_algorithmic_level.draw())
```
**Detailed documentation and examples are available at [ReadTheDocs](https://mqt.readthedocs.io/projects/bench).**
## Availability as a PennyLane Dataset
MQT Bench is also available as a [PennyLane dataset](https://pennylane.ai/datasets/single-dataset/mqt-bench).
## References
In case you are using MQT Bench in your work, we would be thankful if you referred to it by citing the following publication:
```bibtex
@article{quetschlich2023mqtbench,
title = {{{MQT Bench}}: {Benchmarking Software and Design Automation Tools for Quantum Computing}},
shorttitle = {{MQT Bench}},
journal = {{Quantum}},
author = {Quetschlich, Nils and Burgholzer, Lukas and Wille, Robert},
year = {2023},
doi = {10.22331/q-2023-07-20-1062},
eprint = {2204.13719},
primaryclass = {quant-ph},
archiveprefix = {arxiv},
note = {{{MQT Bench}} is available at \url{https://www.cda.cit.tum.de/mqtbench/}},
}
```
[^1]: The _[Munich Quantum Toolkit (MQT)](https://mqt.readthedocs.io)_ is a collection of software tools for quantum computing developed by the [Chair for Design Automation](https://www.cda.cit.tum.de/) at the [Technical University of Munich](https://www.tum.de/) as well as the [Munich Quantum Software Company (MQSC)](https://munichquantum.software).
## Acknowledgements
This project received funding from the European Research Council (ERC) under the European
Union's Horizon 2020 research and innovation program (grant agreement No. 101001318), was
part of the Munich Quantum Valley, which is supported by the Bavarian state government with
funds from the Hightech Agenda Bayern Plus, and has been supported by the BMWK on the basis
of a decision by the German Bundestag through project QuaST, as well as by the BMK, BMDW,
and the State of Upper Austria in the frame of the COMET program (managed by the FFG).