Skip to content

Commit

Permalink
add a comment and remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyjmurray committed May 23, 2024
1 parent 2cd29ab commit 14c444b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pygsti/tools/matrixtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,8 @@ def independent_columns(m, initial_independent_cols=None, tol=1e-7):
if initial_independent_cols is None:
proj_m = m.copy()
else:
# We assume initial_independent_cols is full column-rank.
# This lets us use unpivoted QR instead of pivoted QR or SVD.
assert initial_independent_cols.shape[0] == m.shape[0]
q = _spl.qr(initial_independent_cols, mode='econ')[0]
# proj_m = (I - qq')m
Expand Down Expand Up @@ -900,9 +902,6 @@ def real_matrix_log(m, action_if_imaginary="raise", tol=1e-8):


## ------------------------ Erik : Matrix tools that Tim has moved here -----------
from scipy.linalg import sqrtm as _sqrtm
import itertools as _ittls


def column_basis_vector(i, dim):
"""
Expand Down

0 comments on commit 14c444b

Please sign in to comment.