pygsti.tools.errgenproptools.bulk_alpha

Contents

pygsti.tools.errgenproptools.bulk_alpha#

bulk_alpha(errorgens, tableau, desired_bitstrings)#

First-order error generator sensitivity function for probability.

Parameters:
  • errorgens (iterable of LocalStimErrogenLabels.) – Error generator label for which to calculate sensitivity.

  • tableau (stim.Tableau) – Stim Tableau corresponding to the stabilizer state to calculate the sensitivity for.

  • desired_bitstrings (list of str) – Bit string to calculate the sensitivity for.

Returns:

sensitivities_by_bitstring – Linear sensitivities of the probability of each desired bitstring to the specified elementary error generators for the given stabilizer state. Result is returned as a two-dimensional numpy array, with each row being indexed by a bitstring, and each column by an error generator.

Return type:

np.ndarray[np.double]