File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 2525function 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
3232end
3333function 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
162165end
You can’t perform that action at this time.
0 commit comments