From fe27554db96307e24e7c9aecca7bcc692e5a92a4 Mon Sep 17 00:00:00 2001 From: meandmytram Date: Mon, 30 Oct 2023 01:08:04 -0400 Subject: [PATCH] typing fix --- mdopt/mps/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mdopt/mps/utils.py b/mdopt/mps/utils.py index 54b22948..99e4dfc5 100644 --- a/mdopt/mps/utils.py +++ b/mdopt/mps/utils.py @@ -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 ) @@ -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))