Last active
January 12, 2022 12:46
-
-
Save pdc-quantum/383cca76d5964a4856e9379026b9a4a2 to your computer and use it in GitHub Desktop.
Bayesian vs Frequentist Statistical Model for Randomized Benchmarking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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