pygsti.tools.errgenproptools.error_generator_taylor_expansion_numerical#
- error_generator_taylor_expansion_numerical(errorgen_dict, errorgen_propagator, order=1, mx_basis='pp')#
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). This function computes a dense representation of this taylor expansion as a numpy array and is primarily intended for testing infrastructure.
- Parameters:
errorgen_dict (dict) – Dictionary whose keys are LocalStimErrorgenLabel and whose values are corresponding rates.
errorgen_propagator (ErrorGeneratorPropagator) – Error generator propagator used for constructing dense representation of the error generator dictionary.
order (int, optional (default 1)) – Order of the correction (i.e. order of the taylor series expansion for the exponentiated error generator) to compute.
mx_basis (Basis or str, optional (default ‘pp’)) – Basis in which to return the matrix.
- Returns:
A dense numpy array corresponding to the nth order taylor expansion of the specified error generator.
- Return type:
numpy.ndarray