qit.utils.rank

qit.utils.rank(A, tol=None)

Matrix rank.

Parameters
  • A (array[complex]) – matrix

  • tol (float) – numerical tolerance

Returns

matrix rank of A, or the number of singular values of A larger than tol

Return type

int