Skip to content

Commit 5153333

Browse files
committed
add comments on O(2)
1 parent 2e29af1 commit 5153333

File tree

1 file changed

+10
-1
lines changed
  • NDTensors/src/lib/Sectors/src/category_definitions

1 file changed

+10
-1
lines changed

NDTensors/src/lib/Sectors/src/category_definitions/o2.jl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@
33
# isomorphic to Z_2 ⋉ U(1)
44
# isomorphic to SU(2) subgroup with Sz conservation + Sz-reversal
55
#
6+
# O(2) has 3 kinds of irreps:
7+
# - trivial irrep, or "0e", corresponds to Sz=0 and even under Sz-reversal
8+
# - "zero odd", or "0o" irrep, corresponds to Sz=0 and odd under Sz-reversal
9+
# - 2-dimensional Sz=±|m| irrep, with m a half integer
10+
#
611

12+
# here we use only one half-integer as label:
13+
# - l=0 for trivial
14+
# - l=-1 for zero odd
15+
# - l=+|m| for Sz=±|m|
716
struct O2 <: AbstractCategory
817
l::HalfIntegers.Half{Int}
918
end
@@ -15,7 +24,7 @@ category_label(s::O2) = s.l
1524
trivial(::Type{O2}) = O2(0)
1625
zero_odd(::Type{O2}) = O2(-1)
1726

18-
_iszero(s::O2) = _iszero(category_label(s))
27+
_iszero(s::O2) = _iszero(category_label(s)) # matches both 0e and 0o
1928
_iszero_even(s::O2) = _iszero_even(category_label(s))
2029
_iszero_odd(s::O2) = _iszero_odd(category_label(s))
2130

0 commit comments

Comments
 (0)