pygsti.tools.errgenproptools.errorgen_pauli_action_numerical#
- errorgen_pauli_action_numerical(errorgen, pauli)#
Apply the specified error generator to a given Pauli operator. This implementation performs the application of the error generator numerically and is primarily intended for use in testing.
- Parameters:
errorgen (ElementaryErrorgenLabel or numpy.ndarray) – A label specifying the error generator which should be applied to the specified Pauli operator or else a dense numpy array for the error generator (in the standard basis).
pauli (stim.PauliString) – The pauli operator to apply the error generator to.
- Return type:
ndarray
Returns:#
- numpy.ndarray
Dense representation of the weighted pauli operator resulting from the application of the specified error generator to the input pauli.