shuaigroup / Renormalizer

Quantum dynamics package based on tensor network states
https://shuaigroup.github.io/Renormalizer/
Apache License 2.0
52 stars 16 forks source link

Implement on the fly swapping #121

Closed liwt31 closed 2 years ago

liwt31 commented 2 years ago

This PR implements the on the fly swapping (OFS) algorithms for DOF ordering optimization.

The swapping for MPS is implemented in mp._update_mps. The swapping for MPO along with the old symbolic MPO code is moved to a new file symbolic_mpo.

There are four possible applications of the OFS:

The configuration of OFS is included in CompressConfig. Two additional options are added to the class.