AccreditationFitter
AccreditationFitter
Class for fitters for accreditation
Implementation follows the methods from Samuele Ferracin, Theodoros Kapourniotis and Animesh Datta New Journal of Physics, Volume 21, November 2019 https://iopscience.iop.org/article/10.1088/1367-2630/ab4fd6(opens in a new tab)
Attributes
N_acc
= 0
bound
= 1
confidence
= 1
flag
= 'accepted'
g_num
= 1
num_runs
= 0
num_traps
= 0
outputs
= []
Methods
bound_variation_distance
AccreditationFitter.bound_variation_distance(theta)
This function computes the bound on variation distance based and the confidence
Parameters
theta (float) – number between 0 and 1
single_protocol_run
AccreditationFitter.single_protocol_run(results, postp_list, v_zero)
Single protocol run of accreditation protocol on simul backend
Parameters
- results (Result) – results of the quantum job
- postp_list (list) – list of strings used to post-process outputs
- v_zero (int) – position of target
Was this page helpful?
Report a bug or request content on GitHub.