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
Metadata
Release files for mle-decoder 0.2.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 | Provenance | Actions |
|---|---|---|---|---|
| mle_decoder-0.2.1.tar.gz | 6.0 kB | Without provenance | Details for mle_decoder-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mle_decoder-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for mle_decoder-0.2.1-py3-none-any.whl |
Total release size: 11.9 kB
Release files / mle_decoder-0.2.1.tar.gz
| Download URL | mle_decoder-0.2.1.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
828a26c62e2f75518e227a15e28b41541f09a989eaf10941945ac254b7fd4907
|
|
BLAKE2b-256 checksum How to use checksums |
5420734a03ec4d15c5e88fb6d4a8601b888a45be33554e939d6da69a4df92a4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / mle_decoder-0.2.1-py3-none-any.whl
| Download URL | mle_decoder-0.2.1-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6993995aae0579852f3de2a870eff4af1fbcfee230fb2c12d1f164fbc6555e95
|
|
BLAKE2b-256 checksum How to use checksums |
3fd282a32e7f927c7ccb200385cb9b8426bbbc072c8bffd4d36765b1ad9fad06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Security for mle-decoder 0.2.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.