Skip to content

Commit 016deea

Browse files
committed
fixed DMRG for BlockUniTensor to account for the new index order after Dagger
1 parent 557d6e1 commit 016deea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

example/DMRG/dmrg_two_sites_U1.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def optimize_psi(psi, functArgs, maxit=2, krydim=4):
111111
anet.FromString(["L: -2,-1,-3",\
112112
"A: -1,-4,1",\
113113
"M: -2,0,-4,-5",\
114-
"A_Conj: -3,-5,2",\
114+
"A_Conj: 2,-3,-5",\
115115
"TOUT: 0;1,2"])
116116
for p in range(Nsites - 1):
117117
anet.PutUniTensors(["L","A","A_Conj","M"],[LR[p],A[p],A[p].Dagger(),M])
@@ -143,7 +143,7 @@ def optimize_psi(psi, functArgs, maxit=2, krydim=4):
143143
anet.FromString(["R: -2,-1,-3",\
144144
"B: 1,-4,-1",\
145145
"M: 0,-2,-4,-5",\
146-
"B_Conj: 2,-5,-3",\
146+
"B_Conj: -3,2,-5",\
147147
"TOUT: 0;1,2"])
148148
anet.PutUniTensors(["R","B","M","B_Conj"],[LR[p+2],A[p+1],M,A[p+1].Dagger()])
149149
LR[p+1] = anet.Launch()
@@ -177,7 +177,7 @@ def optimize_psi(psi, functArgs, maxit=2, krydim=4):
177177
anet.FromString(["L: -2,-1,-3",\
178178
"A: -1,-4,1",\
179179
"M: -2,0,-4,-5",\
180-
"A_Conj: -3,-5,2",\
180+
"A_Conj: 2,-3,-5",\
181181
"TOUT: 0;1,2"])
182182
anet.PutUniTensors(["L","A","A_Conj","M"],[LR[p],A[p],A[p].Dagger(),M])
183183
LR[p+1] = anet.Launch()

0 commit comments

Comments
 (0)