Forcing hermitianity of an operator

You should use swapprime(dag(mpo), 0 => 1) or noprime(linkinds, swapprime(dag(mpo), 0 => 1)) since some functions like dmrg don’t work properly with primed link indices.

See also DMRG for non Hermitian MPO.

1 Like