You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Canonicalizing Hamiltonians throws an exception when sites are decoupled #522
I'm using changebonds to compress a Hamiltonian MPO. In certain cases (depends on external parameters), some sites decouple exactly. Whenever some, but not all sites decouple from each other, right_canonicalize! and/or left_canonicalize! throw the following exception.
Minimal working example (MWE)
using MPSKit, TensorKit
pspace = ℂ^2
hop =rand(ComplexF64, pspace*pspace, pspace*pspace); hop += hop'
onsite =rand(ComplexF64, pspace, pspace); onsite += onsite'
terms = [
(1,) => onsite,
(2, 3) => hop,
]
H =FiniteMPOHamiltonian(fill(pspace, 3), terms...)
MPSKit.right_canonicalize!(H, 2)
Activity
Fix SpaceMismatch in canonicalize! for partially decoupled Hamiltonia…
Fix SpaceMismatch in canonicalize! for partially decoupled Hamiltonia…
Fix canonicalize! SpaceMismatch for partially decoupled Hamiltonian s…