@@ -14,10 +14,10 @@ using FusionTensors:
1414 matrix_size,
1515 ndims_domain,
1616 ndims_codomain
17- using GradedUnitRanges:
18- blockmergesort, dual, flip, fusion_product, gradedrange, sector_type, space_isequal
17+ using GradedUnitRanges: blockmergesort, dual, flip, gradedrange, sector_type, space_isequal
1918using SymmetrySectors: U1, SU2, SectorProduct, TrivialSector, Z
2019using TensorAlgebra: tuplemortar
20+ using TensorProducts: tensor_product
2121
2222include (" setup.jl" )
2323
@@ -27,10 +27,11 @@ include("setup.jl")
2727
2828 # check dual convention when initializing data_matrix
2929 ft0 = FusionTensor (Float64, (g1,), (g2,))
30+ @test ft0 isa FusionTensor
3031 @test space_isequal (matrix_row_axis (ft0), g1)
3132 @test space_isequal (matrix_column_axis (ft0), g2)
3233
33- m = BlockSparseArray {Float64} (g1, g2)
34+ m = BlockSparseArray {Float64} (undef, g1, g2)
3435 ft1 = FusionTensor (m, (g1,), (g2,))
3536
3637 # getters
104105 g2 = gradedrange ([U1 (0 ) => 2 , U1 (1 ) => 2 , U1 (3 ) => 1 ])
105106 g3 = dual (gradedrange ([U1 (- 1 ) => 1 , U1 (0 ) => 2 , U1 (1 ) => 1 ]))
106107 g4 = dual (gradedrange ([U1 (- 1 ) => 1 , U1 (0 ) => 1 , U1 (1 ) => 1 ]))
107- gr = fusion_product (g1, g2)
108- gc = dual (fusion_product (dual (g3), dual (g4)))
109- m2 = BlockSparseArray {Float64} (gr, gc)
108+ gr = tensor_product (g1, g2)
109+ gc = dual (tensor_product (dual (g3), dual (g4)))
110+ m2 = BlockSparseArray {Float64} (undef, gr, gc)
110111 ft = FusionTensor (m2, (g1, g2), (g3, g4))
111112
112113 @test data_matrix (ft) == m2
249250 @test_throws DimensionMismatch ft7 * ft3
250251end
251252
252- @testset " mising SectorProduct" begin
253+ @testset " missing SectorProduct" begin
253254 g1 = gradedrange ([SectorProduct (U1 (1 )) => 1 ])
254255 g2 = gradedrange ([SectorProduct (U1 (1 ), SU2 (1 // 2 )) => 1 ])
255256 g3 = gradedrange ([SectorProduct (U1 (1 ), SU2 (1 // 2 ), Z {2} (1 )) => 1 ])
267268 gA = gradedrange ([SectorProduct (; A= U1 (1 )) => 1 ])
268269 gB = gradedrange ([SectorProduct (; B= SU2 (1 // 2 )) => 1 ])
269270 gC = gradedrange ([SectorProduct (; C= Z {2} (0 )) => 1 ])
270- gABC = fusion_product ( fusion_product ( gA, gB) , gC)
271+ gABC = tensor_product ( gA, gB, gC)
271272 S = sector_type (gABC)
272273
273274 ft = FusionTensor (Float64, (gA, gB), (dual (gA), dual (gB), gC))
0 commit comments