Skip to content

bloqade.gemini.decoding.confidence.ConfidenceDecoder

← Module overview

classConfidenceDecodersource

bloqade.gemini.decoding.confidence.ConfidenceDecoder

Bases: ABC

Decoder interface for a correction plus a scalar confidence score.

class ConfidenceDecoder

methoddecode_with_confidencesource

bloqade.gemini.decoding.confidence.ConfidenceDecoder.decode_with_confidence

Signature
def decode_with_confidence(detector_bits: npt.NDArray[np.bool_]) -> tuple[npt.NDArray[np.bool_], np.float64]

Decode one detector syndrome and return a confidence score.

Parameters

NameTypeDescription
detector_bitsnpt.NDArray[np.bool_]

Returns

tuple[npt.NDArray[np.bool_], np.float64]

source