Skip to content

Commit

Permalink
use add_util_mpoleg in LocalOperator
Browse files Browse the repository at this point in the history
  • Loading branch information
borisdevos committed Oct 28, 2024
1 parent ba6ca1a commit 3a9adf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operators/localoperators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function LocalOperator(t::AbstractTensorMap{<:Any,N,N},
inds::Vararg{G,N}) where {N,G<:LatticePoint}
p = TupleTools.sortperm(linearize_index.(inds))
t = permute(t, (p, p .+ N))
t_mpo = collect(MPSKit.decompose_localmpo(MPSKit.add_util_leg(t)))
t_mpo = collect(MPSKit.decompose_localmpo(MPSKit.add_util_mpoleg(t)))

return LocalOperator{eltype(t_mpo),G}(t_mpo, collect(getindex.(Ref(inds), p)))
end
Expand Down

0 comments on commit 3a9adf2

Please sign in to comment.