File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -200,6 +200,8 @@ TensorKit.spacetype(ψtype::Type{<:AbstractMPS}) = spacetype(site_type(ψtype))
200200TensorKit. sectortype (ψ:: AbstractMPS ) = sectortype (typeof (ψ))
201201TensorKit. sectortype (ψtype:: Type{<:AbstractMPS} ) = sectortype (site_type (ψtype))
202202
203+ TensorKit. storagetype (ψtype:: Type{<:AbstractMPS} ) = storagetype (site_type (ψtype))
204+
203205"""
204206 left_virtualspace(ψ::AbstractMPS, [pos=1:length(ψ)])
205207
Original file line number Diff line number Diff line change 387387
388388site_type (:: Type{<:FiniteMPS{A}} ) where {A} = A
389389bond_type (:: Type{<:FiniteMPS{<:Any, B}} ) where {B} = B
390- function TensorKit. storagetype (:: Union{MPS, Type{MPS}} ) where {A, MPS <: FiniteMPS{A} }
391- return storagetype (A)
392- end
393390
394391function left_virtualspace (ψ:: FiniteMPS , n:: Integer )
395392 checkbounds (ψ, n)
You can’t perform that action at this time.
0 commit comments