Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion 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.3.1"
version = "0.3.2"

[deps]
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
Expand Down
28 changes: 13 additions & 15 deletions src/fusion_trees/fusiontree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,13 @@ function SymmetrySectors.:×(f1::SectorFusionTree, f2::SectorFusionTree)
product_leaves = .×(leaves(f1), leaves(f2))
product_root_sector = root_sector(f1) × root_sector(f2)
product_branch_sectors = .×(branch_sectors(f1), branch_sectors(f2))
product_outer_multiplicity_indices =
outer_multiplicity_kron.(
Base.tail(leaves(f1)),
branch_sectors(f1),
(Base.tail(branch_sectors(f1))..., root_sector(f1)),
outer_multiplicity_indices(f1),
outer_multiplicity_indices(f2),
)
product_outer_multiplicity_indices = outer_multiplicity_kron.(
Base.tail(leaves(f1)),
branch_sectors(f1),
(Base.tail(branch_sectors(f1))..., root_sector(f1)),
outer_multiplicity_indices(f1),
outer_multiplicity_indices(f2),
)
return SectorFusionTree(
product_leaves,
arrows(f1),
Expand All @@ -122,13 +121,12 @@ function SymmetrySectors.:×(f1::SectorFusionTree, f2::SectorFusionTree)
end

function SymmetrySectors.arguments(f::SectorFusionTree{<:SectorProduct})
transposed_indices =
outer_multiplicity_split.(
Base.tail(leaves(f)),
branch_sectors(f),
(Base.tail(branch_sectors(f))..., root_sector(f)),
outer_multiplicity_indices(f),
)
transposed_indices = outer_multiplicity_split.(
Base.tail(leaves(f)),
branch_sectors(f),
(Base.tail(branch_sectors(f))..., root_sector(f)),
outer_multiplicity_indices(f),
)
arguments_root = arguments(root_sector(f))
arguments_leaves = arguments.(leaves(f))
arguments_branch_sectors = arguments.(branch_sectors(f))
Expand Down
6 changes: 4 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ const GROUP = uppercase(
)

"match files of the form `test_*.jl`, but exclude `*setup*.jl`"
istestfile(fn) =
function istestfile(fn)
endswith(fn, ".jl") && startswith(basename(fn), "test_") && !contains(fn, "setup")
end
"match files of the form `*.jl`, but exclude `*_notest.jl` and `*setup*.jl`"
isexamplefile(fn) =
function isexamplefile(fn)
endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup")
end

@time begin
# tests in groups based on folder structure
Expand Down