pygsti.tools.matrixtools.columns_are_orthonormal#
- columns_are_orthonormal(m, tol=1e-07)#
Checks whether a matrix contains orthogonal columns.
The columns do not need to be normalized. In the complex case, two vectors v and w are considered orthogonal if dot(v.conj(), w) == 0.
- Parameters:
m (numpy.ndarray) – The matrix to check.
tol (float, optional) – Tolerance for checking whether dot products are zero.
- Return type:
bool