pygsti.tools.errgenproptools.pauli_phase_update#
- pauli_phase_update(pauli, bitstring, dual=False)#
Takes as input a pauli and a bit string and computes the output bitstring and the overall phase that bit string accumulates.
Note: This is a pure python implementation of this function. For best performance see the optimized cython implementation tools.fasterrgencalc.fast_pauli_phase_update.
- Parameters:
pauli (str or stim.PauliString) – Pauli to apply
bitstring (str) – String of 0’s and 1’s representing the bit string to apply the pauli to.
dual (bool, optional (default False)) – If True then then the pauli is acting to the left on a row vector.
- Returns:
Tuple whose first element is the phase accumulated, and whose second element
is a string corresponding to the updated bit string.
- Return type:
tuple[complex, str]