AccreditationFitter¶
- class AccreditationFitter[Quellcode]¶
Bases:
object
Class for fitters for accreditation
Implementation follows the methods from [1] FullAccreditation and [2] MeanAccreditation.
Data can be input either as qiskit result objects, or as lists of bitstrings (the latter is useful for batch jobs).
References
S. Ferracin, T. Kapourniotis, A. Datta. Accrediting outputs of noisy intermediate-scale quantum computing devices, New Journal of Physics, Volume 21, 113038. (2019). NJP 113038
S. Ferracin, S. Merkel, D. McKay, A. Datta. Experimental accreditation of outputs of noisy quantum computers, arxiv:2103.06603 (2021). arXiv:quant-ph/2103.06603
Methods
Single run of accreditation protocol, data input as qiskit result object assumed to be single shot
Single run of accreditation protocol, data input as a list of output strings
This function computes the bound on variation distance based and the confidence interval desired.
This function computes the bound on variation distance based and the confidence interval desired.
Reset the accreditation class object
DEPRECATED-This function computes the bound on variation distance based and the confidence :param theta: number between 0 and 1 :type theta: float
DEPRECATED-Single protocol run of accreditation protocol :param results: results of the quantum job :type results: Result :param postp_list: list of strings used to post-process outputs :type postp_list: list :param v_zero: position of target :type v_zero: int