pygsti.tools.mcfetools.predicted_process_fidelity_for_central_pauli_mcs

pygsti.tools.mcfetools.predicted_process_fidelity_for_central_pauli_mcs#

predicted_process_fidelity_for_central_pauli_mcs(central_pauli_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 = sqrt( E[p(M_1)] / E[p(M_2)])

Here, M_1 refers to central Pauli quasi-mirror circuits and M_2 refers to SPAM reference circuits.

Parameters:
  • central_effective_pols (np.ndarray[float]) – list of effective polarizations for central Pauli (M_1) mirror circuits.

  • central_pauli_effective_pols (ndarray)

  • reference_effective_pols (ndarray)

  • n (int)

Return type:

float

reference_effective_polsnp.ndarray[float]

list of effective polarizations for SPAM reference (M_2) mirror circuits.

nint

number of qubits in the quantum circuit.

Returns:#

float

process fidelity estimate.