Skip to content

Commit a7eb5cc

Browse files
fix typo in localupdate_step for VOMPS algorithm (#275)
1 parent a59d1c0 commit a7eb5cc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-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.operator, 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.operator, 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

test/algorithms.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,10 @@ end
701701
W2 = MPSKit.DenseMPO(sW2)
702702

703703
ψ1, _ = approximate(ψ0, (sW1, ψ), VOMPS(; verbosity))
704+
MPSKit.Defaults.set_scheduler!(:serial)
704705
ψ2, _ = approximate(ψ0, (W2, ψ), VOMPS(; verbosity))
706+
MPSKit.Defaults.set_scheduler!()
707+
705708
ψ3, _ = approximate(ψ0, (W1, ψ), IDMRG(; verbosity))
706709
ψ4, _ = approximate(ψ0, (sW2, ψ), IDMRG2(; trscheme=truncdim(12), verbosity))
707710
ψ5, _ = timestep(ψ, H, 0.0, dt, TDVP())

0 commit comments

Comments
 (0)