pygsti.tools.errgenproptools.phi#
- phi(tableau, desired_bitstring, P, Q)#
This function computes a quantity whose value is used in expression for the sensitivity of probabilities to error generators.
- Parameters:
tableau (stim.Tableau or stim.TableauSimulator) – A stim Tableau or stim TableauSimulator corresponding to the input stabilizer state. If a stim.TableauSimulator it is assumed that this simulator has already had the appropriate inverse tableau value instantiated.
desired_bitstring (str) – A string of zeros and ones corresponding to the bit string being measured.
P (str or stim.PauliString) – The first pauli string index.
Q (str or stim.PauliString) – The second pauli string index.
- Return type:
A complex number corresponding to the value of the phi function.