We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 591b3fb commit 871fafbCopy full SHA for 871fafb
ext/TensorKitChainRulesCoreExt/tensoroperations.jl
@@ -192,6 +192,6 @@ end
192
# temporary function to avoid copies when not needed
193
# TODO: remove once `twist(t; copy=false)` is defined
194
function _twist_nocopy(t, inds; kwargs...)
195
- (BraidingStyle(sectortype(t)) isa Fermionic && !isempty(inds)) || return t
+ (BraidingStyle(sectortype(t)) isa Bosonic || isempty(inds)) && return t
196
return twist(t, inds; kwargs...)
197
end
0 commit comments