Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/states/infinitemps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,12 @@
site_type(::Type{<:InfiniteMPS{A}}) where {A} = A
bond_type(::Type{<:InfiniteMPS{<:Any,B}}) where {B} = B

left_virtualspace(ψ::InfiniteMPS) = left_virtualspace.(ψ.AL)

Check warning on line 252 in src/states/infinitemps.jl

View check run for this annotation

Codecov / codecov/patch

src/states/infinitemps.jl#L252

Added line #L252 was not covered by tests
left_virtualspace(ψ::InfiniteMPS, n::Integer) = left_virtualspace(ψ.AL[n])
right_virtualspace(ψ::InfiniteMPS) = right_virtualspace.(ψ.AL)

Check warning on line 254 in src/states/infinitemps.jl

View check run for this annotation

Codecov / codecov/patch

src/states/infinitemps.jl#L254

Added line #L254 was not covered by tests
right_virtualspace(ψ::InfiniteMPS, n::Integer) = right_virtualspace(ψ.AL[n])
physicalspace(ψ::InfiniteMPS) = physicalspace.(ψ.AL)
physicalspace(ψ::InfiniteMPS, n::Integer) = physicalspace(ψ.AL[n])
physicalspace(ψ::InfiniteMPS) = PeriodicArray(map(Base.Fix1(physicalspace, ψ), 1:length(ψ)))

# TensorKit.space(ψ::InfiniteMPS{<:MPSTensor}, n::Integer) = space(ψ.AC[n], 2)
# function TensorKit.space(ψ::InfiniteMPS{<:GenericMPSTensor}, n::Integer)
Expand Down
Loading