Skip to content

Commit ed4dbf4

Browse files
committed
add note
1 parent c7db627 commit ed4dbf4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/MPS.jl

+1
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,7 @@ function LinearAlgebra.normalize!(::Canonical, ψ::AbstractMPO; bond=nothing)
738738

739739
# γ are Γ tensors with neighbor Λ tensors contracted => γ = Λ Γ Λ
740740
# i.e. it's half reduced density matrix for the site, so it's norm is the total norm too
741+
# NOTE this works only if the state is correctly canonized!
741742
γa, γb = contract(Γa, Λab; dims=Symbol[]), contract(Γb, Λab; dims=Symbol[])
742743

743744
# open boundary conditions

0 commit comments

Comments
 (0)