pygsti.extras.rpe.rpetools.extract_rotation_hat#
- extract_rotation_hat(xhat, yhat, k, nx, ny, angle_name='epsilon', previous_angle=None, rpeconfig_inst=None)#
For a single germ generation (k value), estimate the angle of rotation for either alpha, epsilon, or Phi. (Warning: Do not use for theta estimate without further processing!)
- Parameters:
xhat (float) – The number of 0 counts for the sin string being used.
yhat (float) – The number of 0 counts for the cos string being used.
k (float) – The generation of experiments that xhat and yhat come from.
nx (float) – The number of sin string clicks.
ny (float) – The number cos string clicks.
angle_name ({ "alpha", "epsilon", "Phi" }, optional) – The angle to be extracted
previous_angle (float, optional) – Angle estimate from previous generation; used to refine this generation’s estimate. Default is None (for estimation with no previous genereation’s data)
rpeconfig_inst (Declares which model configuration RPE should be trying to fit;) – determines particular functions and values to be used.
- Returns:
alpha_j – The current angle estimate.
- Return type:
float