pygsti.extras.idletomography.idtcore.compute_observed_samebasis_err_rate

pygsti.extras.idletomography.idtcore.compute_observed_samebasis_err_rate#

compute_observed_samebasis_err_rate(dataset, pauli_fidpair, pauli_basis_dicts, idle_string, outcome, max_lengths, fit_order=1)#

Extract the observed error rate from a series of experiments which prepares and measures in the same Pauli basis and tracks a particular outcome.

Parameters:
  • dataset (DataSet) – The set of data counts (observations) to use.

  • pauli_fidpair (tuple) – A (prep,measure) 2-tuple of NQPauliState objects specifying the prepation state and measurement basis.

  • pauli_basis_dicts (tuple) – A (prepPauliBasisDict,measPauliBasisDict) tuple of dictionaries specifying the way to prepare and measure in Pauli bases. See preferred_signs_from_paulidict() for details on each dictionary’s format.

  • idle_string (Circuit) – The Circuit representing the idle operation being characterized.

  • outcome (NQOutcome) – The outcome being tracked.

  • max_lengths (list) – A list of maximum germ-power lengths. The seriese of sequences considered is prepFiducial + idle_string^L + measFiducial, where L ranges over the values in max_lengths.

  • fit_order (int, optional) – The polynomial order used to fit the observed data probabilities.

Returns:

A dictionary of information about the fit, including the observed error rate and the data points that were fit.

Return type:

dict