pygsti.tools.is_hermitian

pygsti.tools.is_hermitian(mx, TOL=1e-09)

Test whether mx is a hermitian matrix.

Parameters:
  • mx (numpy array) – Matrix to test.
  • TOL (float, optional) – Tolerance on absolute magitude of elements.
Returns:

True if mx is hermitian, otherwise False.

Return type:

bool