Skip to content

Commit

Permalink
typing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
meandmytram committed Oct 30, 2023
1 parent 861a78b commit fe27554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mdopt/mps/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def mps_from_dense(

state_vector = state_vector.reshape((-1, phys_dim))

state_vector, singular_values_local, v_r = svd(
state_vector, singular_values_local, v_r, _ = svd(
state_vector, chi_max=chi_max, renormalise=False
)

Expand All @@ -315,7 +315,7 @@ def mps_from_dense(

bond_dim = state_vector.shape[-1]
state_vector = state_vector.reshape((-1, phys_dim * bond_dim))
state_vector, singular_values_local, v_r = svd(
state_vector, singular_values_local, v_r, _ = svd(
state_vector, chi_max=chi_max, renormalise=False
)
v_r = v_r.reshape((-1, phys_dim, bond_dim))
Expand Down

0 comments on commit fe27554

Please sign in to comment.