Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
Fix normalize! function
Browse files Browse the repository at this point in the history
  • Loading branch information
jofrevalles committed Jun 20, 2024
1 parent 35517ba commit c8140cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ansatz/Chain.jl
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ to mixed-canonized form with the given center site.
"""
function LinearAlgebra.normalize!(tn::Chain, root::Site; p::Real = 2)
mixed_canonize!(tn, root)
normalize!(tensors(Quantum(tn); at = root), p)
normalize!(tensors(tn; between = (Site(id(root)-1), root)), p)
return tn
end

Expand Down

0 comments on commit c8140cf

Please sign in to comment.