Skip to content

Commit 13620b2

Browse files
authored
Fix 'movesite' bug with fermions on GPU (#103)
1 parent d7f8ca3 commit 13620b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/abstractmps.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1873,7 +1873,7 @@ function setindex!(
18731873
#AC = noprime(AC * _fermionic_swap(c))
18741874
#A = AC * dag(C)
18751875

1876-
FSWAP = _fermionic_swap(s0[1], s0[2])
1876+
FSWAP = adapt(datatype(A), _fermionic_swap(s0[1], s0[2]))
18771877
A = noprime(A * FSWAP)
18781878
end
18791879
elseif ψ isa MPO

0 commit comments

Comments
 (0)