Skip to content

Commit

Permalink
Update fundamentals.jl
Browse files Browse the repository at this point in the history
Modified function MPOtoVector to fix the bug spotted by Masaaki Tokieda.
  • Loading branch information
angelariva authored Sep 5, 2024
1 parent 344a21b commit a402c81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fundamentals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ Convert an ITensors chain MPO into a form compatible with MPSDynamics
"""
function MPOtoVector(mpo::MPO)
N = length(mpo)
H = [Array(mpo[i], mpo[i].inds...) for i=1:N]
H = [Array(mpo[i], inds(mpo[i])...) for i=1:N]
dims=size(H[1])
H[1] = reshape(H[1], 1, dims...)
dims=size(H[N])
Expand Down

0 comments on commit a402c81

Please sign in to comment.