From dda2f181f742771680a36cbc085ecfe24dba9f0e Mon Sep 17 00:00:00 2001 From: Yue Zhengyuan Date: Thu, 2 Oct 2025 20:18:31 +0800 Subject: [PATCH 1/2] Modify `_totuple` --- src/utility/utility.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility/utility.jl b/src/utility/utility.jl index 93181d667..2a3098ac6 100644 --- a/src/utility/utility.jl +++ b/src/utility/utility.jl @@ -112,7 +112,7 @@ function randomize!(a::AbstractBlockTensorMap) return a end -_totuple(t) = t isa Tuple ? t : Tuple(t) +_totuple(t) = t isa Tuple ? t : tuple(t) """ tensorexpr(name, ind_out, [ind_in]) From 33db24f8f66cd3cb5ae88b2e1d9bc6b5d403de3e Mon Sep 17 00:00:00 2001 From: Yue Zhengyuan Date: Thu, 2 Oct 2025 20:31:34 +0800 Subject: [PATCH 2/2] Fix again --- src/utility/utility.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility/utility.jl b/src/utility/utility.jl index 2a3098ac6..1da699fec 100644 --- a/src/utility/utility.jl +++ b/src/utility/utility.jl @@ -112,7 +112,7 @@ function randomize!(a::AbstractBlockTensorMap) return a end -_totuple(t) = t isa Tuple ? t : tuple(t) +_totuple(t) = t isa Tuple ? t : (t isa Symbol ? tuple(t) : Tuple(t)) """ tensorexpr(name, ind_out, [ind_in])