Skip to content

bloqade.gemini.decoding.table_decoders.TableDecoderWithConfidence

← Module overview

classTableDecoderWithConfidencesource

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

NameTypeDefaultDescription
demstim.DetectorErrorModelrequired
num_shotsint10 ** 7
seedint | NoneNone
step_sizeint | NoneNone

methoddecodesource

bloqade.gemini.decoding.table_decoders.TableDecoderWithConfidence.decode

def decode(detector_bits: np.ndarray) -> np.ndarray

Decode detector bits after validating the detector-shot width.

Parameters

NameTypeDescription
detector_bitsnp.ndarray

Returns

np.ndarray

source

methodcache_correctionsource

bloqade.gemini.decoding.table_decoders.TableDecoderWithConfidence.cache_correction

def cache_correction() -> None
source

methoddecode_with_confidencesource

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

NameTypeDescription
detector_bitsnp.ndarray

Returns

tuple[np.ndarray, np.float64]

source