pygsti.tools.matrixtools.nullspace

Contents

pygsti.tools.matrixtools.nullspace#

nullspace(m, tol=1e-07)#

Compute the nullspace of a matrix.

Parameters:
  • m (numpy array) – An matrix of shape (M,N) whose nullspace to compute.

  • tol (float , optional) – Nullspace tolerance, used when comparing singular values with zero.

Return type:

An matrix of shape (M,K) whose columns contain nullspace basis vectors.