bloqade.gemini.decoding.table_decoders.TableDecoderWithConfidence
← Module overview
class
method
sourcemethod
sourcemethod
source
classTableDecoderWithConfidence¶source
bloqade.gemini.decoding.table_decoders.TableDecoderWithConfidence
Bases: TableDecoder, ConfidenceDecoder
Dense table decoder with empirical per-syndrome confidence.
Signature
class TableDecoderWithConfidence(dem: stim.DetectorErrorModel, *, num_shots: int = 10 ** 7, seed: int | None = None, step_size: int | None = None)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
dem | stim.DetectorErrorModel | required | |
num_shots | int | 10 ** 7 | |
seed | int | None | None | |
step_size | int | None | None |
methoddecode¶source
bloqade.gemini.decoding.table_decoders.TableDecoderWithConfidence.decode
def decode(detector_bits: np.ndarray) -> np.ndarrayDecode detector bits after validating the detector-shot width.
Parameters
| Name | Type | Description |
|---|---|---|
detector_bits | np.ndarray |
Returns
np.ndarray
methodcache_correction¶source
bloqade.gemini.decoding.table_decoders.TableDecoderWithConfidence.cache_correction
def cache_correction() -> Nonemethoddecode_with_confidence¶source
bloqade.gemini.decoding.table_decoders.TableDecoderWithConfidence.decode_with_confidence
Signature
def decode_with_confidence(detector_bits: np.ndarray) -> tuple[np.ndarray, np.float64]Decode one detector syndrome and return its empirical confidence.
Parameters
| Name | Type | Description |
|---|---|---|
detector_bits | np.ndarray |
Returns
tuple[np.ndarray, np.float64]