Most-likely error (MLE) decoder that uses gurobi to solve the mixed-interger (linear) programming problem
Project description
mle-decoder
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)
Note that $C_i \in \{-1, +1\}$.
Setting up the gurobi license
- Create a free academic account
- Request a license, which will give you a license key
- Install the Gurobi Optimizer (or install
gurobipythrough conda) so that we can run thegrbgetkeycommand - Run
grbgetkey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxusing your license number - At the end of
~/.bashrcaddexport GRB_LICENSE_FILE=/path/to/license.licwhere the license path is printed when running the previous step - Run
source ~/.bashrcor open a new terminal and check that the license installation is successful by running thegurobi.shcommand
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98d836dd2f5e14c02c74247c430628d6aea0440dbfdd89aed8b4438ebba61364
|
|
| MD5 |
4fcf342f16d948a5c53aead58b276894
|
|
| BLAKE2b-256 |
90001a3c97e046997974c5a9ddfb0ff7cab7ce0e099c7453c057c5e654a2f655
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78106acdff18b12cef554b3f402ed137ad7fbf7ce462d94b3fd0328851b9e62b
|
|
| MD5 |
73394b6b7dd965237a36038d14b9de16
|
|
| BLAKE2b-256 |
ac38e17891a2ab7d33dcf7ee9768c49d214d7b121c17bde2dcdb801bcf3f60f6
|