How to use the 'sort_mpo_legs' feature
Posted: 06 Jul 2023, 08:24
Hi,Johannes
When I was looking for sample code on github, I found https://github.com/ITensor/ITensorBench ... 1d_dmrg.py,which mentions the 'sort_mpo_legs' feature.
By studying the tenpy documentation, I think that 'sort_mpo_legs': True seems to be able to speed up the running speed of the code when computing complex models.
My question and confusion is: Take this example in tenpy documentation, https://tenpy.readthedocs.io/en/latest/ ... e_FCI.html, add 'sort_mpo_legs': True, in model_params
When I was looking for sample code on github, I found https://github.com/ITensor/ITensorBench ... 1d_dmrg.py,which mentions the 'sort_mpo_legs' feature.
By studying the tenpy documentation, I think that 'sort_mpo_legs': True seems to be able to speed up the running speed of the code when computing complex models.
My question and confusion is: Take this example in tenpy documentation, https://tenpy.readthedocs.io/en/latest/ ... e_FCI.html, add 'sort_mpo_legs': True, in model_params
- Does this approach speed up the code?
- If code can be accelerated, is the effect significant enough?
- Will it lead to greater memory overhead?
- Is it recommended to always turn on 'sort_mpo_legs' in tenpy's calculations: True?