deltakit.decode.analysis.EmpiricalDecodingErrorDistribution.batch_record_errors#
- EmpiricalDecodingErrorDistribution.batch_record_errors(corrections: ndarray[tuple[Any, ...], dtype[uint8]], target: ndarray[tuple[Any, ...], dtype[uint8]])#
Computes and adds a batch of error events based on batches of predicted and target values of the logicals.
- Parameters:
corrections (npt.NDArray[np.uint8]) – 2D Array indicating predicted corrections of shape (number of shots, number of edges). Each element is a 1 or 0. prediction of each logical from the decoder.
target (npt.NDArray[np.uint8]) – 2D Array indicating target homolgies of shape (number of shots, number of edges). Each element is a 1 or 0.