pygsti.tools.is_pos_def¶
-
pygsti.tools.
is_pos_def
(mx, TOL=1e-09)¶ Test whether mx is a positive-definite matrix.
Parameters: - mx (numpy array) – Matrix to test.
- TOL (float, optional) – Tolerance on absolute magitude of elements.
Returns: True if mx is positive-semidefinite, otherwise False.
Return type: bool