pygsti.tools.matrixtools.assert_projector#
- assert_projector(mx, tol=1e-12)#
Raise a ValueError if mx is not an orthogonal projector, per
is_projector().- Parameters:
mx (numpy array) – Matrix to test.
tol (float, optional) – Tolerance, forwarded to
is_projector().
- Return type:
None