Skip to content

Commit 8f55ff0

Browse files
fix typo in localupdate_step for VOMPS algorithm
1 parent 939c885 commit 8f55ff0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/algorithms/approximate/vomps.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ function localupdate_step!(::IterativeSolver{<:VOMPS}, state::VOMPSState{<:Any,<
6565
dst_ACs = state.mps isa Multiline ? eachcol(ACs) : ACs
6666

6767
foreach(eachsite) do site
68-
AC = circshift([ac_proj(row, loc, state.mps, state.toapprox, state.envs)
68+
AC = circshift([ac_proj(row, site, state.mps, state.toapprox, state.envs)
6969
for row in 1:size(state.mps, 1)], 1)
70-
C = circshift([c_proj(row, loc, state.mps, state.toapprox, state.envs)
70+
C = circshift([c_proj(row, site, state.mps, state.toapprox, state.envs)
7171
for row in 1:size(state.mps, 1)], 1)
7272
dst_ACs[site] = regauge!(AC, C; alg=alg_orth)
7373
return nothing

0 commit comments

Comments
 (0)