Skip to content

Commit

Permalink
Fix typo attempt III
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Jul 3, 2024
1 parent 7a161da commit f59697a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operators/localoperator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ function Base.repeat(H::PEPSHamiltonian, m::Int, n::Int)
terms = []
for (inds, operator) in H.terms, i in 1:m, j in 1:n
offset = CartesianIndex((i - 1) * size(H.lattice, 1), (j - 1) * size(H.lattice, 2))
push!(terms, (inds + offset) => operator)
push!(terms, (inds .+ Ref(offset)) => operator)
end
return PEPSHamiltonian(lattice, terms...)
end
Expand Down

0 comments on commit f59697a

Please sign in to comment.