Skip to content

Commit

Permalink
Add empty tensor check infinitepeps constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed May 30, 2024
1 parent f7987d0 commit 2fafbaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/states/infinitepeps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ struct InfinitePEPS{T<:PEPSTensor} <: AbstractPEPS
)
space(A[d, w], 3) == space(A[d, _next(w, end)], 5)' ||
throw(SpaceMismatch("East virtual space at site $((d, w)) does not match."))
dim(space(A)) > 0 || @warn "no fusion channels at site ($d, $w)"
end
return new{T}(A)
end
Expand Down

0 comments on commit 2fafbaa

Please sign in to comment.