@@ -58,13 +58,13 @@ struct FiniteMPS{A<:GenericMPSTensor,B<:MPSBondTensor} <: AbstractFiniteMPS
5858 function FiniteMPS {A,B} (ALs:: Vector{Union{Missing,A}} , ARs:: Vector{Union{Missing,A}} ,
5959 ACs:: Vector{Union{Missing,A}} ,
6060 Cs:: Vector{Union{Missing,B}} ) where {A<: GenericMPSTensor ,
61- B<: MPSBondTensor }
61+ B<: MPSBondTensor }
6262 return new {A,B} (ALs, ARs, ACs, Cs)
6363 end
6464 function FiniteMPS (ALs:: Vector{Union{Missing,A}} , ARs:: Vector{Union{Missing,A}} ,
6565 ACs:: Vector{Union{Missing,A}} ,
6666 Cs:: Vector{Union{Missing,B}} ) where {A<: GenericMPSTensor ,
67- B<: MPSBondTensor }
67+ B<: MPSBondTensor }
6868 length (ACs) == length (Cs) - 1 == length (ALs) == length (ARs) ||
6969 throw (DimensionMismatch (" length mismatch of tensors" ))
7070 sum (ismissing .(ACs)) + sum (ismissing .(Cs)) < length (ACs) + length (Cs) ||
@@ -161,7 +161,7 @@ function center(ψ::FiniteMPS)::HalfInt
161161 if isnothing (center)
162162 center = findfirst (! ismissing, ψ. Cs)
163163 isnothing (center) && throw (ArgumentError (" No center found, invalid state" ))
164- return (center - 1 / 2 )
164+ return (center - 1 / 2 )
165165 end
166166 isnothing (center) && throw (ArgumentError (" No center found, invalid state" ))
167167 return center
@@ -494,7 +494,7 @@ function TensorKit.norm(ψ::FiniteMPS)
494494 if isinteger (c) # center is an AC
495495 return norm (ψ. AC[Int (c)])
496496 else # center is a bond-tensor
497- return norm (ψ. C[Int (c - 1 / 2 )])
497+ return norm (ψ. C[Int (c - 1 / 2 )])
498498 end
499499end
500500TensorKit. normalize! (ψ:: FiniteMPS ) = rmul! (ψ, 1 / norm (ψ))
0 commit comments