pygsti.tools.mcfetools.rc_predicted_process_fidelity#
- rc_predicted_process_fidelity(bare_rc_effective_pols, rc_rc_effective_pols, reference_effective_pols, n)#
Utility function for MCFE VBDataFrame creation.
Compute the process fidelity f for a circuit on n qubits according to the formula
f = 1 - (4**n - 1)/4**n * (1 - p),
Where p is the effective polarization of the circuit, given by
p = E[p(M_1)] / sqrt( E[p(M_2)] * E[p(M_3)] ).
Here, M_i refers to the i-th family of mirror circuits used in mirror circuit fidelity estimation with randomized compiling. See https://arxiv.org/pdf/2204.07568 for more information.
The process fidelity estimate is clamped to the [0.0, 1.0] range.
- Parameters:
bare_rc_effective_pols (np.ndarray[float]) – list of effective polarizations for bare_rc (M_1) mirror circuits.
rc_rc_effective_pols (np.ndarray[float]) – list of effective polarizations for rc_rc (M_2) mirror circuits.
reference_effective_pols (np.ndarray[float]) – list of effective polarizations for SPAM reference (M_3) mirror circuits.
n (int) – number of qubits in the quantum circuit.
- Return type:
float
Returns:#
- float
process fidelity estimate.