Skip to content

Commit

Permalink
Fix 'movesite' bug with fermions on GPU (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
tipfom authored Dec 17, 2024
1 parent d7f8ca3 commit 13620b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/abstractmps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1873,7 +1873,7 @@ function setindex!(
#AC = noprime(AC * _fermionic_swap(c))
#A = AC * dag(C)

FSWAP = _fermionic_swap(s0[1], s0[2])
FSWAP = adapt(datatype(A), _fermionic_swap(s0[1], s0[2]))
A = noprime(A * FSWAP)
end
elseif ψ isa MPO
Expand Down

0 comments on commit 13620b2

Please sign in to comment.