pygsti.tools.mcfetools.rc_bootstrap_predicted_pfid

pygsti.tools.mcfetools.rc_bootstrap_predicted_pfid#

rc_bootstrap_predicted_pfid(brs, rrs, refs, n, num_bootstraps=50, rand_state=None)#

Utility function for MCFE VBDataFrame creation.

Compute bootstrapped error bars for the MCFE random compilation process fidelity estimate.

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

  • rrs (np.ndarray[float]) – list of effective polarizations for rc_rc (M_2) mirror circuits.

  • refs (np.ndarray[float]) – list of effective polarizations for SPAM reference (M_3) mirror circuits.

  • n (int) – number of qubits in the quantum circuit.

  • num_bootstraps (int) – number of samples to take from the bootstrapped distribution.

  • rand_state (optional, np.random.RandomState) – random state to be used for bootstrapepd distribution sampling.

Return type:

float

Returns:#

float

estimate for standard deviation of process fidelity estimate.