deltakit.decode.PyMatchingDecoder.decode_batch_to_full_correction#

PyMatchingDecoder.decode_batch_to_full_correction(syndrome_batch: ndarray) ndarray#

Decodes a batch of syndrome bitstrings to full correction.

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 full corrections of shape (number of shots, number of edges). Each element is a 1 or 0.

Return type:

np.ndarray