Table decoders
Table decoder used by the MSD postselection notebook.
TableDecoderWithConfidence
TableDecoderWithConfidence(
dem: DetectorErrorModel,
*,
num_shots: int = 10**7,
seed: int | None = None,
step_size: int | None = None
)
Bases: TableDecoder, ConfidenceDecoder
flowchart TD
bloqade.gemini.decoding.table_decoders.TableDecoderWithConfidence[TableDecoderWithConfidence]
bloqade.gemini.decoding.table_decoders.TableDecoder[TableDecoder]
bloqade.gemini.decoding.confidence.ConfidenceDecoder[ConfidenceDecoder]
bloqade.gemini.decoding.table_decoders.TableDecoder --> bloqade.gemini.decoding.table_decoders.TableDecoderWithConfidence
bloqade.gemini.decoding.confidence.ConfidenceDecoder --> bloqade.gemini.decoding.table_decoders.TableDecoderWithConfidence
click bloqade.gemini.decoding.table_decoders.TableDecoderWithConfidence href "" "bloqade.gemini.decoding.table_decoders.TableDecoderWithConfidence"
click bloqade.gemini.decoding.table_decoders.TableDecoder href "" "bloqade.gemini.decoding.table_decoders.TableDecoder"
click bloqade.gemini.decoding.confidence.ConfidenceDecoder href "" "bloqade.gemini.decoding.confidence.ConfidenceDecoder"
Dense table decoder with empirical per-syndrome confidence.
Source code in .venv/lib/python3.12/site-packages/bloqade/gemini/decoding/table_decoders.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | |
decode
decode(detector_bits: ndarray) -> np.ndarray
Decode detector bits after validating the detector-shot width.
Source code in .venv/lib/python3.12/site-packages/bloqade/gemini/decoding/table_decoders.py
154 155 156 157 158 159 160 161 162 163 | |
decode_with_confidence
decode_with_confidence(
detector_bits: ndarray,
) -> tuple[np.ndarray, np.float64]
Decode one detector syndrome and return its empirical confidence.
Source code in .venv/lib/python3.12/site-packages/bloqade/gemini/decoding/table_decoders.py
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 | |