Skip to content

Instantly share code, notes, and snippets.

@pdc-quantum
Last active January 11, 2022 14:47
Show Gist options
  • Save pdc-quantum/5a6c0de59495f876e46da704f1dae236 to your computer and use it in GitHub Desktop.
Save pdc-quantum/5a6c0de59495f876e46da704f1dae236 to your computer and use it in GitHub Desktop.
Bayesian vs Frequentist Statistical Model for Randomized Benchmarking
from scipy.optimize import curve_fit
def gsp(x, a, alpha, alpha_c, b):
return x[1] * (a * alpha ** x[0] + b) \
+ x[2] * (a * (alpha * alpha_c) ** x[0] + b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment