pygsti.tools.matrixtools.nullspace_qr#
- nullspace_qr(m, tol=1e-07)#
Compute the nullspace of a matrix using the QR decomposition.
The QR decomposition is faster but less accurate than the SVD used by
nullspace().- 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.
- Return type:
An matrix of shape (M,K) whose columns contain nullspace basis vectors.