diff --git a/Project.toml b/Project.toml index d8cf8f5..ef896d1 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "FusionTensors" uuid = "e16ca583-1f51-4df0-8e12-57d32947d33e" authors = ["ITensor developers and contributors"] -version = "0.5.2" +version = "0.5.3" [deps] Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697" @@ -20,7 +20,7 @@ WignerSymbols = "9f57e263-0b3d-5e2e-b1be-24f2bb48858b" [compat] Accessors = "0.1.42" -BlockArrays = "1.6" +BlockArrays = "1.7" BlockSparseArrays = "0.7.4" GradedArrays = "0.4.14" HalfIntegers = "1.6" diff --git a/src/fusiontensor/fusiontensor.jl b/src/fusiontensor/fusiontensor.jl index 6b6b76b..45e6d17 100644 --- a/src/fusiontensor/fusiontensor.jl +++ b/src/fusiontensor/fusiontensor.jl @@ -27,12 +27,6 @@ using TensorProducts: tensor_product using TypeParameterAccessors: type_parameters # ======================================= Misc =========================================== - -function to_blockindexrange(b1::BlockIndexRange{1}, b2::BlockIndexRange{1}) - t = (b1, b2) - return Block(Block.(t))[to_block_indices.(t)...] -end - function flip_domain(nonflipped_col_axis, nonflipped_trees_to_ranges) col_axis = dual(nonflipped_col_axis) domain_trees_to_ranges_mapping = Dict( @@ -93,7 +87,7 @@ function intersect_codomain_domain( Iterators.product(codomain_trees_to_ranges_mapping, domain_trees_to_ranges_mapping), ), ) do t - return first.(t) => to_blockindexrange(last.(t)...) + return first.(t) => BlockIndexRange(last.(t)) end, ) end