Skip to content

Commit 4d52577

Browse files
authored
[Compat] TensorKitSectors v0.3 (#39)
* Bump TKS version * change TKS interface * update tests
1 parent 5f70f28 commit 4d52577

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SUNRepresentations"
22
uuid = "1a50b95c-7aac-476d-a9ce-2bfc675fc617"
33
authors = ["Maarten Van Damme <Maarten.VanDamme@UGent.be>, Jutho Haegeman <jutho.haegeman@ugent.be> and Lukas Devos <lukas.devos@UGent.be>"]
4-
version = "0.3.2"
4+
version = "0.3.3"
55

66
[deps]
77
JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
@@ -34,8 +34,8 @@ Random = "1"
3434
RationalRoots = "0.1 - 0.2"
3535
Scratch = "1"
3636
SparseArrayKit = "0.4"
37-
TensorKit = "0.14.1, 0.15"
38-
TensorKitSectors = "0.1.1, 0.2"
37+
TensorKit = "0.15"
38+
TensorKitSectors = "0.3"
3939
TensorOperations = "5"
4040
Test = "1"
4141
TestExtras = "0.3"

src/sector.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ end
3030

3131
Base.:(==)(s::SUNIrrep, t::SUNIrrep) = ==(s.I, t.I)
3232
Base.hash(s::SUNIrrep, h::UInt) = hash(s.I, h)
33-
Base.conj(s::SUNIrrep) = SUNIrrep(s.I[1] .- reverse(s.I))
34-
Base.one(::Type{SUNIrrep{N}}) where {N} = SUNIrrep(ntuple(n -> 0, N))
33+
TensorKitSectors.dual(s::SUNIrrep) = SUNIrrep(s.I[1] .- reverse(s.I))
34+
TensorKitSectors.unit(::Type{SUNIrrep{N}}) where {N} = SUNIrrep(ntuple(n -> 0, N))
3535

3636
TensorKitSectors.FusionStyle(::Type{<:SUNIrrep}) = GenericFusion()
3737
TensorKitSectors.BraidingStyle(::Type{<:SUNIrrep}) = Bosonic()

test/sectors.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ for I in sectorlist
1717
@test @constinferred(one(s[1])) == @constinferred(one(I))
1818
@constinferred dual(s[1])
1919
@constinferred dim(s[1])
20-
@constinferred frobeniusschur(s[1])
20+
@constinferred frobenius_schur_phase(s[1])
21+
@constinferred frobenius_schur_indicator(s[1])
2122
@constinferred Nsymbol(s...)
2223
@constinferred Rsymbol(s...)
2324
@constinferred Bsymbol(s...)

0 commit comments

Comments
 (0)