pygsti.tools.errgenproptools.stabilizer_pauli_expectation_correction#
- stabilizer_pauli_expectation_correction(errorgen_dict, tableau, pauli, order=1, truncation_threshold=1e-14)#
Compute the kth-order correction to the expectation value of the specified pauli.
- Parameters:
errorgen_dict (dict) – Dictionary whose keys are LocalStimErrorgenLabel and whose values are corresponding rates.
tableau (stim.Tableau) – Stim tableau corresponding to a particular stabilizer state being measured.
pauli (stim.PauliString) – Pauli operator to compute expectation value correction for.
order (int, optional (default 1)) – Order of the correction (i.e. order of the taylor series expansion for the exponentiated error generator) to compute.
truncation_threshold (float, optional (default 1e-14)) – Optional threshold used to truncate corrections whose corresponding rates are below this value.
- Returns:
correction – float corresponding to the correction to the expectation value for the selected pauli operator induced by the error generator (to specified order).
- Return type:
float