Skip to content

Commit

Permalink
[ITensors] Fix performance bug in svdMPO involving unnecessarily la…
Browse files Browse the repository at this point in the history
…rge intermediate weight matrices (#1231)
  • Loading branch information
b-kloss authored Nov 3, 2023
1 parent 5a70eff commit 063ccbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/physics/autompo/opsum_to_mpo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function svdMPO(ValType::Type{<:Number}, os::OpSum{C}, sites; kwargs...)::MPO wh
return (only(site(t[1])) <= n <= only(site(t[end])))
end

rightmaps = fill(Dict{Vector{Op},Int}(), N)
rightmaps = [Dict{Vector{Op},Int}() for _ in 1:N]

for n in 1:N
leftbond_coefs = MatElem{ValType}[]
Expand Down

0 comments on commit 063ccbe

Please sign in to comment.