pygsti.extras.rpe.rpetools.estimate_angles#
- estimate_angles(dataset, angle_sin_strs, angle_cos_strs, angle_name='epsilon', length_list=None, rpeconfig_inst=None)#
For a dataset containing sin and cos strings to estimate either alpha, epsilon, or Phi return a list of alpha, epsilon, or Phi estimates (one for each generation). Note: this assumes the dataset contains ‘0’ and ‘1’ SPAM labels.
- Parameters:
dataset (DataSet) – The dataset from which the angle 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.
angle_name ({ "alpha", "epsilon", "Phi" }, optional) – The angle to be extracted
length_list (The list of sequence lengths. Default is None;) – If None is specified, then length_list becomes [1,2,4,…,2**(len(angle_sin_strs)-1)]
rpeconfig_inst (RPEconfig object) – Declares which model configuration RPE should be trying to fit; determines particular functions and values to be used.
- Returns:
angleHatList – A list of angle estimates, ordered by generation (k).
- Return type:
list of floats