pygsti.mx_to_string_complex

pygsti.mx_to_string_complex(m, real_width=9, im_width=9, prec=4)

Generate a “pretty-format” string for a complex-valued matrix.

Parameters:
  • mx (numpy array) – the matrix (2-D array) to convert.
  • real_width (int, opitonal) – the width (in characters) of the real part of each element.
  • im_width (int, opitonal) – the width (in characters) of the imaginary part of each element.
  • prec (int optional) – the precision (in characters) of each element’s real and imaginary parts.
Returns:

matrix m as a pretty formated string.

Return type:

string