Skip to content

Commit ccedb36

Browse files
committed
make formatter happy
1 parent 6285317 commit ccedb36

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

src/TensorKitSectors.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# Superselection sectors (quantum numbers):
2-
# for defining graded vector spaces and invariant subspaces of tensor products
3-
#==========================================================================================#
4-
51
module TensorKitSectors
62

73
# exports

src/anyons.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Sectors corresponding to simplest fusion categories that are not group representations.
2+
#---------------------------------------------------------------------------------------#
3+
14
# PlanarTrivial
25
"""
36
struct PlanarTrivial <: Sector

src/fermions.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ See also: [`SU2Irrep`](@ref), [`FermionParity`](@ref)
9797
"""
9898
const FermionSpin = SU2Irrep FermionParity
9999
const fSU₂ = FermionSpin
100-
FermionSpin(j::Real) = (s = SU2Irrep(j);
101-
s FermionParity(isodd(twice(s.j))))
100+
FermionSpin(j::Real) = (s=SU2Irrep(j); s FermionParity(isodd(twice(s.j))))
102101
type_repr(::Type{FermionSpin}) = "FermionSpin"
103102

104103
# convenience default converter -> allows Vect[FermionSpin](1 => 1)

src/irreps.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# Sectors corresponding to irreducible representations of compact groups
2-
#==============================================================================#
3-
# Irreps of groups
42
#------------------------------------------------------------------------------#
53
"""
64
abstract type AbstractIrrep{G<:Group} <: Sector end
@@ -143,7 +141,7 @@ function Base.getindex(::SectorValues{U1Irrep}, i::Int)
143141
return U1Irrep(iseven(i) ? half(i >> 1) : -half(i >> 1))
144142
end
145143
function findindex(::SectorValues{U1Irrep}, c::U1Irrep)
146-
return (n = twice(c.charge); 2 * abs(n) + (n <= 0))
144+
return (n=twice(c.charge); 2 * abs(n) + (n <= 0))
147145
end
148146

149147
Base.hash(c::U1Irrep, h::UInt) = hash(c.charge, h)

src/product.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Deligne tensor product of different sectors: ⊠
2-
#==============================================================================#
2+
#------------------------------------------------------------------------------#
33
const SectorTuple = Tuple{Vararg{Sector}}
44

55
"""

0 commit comments

Comments
 (0)