Skip to content

Commit 0f50dc5

Browse files
committed
Fix off-by-one error
1 parent df76b90 commit 0f50dc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/environments/qp_envs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function environments(qp::MultilineQP, operator::MultilineMPO, lenvs, renvs; kwa
4646
end
4747

4848
function environments(exci::InfiniteQP, H::InfiniteMPOHamiltonian, lenvs, renvs; kwargs...)
49-
ids = findall(Base.Fix1(isidentitylevel, H), 2:(size(H[1], 1) - 1))
49+
ids = findall(Base.Fix1(isidentitylevel, H), 2:(size(H[1], 1) - 1)) .+ 1
5050
solver = environment_alg(exci, H, exci; kwargs...)
5151

5252
AL = exci.left_gs.AL

0 commit comments

Comments
 (0)