pygsti.tools.errgenproptools.errorgen_pauli_action#
- errorgen_pauli_action(errorgen, pauli)#
Apply the specified error generator to a given Pauli operator.
- Parameters:
errorgen (LocalStimErrorgenLabel) – A label specifying the error generator which should be applied to the specified Pauli operator.
pauli (stim.PauliString) – The pauli operator to apply the error generator to
Returns
--------
operator (A tuple whose first value is the (generally complex) weight of the resulting pauli)
second (and whose)
itself. (value is the unsigned Pauli operator)
None. (If the specified error generator annihilates the given pauli then this instead returns)
- Return type:
tuple[float, PauliString]