Skip to content

Commit

Permalink
Add type alias for ℤ₁ = ℤ{1}
Browse files Browse the repository at this point in the history
  • Loading branch information
waltergu committed Dec 9, 2024
1 parent 60e7ec7 commit f59df53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/QuantumLattices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export idtype, ishermitian, isscalartype, latexname, latexformat, matrix, script
include("QuantumNumbers.jl")
using .QuantumNumbers
export Abelian, AbelianQuantumNumber, AbelianGradedSpace, AbelianGradedSpaceProd, AbelianGradedSpaceSum, CompositeAbelianQuantumNumber, Graded, Momenta, RepresentationSpace, SimpleAbelianQuantumNumber
export Momentum, Momentum₁, Momentum₂, Momentum₃, ℕ, 𝕊ᶻ, 𝕌₁, ℤ, ℤ₂, ℤ₃, ℤ₄, findindex, period, periods, regularize, regularize!
export Momentum, Momentum₁, Momentum₂, Momentum₃, ℕ, 𝕊ᶻ, 𝕌₁, ℤ, ℤ₁, ℤ₂, ℤ₃, ℤ₄, findindex, period, periods, regularize, regularize!

# Spatials
include("Spatials.jl")
Expand Down
6 changes: 4 additions & 2 deletions src/QuantumNumbers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import ..QuantumLattices: ⊕, ⊗, ⊠, decompose, dimension, rank
import ..Toolkit: shape

export Abelian, AbelianQuantumNumber, AbelianQuantumNumberProd, AbelianGradedSpace, AbelianGradedSpaceProd, AbelianGradedSpaceSum, Graded, Momenta, RepresentationSpace, SimpleAbelianQuantumNumber
export Momentum, Momentum₁, Momentum₂, Momentum₃, ℕ, 𝕊ᶻ, 𝕌₁, ℤ, ℤ₂, ℤ₃, ℤ₄, findindex, period, periods, regularize, regularize!
export Momentum, Momentum₁, Momentum₂, Momentum₃, ℕ, 𝕊ᶻ, 𝕌₁, ℤ, ℤ₁, ℤ₂, ℤ₃, ℤ₄, findindex, period, periods, regularize, regularize!

"""
AbelianQuantumNumber
Expand Down Expand Up @@ -167,12 +167,14 @@ end
@inline Base.show(io::IO, ::Type{ℤ{N}}) where N = @printf io "ℤ%s" N<5 ? subscript(N) : string("{", N, "}")

"""
const ℤ₁ = ℤ{1}
const ℤ₂ = ℤ{2}
const ℤ₃ = ℤ{3}
const ℤ₄ = ℤ{4}
Alias for ℤ₂/ℤ₃/ℤ₄ quantum numbers.
Alias for ℤ₁/ℤ₂/ℤ₃/ℤ₄ quantum numbers.
"""
const ℤ₁ = ℤ{1}
const ℤ₂ = ℤ{2}
const ℤ₃ = ℤ{3}
const ℤ₄ = ℤ{4}
Expand Down

0 comments on commit f59df53

Please sign in to comment.