From e1af3049c9dbbf076c6d2d0f3449cec231b2ac11 Mon Sep 17 00:00:00 2001 From: Lukas Devos Date: Thu, 24 Jul 2025 09:57:52 -0400 Subject: [PATCH] fix missing variable --- src/tensors/tensoroperations.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tensors/tensoroperations.jl b/src/tensors/tensoroperations.jl index d99a5a4..4029630 100644 --- a/src/tensors/tensoroperations.jl +++ b/src/tensors/tensoroperations.jl @@ -192,7 +192,7 @@ function TK.trace_permute!( ) # some input checks _check_spacetype(spacetype(tdst), spacetype(tsrc)) - if !(BraidingStyle(sectortype(S)) isa SymmetricBraiding) + if !(BraidingStyle(sectortype(tdst)) isa SymmetricBraiding) throw( SectorMismatch( "only tensors with symmetric braiding rules can be contracted; try `@planar` instead",