exa.core.util.model_functions.get_exponential_rb_fitter

exa.core.util.model_functions.get_exponential_rb_fitter#

get_exponential_rb_fitter(clifford_fidelity_estimate, offset_estimate, amplitude_estimate)#

Get a function for fitting an exponential RB model \(P_e = A p^{N_{Cl}} + B\) for a randomized benchmarking (RB) experiment with the given initial parameters. Clifford fidelity estimate is given as: \(:math:`F_{Cl} = p + (1-p)/d\), where depolarization probability is 1-p.

Parameters:
  • clifford_fidelity_estimate (float) – guess for the clifford fidelity.

  • offset_estimate (float) – guess for the offset B

  • amplitude_estimate (float) – guess for amplitude A

Returns:

function for computing 1d fit of the exponential RB model with the given parameters

Return type:

Callable[[ndarray | Iterable, ndarray | Iterable], tuple[dict, ndarray]]