pygsti.extras.rpe.rpetools.estimate_thetas

pygsti.extras.rpe.rpetools.estimate_thetas#

estimate_thetas(dataset, angle_sin_strs, angle_cos_strs, epsilon_list, return_phi_fun_list=False, rpeconfig_inst=None)#

For a dataset containing sin and cos strings to estimate theta, along with already-made estimates of epsilon, return a list of theta (one for each generation).

Parameters:
  • dataset (DataSet) – The dataset from which the theta estimates will be extracted.

  • angle_sin_strs (list of Circuits) – The list of sin strs that the estimator will use.

  • angle_cos_strs (list of Circuits) – The list of cos strs that the estimator will use.

  • epsilon_list (list of floats) – List of epsilon estimates.

  • return_phi_fun_list (bool, optional) – Set to True to obtain measure of how well Eq. III.7 is satisfied. Default is False.

  • rpeconfig_inst (RPEconfig object) – Declares which model configuration RPE should be trying to fit; determines particular functions and values to be used.

Returns:

  • thetaHatList (list of floats) – A list of theta estimates, ordered by generation (k).

  • PhiFunList (list of floats) – A list of _sin_phi2 vals at optimal theta values. If not close to 0, constraints unsatisfiable. Only returned if return_phi_fun_list is set to True.