Skip to content

Instantly share code, notes, and snippets.

@pdc-quantum
Last active January 12, 2022 12:46
Show Gist options
  • Save pdc-quantum/383cca76d5964a4856e9379026b9a4a2 to your computer and use it in GitHub Desktop.
Save pdc-quantum/383cca76d5964a4856e9379026b9a4a2 to your computer and use it in GitHub Desktop.
Bayesian vs Frequentist Statistical Model for Randomized Benchmarking
with h_model:
BoundedUniform = pm.Bound(pm.Uniform,
lower=np.fmax(popt-0.1, np.full(popt.shape, 1.e-9)),
upper=np.fmin(popt+0.1, np.full(popt.shape, 1.-1.e-9)))
pi = BoundedUniform("π", testval = popt, shape = popt.shape)
EPC = pm.Deterministic('EPC', scale * (1 - pi[2]) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment