Skip to content

Commit 51e85b5

Browse files
committed
edit braiding styles znelement
1 parent 5357639 commit 51e85b5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/groupelements.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,9 @@ Base.hash(c::ZNElement, h::UInt) = hash(c.n, h)
149149
Base.isless(c1::ZNElement{N, p}, c2::ZNElement{N, p}) where {N, p} = isless(c1.n, c2.n)
150150

151151
# Experimental
152-
BraidingStyle(::Type{ZNElement{N, 0}}) where {N} = Bosonic()
153-
Rsymbol(a::ZNElement{N, 0}, b::ZNElement{N, 0}, c::ZNElement{N, 0}) where {N} = ifelse(a * b == c, 1, zero(1))
152+
BraidingStyle(::Type{ZNElement{N, p}}) where {N, p} = p == 0 ? SymmetricBraiding() : NoBraiding()
154153

155-
BraidingStyle(::Type{ZNElement{N, p}}) where {N, p} = NoBraiding()
154+
Rsymbol(a::ZNElement{N, 0}, b::ZNElement{N, 0}, c::ZNElement{N, 0}) where {N} = ifelse(a * b == c, 1, zero(1))
156155
# function Rsymbol(a::ZNElement{N, p}, b::ZNElement{N, p}, c::ZNElement{N, p}) where {N, p}
157156
# R = cispi(2 * p * a.n * b.n / N^2)
158157
# return ifelse(c == a * b, R, zero(R))

0 commit comments

Comments
 (0)