diff --git a/Project.toml b/Project.toml index 9cc9b5d..fcbaa25 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.3.1" +version = "0.3.2" [deps] Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697" diff --git a/src/fusion_trees/fusiontree.jl b/src/fusion_trees/fusiontree.jl index 3e94c22..c5a340a 100644 --- a/src/fusion_trees/fusiontree.jl +++ b/src/fusion_trees/fusiontree.jl @@ -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), @@ -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)) diff --git a/test/runtests.jl b/test/runtests.jl index 1c52c3e..98b2d2b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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