Skip to content

Commit 8d193bb

Browse files
authored
[Compat] TensorKitSectors v0.3 (#32)
* TensorKitSectors 0.3 * update Readme syntax
1 parent e2b5c9a commit 8d193bb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "CategoryData"
22
uuid = "8fccf25a-f50e-468c-8fba-3cb130506274"
33
authors = ["Lukas Devos", "Jacob Bridgeman"]
4-
version = "0.3.4"
4+
version = "0.3.5"
55

66
[deps]
77
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
@@ -20,7 +20,7 @@ SHA = "0.7, 1"
2020
SparseArrayKit = "0.4"
2121
Tar = "1"
2222
TensorOperations = "5"
23-
TensorKitSectors = "0.1.7, 0.2"
23+
TensorKitSectors = "0.3"
2424
TestExtras = "0.3"
2525
julia = "1.10"
2626

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ using TensorKit, CategoryData
3131
𝒪 = Object{𝒞}
3232
@show collect(values(𝒪)) # 1 -> I, 2 -> τ
3333

34-
t = TensorMap(rand, ComplexF64, Vect[𝒪](1 => 2, 2 => 2) Vect[𝒪](1 =>2, 2 => 2))
34+
t = rand(ComplexF64, Vect[𝒪](1 => 2, 2 => 2) Vect[𝒪](1 =>2, 2 => 2))
3535
```
3636

3737
## `@objectnames`
@@ -50,7 +50,7 @@ julia> ob(:τ)
5050
julia> Vect[ob](:I=>1,:τ=>2)
5151
Vect[Object{Fib}](:I=>1, :τ=>2)
5252

53-
julia> TensorMap(rand, ComplexF64, Vect[ob](:I => 1, :τ => 2) Vect[ob](:I => 1, :τ => 2))
53+
julia> rand(ComplexF64, Vect[ob](:I => 1, :τ => 2) Vect[ob](:I => 1, :τ => 2))
5454
TensorMap(Vect[Object{Fib}](:I=>1, :τ=>2) Vect[Object{Fib}](:I=>1, :τ=>2)):
5555
* Data for fusiontree FusionTree{Object{Fib}}((:I,), :I, (false,), ()) FusionTree{Object{Fib}}((:I,), :I, (false,), ()):
5656
0.15222115844866924 + 0.32002944990015136im

src/objects.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ function TensorKitSectors.:⊗(a::I, b::I) where {I <: Object}
3636
return Iterators.filter(c -> Nsymbol(a, b, c) > 0, values(I))
3737
end
3838

39-
Base.one(::Type{<:Object{F}}) where {F} = Object{F}(1)
40-
function Base.conj(a::Object{F}) where {F}
39+
TensorKitSectors.unit(::Type{<:Object{F}}) where {F} = Object{F}(1)
40+
function TensorKitSectors.dual(a::Object{F}) where {F}
4141
if selfduality(F) == 0
4242
return a
4343
else

0 commit comments

Comments
 (0)