Part of the Bloqade SDK · Python · Quantum error correction
Bloqade Decoders
Turn detector outcomes into predicted logical-observable corrections through a consistent interface to open-source and optional decoders.
Source: QuEraComputing/bloqade-decoders
decode.pyimport numpy as np
import stim
from bloqade.decoders import BpOsdDecoder
dem = stim.DetectorErrorModel("""
error(0.1) D0
error(0.1) D0 D1
error(0.1) D1 L0
""")
decoder = BpOsdDecoder(dem)
corrections = decoder.decode(np.array([[False, True]]))A detector error model and syndrome batch use the same decoder interface as the larger examples.
§ 1 Explore
Get started with Bloqade Decoders
§ 2 Install
Add Bloqade Decoders
pip install bloqade-decodersOptional extras add MWPF, Tesseract, Gurobi, and table decoders.