Skip to main content

MQT ProblemSolver - A MQT tool for Solving Problems Using Quantum Computing

Project description

Lint CodeCov Deploy to PyPI

MQT ProblemSolver

MQT ProblemSolver is a framework to utilize quantum computing as a technology for users with little to no quantum computing knowledge. All necessary quantum parts are embedded by domain experts while the interfaces provided are similar to the ones classical solver provide:

When provided with a problem description, MQT ProblemSolver offers a selection of implemented quantum algorithms. The user just has to chose one and all further (quantum) calculation steps are encapsulated within MQT ProblemSolver. After the calculation finished, the respective solution is returned - again in the same format as classical solvers use.

In the current implementation, two case studies are conducted:

  1. A SAT Problem: Constraint Satisfaction Problem
  2. A Graph-based Optimization Problem: Travelling Salesman Problem

A SAT Problem: Constraint Satisfaction Problem

This exemplary implementation can be found in the CSP_example.ipynb Jupyter notebook. Here, the solution to a Kakuro riddle with a 2x2 grid can be solved for arbitrary sums s0 to s3:

MQT ProblemSolver will return valid values to a, b, c, and d if a solution exists.

A Graph-based Optimization Problem: Travelling Salesman Problem

This exemplary implementation can be found in the TSP_example.ipynb Jupyter notebook. Here, the solution to a Travelling Salesman Problem with 4 cities can be solved for arbitrary distances dist_1_2 to dist_3_4between the cities.

MQT ProblemSolver will return the shortest path visiting all cities as a list.

Repository Structure

.
├── src
│ └── mqt
│     └── problemsolver
│        └── csp.py
│        └── csp_example.ipynb
│        └── tsp.py
│        └── tsp_example.ipynb
└── tests
    └── ...

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.problemsolver-0.1.0.tar.gz (615.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.problemsolver-0.1.0-py3-none-any.whl (57.9 kB view details)

Uploaded Python 3

File details

Details for the file mqt.problemsolver-0.1.0.tar.gz.

File metadata

  • Download URL: mqt.problemsolver-0.1.0.tar.gz
  • Upload date:
  • Size: 615.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for mqt.problemsolver-0.1.0.tar.gz
Algorithm Hash digest
SHA256 303c3485ccf2fc91ff48c49933a76435c6bb1fbce6da95dd221c7dbff6ae8b0b
MD5 2f7d25c2aed178105ce195dfdd7de4c7
BLAKE2b-256 9a6aa2828304f5982df63bd4017d7f1b1189f4111d38c2013a39a4cf60fa8821

See more details on using hashes here.

File details

Details for the file mqt.problemsolver-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mqt.problemsolver-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eacfdabcb3ef7ea970f1ce6ca1c5e004e43d47b37bc683381c68fb0704abc628
MD5 ce901044fdaad85c9dbe501b5be648f3
BLAKE2b-256 770f4c7e66424980b04663beec082ac27e7d3e7fb5bfc3a08851537bb872df48

See more details on using hashes here.

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