Skip to content

bloqade.decoders.TableDecoder

← Module overview

classTableDecodersource

bloqade.decoders.TableDecoder

Bases: BaseDecoder

Maximum likelihood decoder from detector-observable lookup table.

class TableDecoder

Builds a lookup table mapping detector syndromes to the most likely observable correction, using sampled detector-observable data.

Conventions

  • Shot convention: each row is [D0, D1, …, L0, L1, …].
  • After packing, each row is an integer with bitstring representation (…, L1, L0, …, D1, D0).
  • Counts can be reshaped as (2L, 2D) where row index is for logical and column for detector.