This project has been archived by its maintainers, and is no longer receiving any updates.
⚠️ Warning ⚠️
MQT QAO is no longer being developed and has been archived as of July 2026.
MQT Quantum Auto Optimizer: Automatic Framework for Solving Optimization Problems with Quantum Computers
MQT Quantum Auto Optimizer is a framework that allows one to automatically translate an optimization problem into a quantum-compliant formulation and to solve it with one of the main quantum solvers (Quantum Annealer, Quantum Approximate Optimization Algorithm, Variational Quantum Eigensolver and Grover Adaptive Search)
MQT Quantum Auto Optimizer is part of the Munich Quantum Toolkit (MQT) developed by the Chair for Design Automation at the Technical University of Munich. This framework has been developed in collaboration with the VLSI Lab of Politecnico di Torino.
If you have any questions, feel free to create a discussion or an issue on GitHub.
Getting Started
mqt-qao is available via PyPI.
(venv) $ pip install mqt.qao
The following code gives an example on the usage:
from mqt.qao import Constraints, ObjectiveFunction, Problem, Solver, Variables
# Declaration of the problem variables
var = Variables()
a = var.add_binary_variable("a")
b = var.add_discrete_variable("b", [-1, 1, 3])
c = var.add_continuous_variable("c", -2, 2, 0.25)
# declaration of the objective functions involved in the problem
obj_func = ObjectiveFunction()
obj_func.add_objective_function(a + b * c + c**2)
# Declaration of the constraints
cst = Constraints()
cst.add_constraint("b + c >= 2", variable_precision=True)
# Creation of the problem
prb = Problem()
prb.create_problem(var, cst, obj_func)
# Solve the problem with the Dwave Quantum Annealer
solution = Solver().solve_Dwave_quantum_annealer(prb, token=token)
Detailed documentation and examples are available at ReadTheDocs.
References
In case you are using the MQT Quantum Auto Optimizer in your work, we would be thankful if you referred to it by citing the following publications:
@INPROCEEDINGS{volpe2024towards,
AUTHOR = {D. Volpe and N. Quetschlich and M. Graziano and G. Turvani and R. Wille},
TITLE = {{Towards an Automatic Framework for Solving Optimization Problems with Quantum Computers}},
YEAR = {2024},
BOOKTITLE = {IEEE International Conference on Quantum Software (QSW)},
EPRINT = {2406.12840},
PRIMARYCLASS = {quant-ph},
ARCHIVEPREXIX = {arxiv},
}
@INPROCEEDINGS{volpe2024predictive,
AUTHOR = {D. Volpe and N. Quetschlich and M. Graziano and G. Turvani and R. Wille},
TITLE = {{A Predictive Approach for Selecting the Best Quantum Solver for an Optimization Problem}},
YEAR = {2024},
BOOKTITLE = {IEEE International Conference on Quantum Computing and Engineering (QCE)},
EPRINT = {2408.03613},
PRIMARYCLASS = {quant-ph},
ARCHIVEPREXIX = {arxiv},
}
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.
Metadata
Release files for mqt.qao 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mqt_qao-0.3.1.tar.gz | 1.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mqt_qao-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.0 MB
Release files / mqt_qao-0.3.1.tar.gz
| Download URL | mqt_qao-0.3.1.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13fc78af1d87a29e4b5eb1b96fd02ff1bd62626e2a7010cc52e98068e2ab93e9
|
|
BLAKE2b-256 checksum How to use checksums |
f430c9ed23107bfdc82f4bf9f20de87cdd4c56303aa345725789269eceb66895
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 3, 2026.
Transparency logRelease files / mqt_qao-0.3.1-py3-none-any.whl
| Download URL | mqt_qao-0.3.1-py3-none-any.whl |
|---|---|
| Size | 765.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e26b57121a2458d5cfd092287b8ba089d08b350ba51d14b86497f3c5800e3de0
|
|
BLAKE2b-256 checksum How to use checksums |
ebc1f643b5b66b6446c1cb82ac772587183a98d8cd997e6cb220b3f4b6b26652
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 3, 2026.
Transparency log