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",