pygsti.tools.matrixmod2.random_symmetric_invertable_matrix

pygsti.tools.matrixmod2.random_symmetric_invertable_matrix#

random_symmetric_invertable_matrix(n, failcount=0, rand_state=None)#

Creates a random, symmetric, invertible matrix from GL(n,2)

Parameters:
  • n (int) – Matrix dimension.

  • failcount (int, optional) – Internal use only.

  • rand_state (np.random.RandomState, optional) – Random number generator to allow for determinism.

Return type:

numpy.ndarray