The current LoopTNR is too long. Therefore it might be helpful to refactor it. The LoopyMPS part can be viewed as a module and LoopTNR algorithm does not necessarily to know the detail of how the approximation is solved.
Moreover, the LoopyMPS part can be reused by other algorithms, such as LoopTNR algorithm on other lattices.
Here are three plans:
- Create a folder called loop methods in schemes, and the loopymps is a file
- Create a file called loopymps in utilities
- Add the LoopyMPS to other packages and looptnr imports it
The current LoopTNR is too long. Therefore it might be helpful to refactor it. The LoopyMPS part can be viewed as a module and LoopTNR algorithm does not necessarily to know the detail of how the approximation is solved.
Moreover, the LoopyMPS part can be reused by other algorithms, such as LoopTNR algorithm on other lattices.
Here are three plans: