deltakit.decode.analysis.EmpiricalDecodingErrorDistribution.to_dict#

EmpiricalDecodingErrorDistribution.to_dict() dict[tuple[bool, ...], int]#

Returns the error distribution in dictionary representation of boolean keys.

Examples

{(False, False, False): 4, (False, False, True): 1, …, (True, True, True): 2}

indicates that there were 4 cases where the correction and error did not differ at all, 1 case where the third logical alone differed and 2 cases where all the logicals differed.

Returns:

A dictionary that describes the distribution of failures across all combinations of logicals.

Return type:

Dict[Tuple[bool, …], int]