Skip to main content

A tool for the automatic generation and combination of QUBO formulations for specific problem classes.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

⚠️ Warning ⚠️

MQT QUBOMaker is no longer being developed and has been archived as of July 2026. All code has been directly integrated into MQT ProblemSolver.


MQT Logo

MQT QUBOMaker: Automatic Generation of QUBO Formulations from Optimization Problem Specifications

MQT QUBOMaker is a framework that can be used to automatically generate QUBO formulations for various optimization problems based on a selection of constraints that define the problem. It is developed by the Chair for Design Automation at the Technical University of Munich as part of the Munich Quantum Toolkit (MQT).

The tool allows users to create QUBO formulations, and, thus, interact with quantum algorithms, without requiring any background knowledge in the field of quantum computing. End-users can stay entirely within their domain of expertise while being shielded from the complex and error-prone mathematical tasks of QUBO reformulation.

Furthermore, MQT QUBOMaker supports a variety of different encodings. End users can easily switch between the encodings for evaluation purposes without any additional effort, a task that would otherwise require a large amount of tedious mathematical reformulation.

Currently, MQT QUBOMaker provides the following submodule:

  • Pathfinder: This submodule provides a specialization of the QUBOMaker class for the solution of optimization problems involving the search for paths in a directed graph. It provides a large set of pathfinding-related constraints that are used to define individual problem instances.

The Pathfinder submodule also has a supporting GUI to further facilitate its use.

For more details, please refer to:

Documentation

If you have any questions, feel free to create a discussion or an issue on GitHub.

Getting Started

mqt-qubomaker is available via PyPI.

(venv) $ pip install mqt.qubomaker

The following code gives an example of the usage with the pathfinder submodule:

import mqt.qubomaker as qm
import mqt.qubomaker.pathfinder as pf

# define an example graph to investigate.
graph = qm.Graph.from_adjacency_matrix(
    [
        [0, 1, 3, 4],
        [2, 0, 4, 2],
        [1, 5, 0, 3],
        [3, 8, 1, 0],
    ]
)

# select the settings for the QUBO formulation.
settings = pf.PathFindingQuboGeneratorSettings(
    encoding_type=pf.EncodingType.ONE_HOT, n_paths=1, max_path_length=4, loops=True
)

# define the generator to be used for the QUBO formulation.
generator = pf.PathFindingQuboGenerator(
    objective_function=pf.MinimizePathLength(path_ids=[1]),
    graph=graph,
    settings=settings,
)

# add the constraints that define the problem instance.
generator.add_constraint(pf.PathIsValid(path_ids=[1]))
generator.add_constraint(
    pf.PathContainsVerticesExactlyOnce(vertex_ids=graph.all_vertices, path_ids=[1])
)

# generate and view the QUBO formulation as a QUBO matrix.
print(generator.construct_qubo_matrix())

Detailed documentation and examples are available at ReadTheDocs.

References

MQT QUBOMaker has been developed based on methods proposed in the following paper:

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.

MQT Funding Footer

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mqt_qubomaker-1.0.2.tar.gz (401.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mqt_qubomaker-1.0.2-py3-none-any.whl (45.1 kB view details)

Uploaded Python 3

File details

Details for the file mqt_qubomaker-1.0.2.tar.gz.

File metadata

  • Download URL: mqt_qubomaker-1.0.2.tar.gz
  • Upload date:
  • Size: 401.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for mqt_qubomaker-1.0.2.tar.gz
Algorithm Hash digest
SHA256 bda5e65d1740b304c24c6d1026fdf0a2b4233bffda46b898d5a93c89b5232499
MD5 840202d2034d929d8c527b579dd40c1b
BLAKE2b-256 6957c91603eb36773e567713c6b015073139228359e309af50de3ac4ea29d0e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for mqt_qubomaker-1.0.2.tar.gz:

Publisher: cd.yml on cda-tum/mqt-qubomaker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mqt_qubomaker-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: mqt_qubomaker-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 45.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for mqt_qubomaker-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cae5acf1b3188fa7c0176b8d559c5b0573e9776a2036261cd98b3d4b4c83413e
MD5 492dcdda4b0e7095a10d9e139ddc88c8
BLAKE2b-256 4601e33d9f5ca60da9faea72e60723ea694ddaf90a6d4c404798ad6643ce1125

See more details on using hashes here.

Provenance

The following attestation bundles were made for mqt_qubomaker-1.0.2-py3-none-any.whl:

Publisher: cd.yml on cda-tum/mqt-qubomaker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page