Skip to content

Commit

Permalink
ensure "linalg.expm" -> "scipy.linalg.expm" (fixes #275)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmgray committed Jan 6, 2025
1 parent e65591a commit 7a344e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions quimb/tensor/decomp.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Functions for decomposing and projecting matrices.
"""
"""Functions for decomposing and projecting matrices."""

import functools
import operator
Expand Down Expand Up @@ -999,7 +998,7 @@ def isometrize_exp(x, backend):
"pad", x, [[0, d - m], [0, d - n]], "constant", constant_values=0.0
)
x = x - dag(x)
Q = do("linalg.expm", x)
Q = do("scipy.linalg.expm", x)
return Q[:m, :n]


Expand Down
2 changes: 1 addition & 1 deletion quimb/tensor/tensor_arbgeom_tebd.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def _expm_cached(self, G, x):
range(ndim_G // 2, ndim_G),
)

U = do("linalg.expm", G * x)
U = do("scipy.linalg.expm", G * x)

if need_to_reshape:
U = do("reshape", U, shape_orig)
Expand Down

0 comments on commit 7a344e2

Please sign in to comment.