Skip to main content

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

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)

Source distribution for mle-decoder 0.2.1
File Size Uploaded
mle_decoder-0.2.1.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mle-decoder 0.2.1
File Interpreter ABI Platform
mle_decoder-0.2.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page