pygsti.extras.idletomography.idtcore.compute_observed_diffbasis_err_rate#
- compute_observed_diffbasis_err_rate(dataset, pauli_fidpair, pauli_basis_dicts, idle_string, observable, max_lengths, fit_order=1)#
Extract the observed error rate from a series of experiments which prepares and measures in different Pauli basis and tracks the expectation value of a particular observable.
- Parameters:
dataset (DataSet) – The set of data counts (observations) to use.
pauli_fidpair (tuple) – A (prep,measure) 2-tuple of
NQPauliStateobjects 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.
observable (NQPauliOp) – The observable whose expectation value is 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