deltakit.decode.PyMatchingDecoder.decode_batch_to_logical_flip#

PyMatchingDecoder.decode_batch_to_logical_flip(syndrome_batch: ndarray) ndarray#

Decodes a batch of syndrome bitstrings to logical flips.

Parameters:

syndrome_batch (np.ndarray) – Syndrome to decode. 2D Array of shape (number of shots, number of syndromes). Each element is a 1 or 0.

Returns:

2D Array indicating logical flips of shape (number of shots, number of logicals). Each element is a 1 or 0.

Return type:

np.ndarray