Skip to main content

Most-likely error (MLE) decoder that uses gurobi to solve the mixed-interger (linear) programming problem

Project description

mle-decoder

example workflow Code style: black PyPI

Most-likely error (MLE) decoder that uses gurobi to solve the mixed-interger (linear) programming problem.

The decoding hypergraph is specified using stim.DetectorErrorModel.

MLE optimization description

The problem of finding the most likely error can be mapped to a mixed-integer (linear) programming (MILP) problem. This can be solved by optimization solvers like Gurobi. The mapping to a MILP problem is (source: https://arxiv.org/abs/2403.03272)

alt text

Note that $C_i \in \{-1, +1\}$.

Setting up the gurobi license

  1. Create a free academic account
  2. Request a license, which will give you a license key
  3. Install the Gurobi Optimizer (or install gurobipy through conda) so that we can run the grbgetkey command
  4. Run grbgetkey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx using your license number
  5. At the end of ~/.bashrc add export GRB_LICENSE_FILE=/path/to/license.lic where the license path is printed when running the previous step
  6. Run source ~/.bashrc or open a new terminal and check that the license installation is successful by running the gurobi.sh command

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

mle_decoder-0.2.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

mle_decoder-0.2.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file mle_decoder-0.2.0.tar.gz.

File metadata

  • Download URL: mle_decoder-0.2.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for mle_decoder-0.2.0.tar.gz
Algorithm Hash digest
SHA256 98d836dd2f5e14c02c74247c430628d6aea0440dbfdd89aed8b4438ebba61364
MD5 4fcf342f16d948a5c53aead58b276894
BLAKE2b-256 90001a3c97e046997974c5a9ddfb0ff7cab7ce0e099c7453c057c5e654a2f655

See more details on using hashes here.

File details

Details for the file mle_decoder-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: mle_decoder-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for mle_decoder-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78106acdff18b12cef554b3f402ed137ad7fbf7ce462d94b3fd0328851b9e62b
MD5 73394b6b7dd965237a36038d14b9de16
BLAKE2b-256 ac38e17891a2ab7d33dcf7ee9768c49d214d7b121c17bde2dcdb801bcf3f60f6

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