pygsti.tools.errgenproptools.stabilizer_probability_correction#
- stabilizer_probability_correction(errorgen_dict, tableau, desired_bitstring, order=1, truncation_threshold=1e-14)#
Compute the kth-order correction to the probability of the specified bit string.
- 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.
desired_bitstring (str) – String of 0’s and 1’s corresponding to the output bitstring being measured.
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 output probability for the desired bitstring induced by the error generator (to specified order).
- Return type:
float