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
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 @@
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.(

Check warning on line 107 in src/fusion_trees/fusiontree.jl

View check run for this annotation

Codecov / codecov/patch

src/fusion_trees/fusiontree.jl#L107

Added line #L107 was not covered by tests
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 @@
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.(

Check warning on line 124 in src/fusion_trees/fusiontree.jl

View check run for this annotation

Codecov / codecov/patch

src/fusion_trees/fusiontree.jl#L124

Added line #L124 was not covered by tests
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
10 changes: 6 additions & 4 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) =
endswith(fn, ".jl") && startswith(basename(fn), "test_") && !contains(fn, "setup")
function istestfile(fn)
return 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) =
endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup")
function isexamplefile(fn)
return endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup")
end

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