pygsti.tools.matrixtools.nice_nullspace#
- nice_nullspace(m, tol=1e-07, orthogonalize=False)#
Computes the nullspace of a matrix, and tries to return a “nice” basis for it.
Columns of the returned value (a basis for the nullspace) each have a maximum absolute value of 1.0.
- Parameters:
m (numpy array) – An matrix of shape (M,N) whose nullspace to compute.
tol (float , optional) – Nullspace tolerance, used when comparing diagonal values of R with zero.
orthogonalize (bool, optional) – If True, the nullspace vectors are additionally orthogonalized.
- Return type:
An matrix of shape (M,K) whose columns contain nullspace basis vectors.