Skip to content

Commit

Permalink
fixed 'movesite' crash
Browse files Browse the repository at this point in the history
  • Loading branch information
tipfom authored Dec 17, 2024
1 parent 9915f16 commit e1db94e
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 e1db94e

Please sign in to comment.