From f3f1519fec609ceab5e9a392a36c3945f9827105 Mon Sep 17 00:00:00 2001 From: Mingru Yang Date: Sun, 19 Mar 2023 11:05:45 +0100 Subject: [PATCH] Update idmrg.h Make the index match if resume from a returned idmrg. --- idmrg.h | 1 + 1 file changed, 1 insertion(+) diff --git a/idmrg.h b/idmrg.h index ca05649..9beba3b 100644 --- a/idmrg.h +++ b/idmrg.h @@ -124,6 +124,7 @@ idmrg(MPS & psi, if(psi(0)) { + psi.ref(1) *= psi(0); lastV = dag(psi(0)); lastV /= norm(lastV); lastV.apply(detail::PseudoInvert(0));