pygsti.tools.errgenproptools.error_generator_taylor_expansion#
- error_generator_taylor_expansion(errorgen_dict, order=1, truncation_threshold=1e-14)#
Compute the nth-order taylor expansion for the exponentiation of the error generator described by the input error generator dictionary. (Excluding the zeroth-order identity).
- Parameters:
errorgen_dict (dict) – Dictionary whose keys are LocalStimErrorgenLabel and whose values are corresponding rates.
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:
List of dictionaries whose keys are error generator labels and whose values are rates (including whatever scaling comes from order of taylor expansion). Each list corresponds to an order of the taylor expansion.
- Return type:
list of dictionaries