pygsti.tools.errgenproptools.slow_pauli_phase_update_all_zeros

pygsti.tools.errgenproptools.slow_pauli_phase_update_all_zeros#

slow_pauli_phase_update_all_zeros(pauli, dual=False)#

Specialized version of pauli_phase_update for the case of the all-zeros bitstring which is more computationally efficient. Takes as input a pauli and computes the output bitstring and overall phase accumulated when applied to the all-zeros bit string.

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

  • dual (bool, optional (default False)) – If True then then the pauli is acting to the left on a row vector.

Returns:

A tuple (overall_phase, output_bitstring) where overall_phase is the accumulated phase, and output_bitstring is the updated bitstring.

Return type:

Tuple[complex, str]