bsc-quantic / Qrochet.jl

Quantum Tensor Networks
https://bsc-quantic.github.io/Qrochet.jl/
Apache License 2.0
1 stars 0 forks source link

Fix `mixed_canonize` function #49

Closed jofrevalles closed 2 weeks ago

jofrevalles commented 2 weeks ago

This PR fixes the mixed_canonize function by adding a missing svd step in the center of the Chain. This step is crucial to ensure that we have the singular values in the center and all the tensors are in the proper canonical form.

Since the function normalize! depended on the previous implementation of mixed_canonize, we add a small fix for this function too.