pygsti.tools.print_mx

pygsti.tools.print_mx(mx, width=9, prec=4)

Print matrix in pretty format.

Will print real or complex matrices with a desired precision and “cell” width.

Parameters:
  • mx (numpy array) – the matrix (2-D array) to print.
  • width (int, opitonal) – the width (in characters) of each printed element
  • prec (int optional) – the precision (in characters) of each printed element