estimate_total_errors combines a routed program (from
routing) with the logical_noise fits (from
initializing the logical noise model) to
estimate the program’s total error (1 - fidelity) at each requested code distance. Larger
code distances suppress errors further, at the cost of more physical qubits.
estimate_total_errors returns a dict mapping each code distance to its estimated total
error, and the loop above prints it like this: