From 2baf01acad09b534b93af3ebfbcd90d74e349697 Mon Sep 17 00:00:00 2001 From: Matthew Fishman Date: Wed, 24 Jun 2026 10:15:17 -0400 Subject: [PATCH 1/3] Move to TensorAlgebra 0.11 Requires TensorAlgebra 0.11, where the blocked-permutation types this extension imported but never used are removed (https://github.com/ITensor/TensorAlgebra.jl/pull/181). `SparseArraysBaseTensorAlgebraExt` imported `BlockedTrivialPermutation` and `BlockedTuple` without using them, so they are dropped from the import. The extension uses only the core `ReshapeFusion` style and `matricize` / `unmatricize`, which TensorAlgebra 0.11 keeps unchanged. --- Project.toml | 4 ++-- .../SparseArraysBaseTensorAlgebraExt.jl | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index d290647..ce9236e 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "SparseArraysBase" uuid = "0d5efcca-f356-4864-8770-e1ed8d78f208" -version = "0.10.0" +version = "0.10.1" authors = ["ITensor developers and contributors"] [workspace] @@ -35,5 +35,5 @@ LinearAlgebra = "1.10" MapBroadcast = "0.1.5" Random = "1.10" SparseArrays = "1.10" -TensorAlgebra = "0.10" +TensorAlgebra = "0.11" julia = "1.10" diff --git a/ext/SparseArraysBaseTensorAlgebraExt/SparseArraysBaseTensorAlgebraExt.jl b/ext/SparseArraysBaseTensorAlgebraExt/SparseArraysBaseTensorAlgebraExt.jl index 94e32df..afe9bc0 100644 --- a/ext/SparseArraysBaseTensorAlgebraExt/SparseArraysBaseTensorAlgebraExt.jl +++ b/ext/SparseArraysBaseTensorAlgebraExt/SparseArraysBaseTensorAlgebraExt.jl @@ -2,8 +2,7 @@ module SparseArraysBaseTensorAlgebraExt using SparseArrays: SparseMatrixCSC using SparseArraysBase: AnyAbstractSparseArray, AnyAbstractSparseMatrix, SparseArrayDOK -using TensorAlgebra: TensorAlgebra, BlockedTrivialPermutation, BlockedTuple, FusionStyle, - ReshapeFusion, matricize, unmatricize +using TensorAlgebra: TensorAlgebra, FusionStyle, ReshapeFusion, matricize, unmatricize struct SparseArrayFusion <: FusionStyle end TensorAlgebra.FusionStyle(::Type{<:AnyAbstractSparseArray}) = SparseArrayFusion() From e27f3f834c0799e8e0d0d7074d0155ba239b4fd5 Mon Sep 17 00:00:00 2001 From: Matthew Fishman Date: Wed, 24 Jun 2026 13:14:07 -0400 Subject: [PATCH 2/3] Pin the TensorAlgebra 0.11 branch and align the test compat Adds the in-flight sources pin for TensorAlgebra 0.11 (https://github.com/ITensor/TensorAlgebra.jl/pull/181) so CI can resolve the unregistered version, and bumps the test project TensorAlgebra compat to 0.11 to match the root. --- Project.toml | 4 ++++ test/Project.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index ce9236e..0a2da77 100644 --- a/Project.toml +++ b/Project.toml @@ -21,6 +21,10 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" [weakdeps] TensorAlgebra = "68bd88dc-f39d-4e12-b2ca-f046b68fcc6a" +[sources.TensorAlgebra] +rev = "mf/v0.11" +url = "https://github.com/ITensor/TensorAlgebra.jl" + [extensions] SparseArraysBaseTensorAlgebraExt = ["TensorAlgebra", "SparseArrays"] diff --git a/test/Project.toml b/test/Project.toml index d19da54..72d5dc5 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -34,5 +34,5 @@ SparseArrays = "1.10" SparseArraysBase = "0.10" StableRNGs = "1.0.2" Suppressor = "0.2.8" -TensorAlgebra = "0.10" +TensorAlgebra = "0.11" Test = "<0.0.1, 1" From 6a26d6913c83311f1e5faec88aa32b064541eb20 Mon Sep 17 00:00:00 2001 From: Matthew Fishman Date: Wed, 24 Jun 2026 13:25:10 -0400 Subject: [PATCH 3/3] Drop the invalid TensorAlgebra sources pin TensorAlgebra is a weak dependency, and a sources pin only applies to packages in deps or extras, so it cannot pin TensorAlgebra. CI resolves the 0.11 bound once the release registers. --- Project.toml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Project.toml b/Project.toml index 0a2da77..ce9236e 100644 --- a/Project.toml +++ b/Project.toml @@ -21,10 +21,6 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" [weakdeps] TensorAlgebra = "68bd88dc-f39d-4e12-b2ca-f046b68fcc6a" -[sources.TensorAlgebra] -rev = "mf/v0.11" -url = "https://github.com/ITensor/TensorAlgebra.jl" - [extensions] SparseArraysBaseTensorAlgebraExt = ["TensorAlgebra", "SparseArrays"]