Skip to content

Commit 871fafb

Browse files
lkdvosJutho
andauthored
Update ext/TensorKitChainRulesCoreExt/tensoroperations.jl
Co-authored-by: Jutho <[email protected]>
1 parent 591b3fb commit 871fafb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/TensorKitChainRulesCoreExt/tensoroperations.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,6 @@ end
192192
# temporary function to avoid copies when not needed
193193
# TODO: remove once `twist(t; copy=false)` is defined
194194
function _twist_nocopy(t, inds; kwargs...)
195-
(BraidingStyle(sectortype(t)) isa Fermionic && !isempty(inds)) || return t
195+
(BraidingStyle(sectortype(t)) isa Bosonic || isempty(inds)) && return t
196196
return twist(t, inds; kwargs...)
197197
end

0 commit comments

Comments
 (0)