Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "FusionTensors"
uuid = "e16ca583-1f51-4df0-8e12-57d32947d33e"
authors = ["ITensor developers <[email protected]> and contributors"]
version = "0.5.2"
version = "0.5.3"

[deps]
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
Expand All @@ -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"
Expand Down
8 changes: 1 addition & 7 deletions src/fusiontensor/fusiontensor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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
Expand Down
Loading