From 13620b2541f679ff70e3c9302647701e184aa909 Mon Sep 17 00:00:00 2001 From: Tim Pokart Date: Tue, 17 Dec 2024 19:59:10 +0100 Subject: [PATCH] Fix 'movesite' bug with fermions on GPU (#103) --- src/abstractmps.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/abstractmps.jl b/src/abstractmps.jl index 4670be5..bd96f45 100644 --- a/src/abstractmps.jl +++ b/src/abstractmps.jl @@ -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