Skip to content

Commit f387e36

Browse files
Update src/states/infiniteweightpeps.jl
Co-authored-by: Lukas Devos <ldevos98@gmail.com>
1 parent e82d227 commit f387e36

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/states/infiniteweightpeps.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ end
176176
function InfiniteWeightPEPS(
177177
f, T, Pspaces::M, Nspaces::M, Espaces::M=Nspaces
178178
) where {M<:AbstractMatrix{<:Union{Int,ElementarySpace}}}
179-
@assert all(!isdual(Pspace) for Pspace in Pspaces)
180-
@assert all(!isdual(Nspace) for Nspace in Nspaces)
181-
@assert all(!isdual(Espace) for Espace in Espaces)
179+
@assert all(!isdual, Pspaces)
180+
@assert all(!isdual, Nspaces)
181+
@assert all(!isdual, Espaces)
182182
vertices = InfinitePEPS(f, T, Pspaces, Nspaces, Espaces).A
183183
Nr, Nc = size(vertices)
184184
weights = map(Iterators.product(1:2, 1:Nr, 1:Nc)) do (d, r, c)

0 commit comments

Comments
 (0)