pygsti.tools.matrixmod2.permute_top

Contents

pygsti.tools.matrixmod2.permute_top#

permute_top(a, i)#

Permutes the first row & col with the i’th row & col

Parameters:
  • a (numpy.ndarray) – The matrix to act on.

  • i (int) – index to permute with first row/col.

Return type:

numpy.ndarray