get_error_hamming_distributions_from_results

forest.benchmarking.classical_logic.get_error_hamming_distributions_from_results(results: Sequence[Sequence[Sequence[int]]]) → Sequence[Sequence[float]]

Get the distribution of the hamming weight of the error vector (number of bits flipped between output and expected answer) for each possible pair of two n_bit summands using results output by get_n_bit_adder_results

Parameters:results – a list of results output from a call to get_n_bit_adder_results
Returns:the relative frequency of observing each hamming weight, 0 to n_bits+1, for the error that occurred when adding each pair of two n_bit summands