pygsti.tools.errgenproptools.stabilizer_probability#
- stabilizer_probability(tableau, desired_bitstring)#
Calculate the output probability for the specified output bitstring.
TODO: Should be able to do this more efficiently for many bitstrings by looking at the structure of the random support.
- Parameters:
tableau (stim.Tableau) – Stim tableau for the stabilizer state being measured.
desired_bitstring (str) – String of 0’s and 1’s corresponding to the output bitstring being measured.
- Returns:
p – probability of desired bitstring.
- Return type:
float