bloqade.gemini.decoding.confidence.ConfidenceDecoder
← Module overview
class
method
source
classConfidenceDecoder¶source
bloqade.gemini.decoding.confidence.ConfidenceDecoder
Bases: ABC
Decoder interface for a correction plus a scalar confidence score.
class ConfidenceDecodermethoddecode_with_confidence¶source
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
| Name | Type | Description |
|---|---|---|
detector_bits | npt.NDArray[np.bool_] |
Returns
tuple[npt.NDArray[np.bool_], np.float64]