pygsti.tools.errgenproptools.phi_numerical

Contents

pygsti.tools.errgenproptools.phi_numerical#

phi_numerical(tableau, desired_bitstring, P, Q)#

This function computes a quantity whose value is used in expression for the sensitivity of probabilities to error generators. (This version does this calculation numerically and is primarily intended for testing infrastructure.)

Parameters:
  • tableau (stim.Tableau) – A stim Tableau corresponding to the input stabilizer state.

  • 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.