pygsti.tools.mcfetools.polarization_to_success_probability#
- polarization_to_success_probability(p, n)#
Utility function for MCFE VBDataFrame creation.
Maps a polarization p for an n-qubit circuit to the success probability s, defined by s = p * (1 - 1/2**n) + 1/2**n. For large n, the difference between p and s is negligible and the calculation of 2**n is prohibitive, so we impose a cutoff above which we assert s = p.
- Parameters:
p (float) – circuit polarization
n (int) – number of qubits in the circuit.
- Returns:
circuit success probability.
- Return type:
float