Skip to content

Commit 61fa786

Browse files
committed
more merge changes + add IsingBimodule to sectorlist
1 parent 617fc6c commit 61fa786

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/setup.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ end
2525
function randsector(::Type{I}) where {I <: Sector}
2626
s = collect(smallset(I))
2727
a = rand(s)
28-
while a == one(a) # don't use trivial label
28+
while isunit(a) # don't use trivial label
2929
a = rand(s)
3030
end
3131
return a
3232
end
3333
function hasfusiontensor(I::Type{<:Sector})
34+
isa(UnitStyle(I), GenericUnit) && return false
3435
try
35-
TensorKit.fusiontensor(one(I), one(I), one(I))
36+
TensorKit.fusiontensor(unit(I), unit(I), unit(I))
3637
return true
3738
catch e
3839
if e isa MethodError
@@ -81,6 +82,7 @@ sectorlist = (
8182
FermionParity U1Irrep SU2Irrep, FermionParity SU2Irrep SU2Irrep, # Hubbard-like
8283
FibonacciAnyon, IsingAnyon,
8384
Z2Irrep FibonacciAnyon FibonacciAnyon,
85+
IsingBimodule, IsingBimodule SU2Irrep, IsingBimodule IsingBimodule,
8486
)
8587

8688
# spaces
@@ -158,5 +160,6 @@ Vfib = (
158160
Vect[FibonacciAnyon](:I => 2, => 3),
159161
Vect[FibonacciAnyon](:I => 2, => 2),
160162
)
163+
#TODO: add IsingBimodule spaces
161164

162165
end

0 commit comments

Comments
 (0)