Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.
Important

IBM Quantum Platform is moving and this version will be sunset on July 1. To get started on the new platform, read the migration guide.

AccreditationFitter

class AccreditationFitter

GitHub

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


Attributes

N_acc

Default value: 0

bound

Default value: 1

confidence

Default value: 1

flag

Default value: 'accepted'

g_num

Default value: 1

num_runs

Default value: 0

num_traps

Default value: 0

outputs

Default value: []


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.