From da65a0b85d47ddcffc10a6ff2dbee9fe1abc38e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Gauth=C3=A9?= Date: Wed, 16 Jul 2025 17:33:03 -0400 Subject: [PATCH 1/2] rename permute_data! --- Project.toml | 2 +- src/permutedims/permutedims.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index 19ee58f..5db7ada 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.4" +version = "0.5.5" [deps] Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697" diff --git a/src/permutedims/permutedims.jl b/src/permutedims/permutedims.jl index 8e43519..7b3487e 100644 --- a/src/permutedims/permutedims.jl +++ b/src/permutedims/permutedims.jl @@ -53,7 +53,7 @@ function fusiontensor_permutedims!(ftdst, ftsrc, biperm::AbstractBlockPermutatio end # =============================== Internal ============================================= -function permute_data!(::AbelianStyle, ftdst, ftsrc, flatperm) +function _fusiontensor_permutedims!(::AbelianStyle, ftdst, ftsrc, flatperm) # abelian case: all unitary blocks are 1x1 identity matrices # compute_unitary is only called to get block positions unitary = compute_unitary(ftdst, ftsrc, flatperm) @@ -65,7 +65,7 @@ function permute_data!(::AbelianStyle, ftdst, ftsrc, flatperm) return ftdst end -function permute_data!(::NotAbelianStyle, ftdst, ftsrc, flatperm) +function _fusiontensor_permutedims!(::NotAbelianStyle, ftdst, ftsrc, flatperm) foreach(m -> fill!(m, zero(eltype(ftdst))), eachstoredblock(data_matrix(ftdst))) unitary = compute_unitary(ftdst, ftsrc, flatperm) for ((old_trees, new_trees), coeff) in unitary From 545cbbb72992eab2ced6479071e52da97e5aeee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Gauth=C3=A9?= Date: Wed, 16 Jul 2025 17:34:23 -0400 Subject: [PATCH 2/2] fix name --- src/permutedims/permutedims.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/permutedims/permutedims.jl b/src/permutedims/permutedims.jl index 7b3487e..1208df4 100644 --- a/src/permutedims/permutedims.jl +++ b/src/permutedims/permutedims.jl @@ -49,7 +49,7 @@ function fusiontensor_permutedims!(ftdst, ftsrc, biperm::AbstractBlockPermutatio return ftdst end end - return permute_data!(SymmetryStyle(ftdst), ftdst, ftsrc, Tuple(biperm)) + return _fusiontensor_permutedims!(SymmetryStyle(ftdst), ftdst, ftsrc, Tuple(biperm)) end # =============================== Internal =============================================