From c75228a8ca9b3a6d7575561fa3837c266128f20e Mon Sep 17 00:00:00 2001 From: CompatHelper Julia Date: Sat, 25 Apr 2026 02:50:07 +0000 Subject: [PATCH 1/3] CompatHelper: bump compat for NamedDimsArrays to 0.15, (keep existing compat) --- Project.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 609216e..b867397 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "ITensorNetworksNext" uuid = "302f2e75-49f0-4526-aef7-d8ba550cb06c" -version = "0.3.24" +version = "0.3.25" authors = ["ITensor developers and contributors"] [workspace] @@ -46,7 +46,7 @@ FunctionImplementations = "0.4" Graphs = "1.13.1" LinearAlgebra = "1.10" MacroTools = "0.5.16" -NamedDimsArrays = "0.14.2" +NamedDimsArrays = "0.14.2, 0.15" NamedGraphs = "0.6.9, 0.7, 0.8" SimpleTraits = "0.9.5" SplitApplyCombine = "1.2.3" From 273fa4e9ed45b45cecbfccb3193df2c559f7a980 Mon Sep 17 00:00:00 2001 From: Matthew Fishman Date: Wed, 6 May 2026 17:05:09 -0400 Subject: [PATCH 2/3] Update test NamedDimsArrays version to include 0.15 --- test/Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Project.toml b/test/Project.toml index 4bcd159..23f760a 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -35,7 +35,7 @@ Graphs = "1.13.1" ITensorBase = "0.5" ITensorNetworksNext = "0.4" ITensorPkgSkeleton = "0.3.42" -NamedDimsArrays = "0.14" +NamedDimsArrays = "0.14, 0.15" NamedGraphs = "0.11" QuadGK = "2.11.2" SafeTestsets = "0.1" From 083ad09a135c89501a54b60a3986faf3dcdc435f Mon Sep 17 00:00:00 2001 From: Matthew Fishman Date: Wed, 6 May 2026 22:10:29 -0400 Subject: [PATCH 3/3] Require TensorAlgebra >= 0.9.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `TensorAlgebra` 0.9.2 fixes a `bipermutedimsopadd!` bug in which the 0-dim branch read `dest[]` even when `β = 0`, throwing `UndefRefError` on `Array{BigFloat, 0}(undef)` destinations (e.g. scalar contractions of `BigFloat`-valued tensors that flow through `NamedDimsArrays`). Add `TensorAlgebra` to `[deps]` (with `using TensorAlgebra: TensorAlgebra` so the floor isn't reported as a stale dep by Aqua) and to `[compat]` with a `0.9.2` floor. Co-Authored-By: Claude Opus 4.7 (1M context) --- Project.toml | 2 ++ src/ITensorNetworksNext.jl | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/Project.toml b/Project.toml index 92fa41e..5c62a6b 100644 --- a/Project.toml +++ b/Project.toml @@ -23,6 +23,7 @@ NamedDimsArrays = "60cbd0c0-df58-4cb7-918c-6f5607b73fde" NamedGraphs = "678767b0-92e7-4007-89e4-4527a8725b19" SimpleTraits = "699a6c99-e7fa-54fc-8d76-47d257e15c1d" SplitApplyCombine = "03a91e81-4c3e-53e1-a0a4-9c0c8f19dd66" +TensorAlgebra = "68bd88dc-f39d-4e12-b2ca-f046b68fcc6a" TermInterface = "8ea1fca8-c5ef-4a55-8b96-4e9afe9c9a3c" TypeParameterAccessors = "7e5a90cf-f82e-492e-a09b-e3e26432c138" WrappedUnions = "325db55a-9c6c-5b90-b1a2-ec87e7a38c44" @@ -50,6 +51,7 @@ NamedDimsArrays = "0.14.3, 0.15" NamedGraphs = "0.11" SimpleTraits = "0.9.5" SplitApplyCombine = "1.2.3" +TensorAlgebra = "0.9.2" TensorOperations = "5.3.1" TermInterface = "2" TypeParameterAccessors = "0.4.4" diff --git a/src/ITensorNetworksNext.jl b/src/ITensorNetworksNext.jl index dd7dc50..0b2b898 100644 --- a/src/ITensorNetworksNext.jl +++ b/src/ITensorNetworksNext.jl @@ -1,5 +1,11 @@ module ITensorNetworksNext +# Imported as a name only so that the `[compat] TensorAlgebra = "0.9.2"` floor +# (needed for a `bipermutedimsopadd!` fix in `TensorAlgebra` 0.9.2 that affects +# `NamedDimsArrays`-mediated tensor multiplication) isn't reported as a stale +# dependency by Aqua. +using TensorAlgebra: TensorAlgebra + include("AlgorithmsInterfaceExtensions/AlgorithmsInterfaceExtensions.jl") include("LazyNamedDimsArrays/LazyNamedDimsArrays.jl") include("abstracttensornetwork.jl")