pygsti.tools.errgenproptools.random_support#
- random_support(tableau, return_support=False)#
Compute the number of bits over which the stabilizer state corresponding to this stim tableau would have measurement outcomes which are random.
- Parameters:
tableau (Union[stim.Tableau, stim.TableauSimulator]) – stim.Tableau corresponding to the stabilizer state we want the random support for.
return_support (bool, optional (default False)) – If True also returns a list of qubit indices over which the distribution of outcome bit strings is random.
- Returns:
num_random (int) – Number of bit on which stabilize state is random.
support (list of bool) – A list of boolean values which can be used as a bitmask and corresponds to the bits found to be random.