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

stacked qc mpo for larger scale qc calculation #163

Closed jiangtong1000 closed 1 year ago

jiangtong1000 commented 1 year ago

This PR is a follow up of #154 Could improve the qc speed. The qc mpo is added by N smaller mpos with bond dim of O(N).

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01% :tada:

Comparison is base (b10fcaf) 84.82% compared to head (d24e8c9) 84.84%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #163 +/- ## ========================================== + Coverage 84.82% 84.84% +0.01% ========================================== Files 105 105 Lines 10207 10232 +25 ========================================== + Hits 8658 8681 +23 - Misses 1549 1551 +2 ``` | [Files Changed](https://app.codecov.io/gh/shuaigroup/Renormalizer/pull/163?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=shuaigroup) | Coverage Δ | | |---|---|---| | [renormalizer/model/h\_qc.py](https://app.codecov.io/gh/shuaigroup/Renormalizer/pull/163?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=shuaigroup#diff-cmVub3JtYWxpemVyL21vZGVsL2hfcWMucHk=) | `98.30% <100.00%> (+0.28%)` | :arrow_up: | | [renormalizer/mps/tests/test\_gs.py](https://app.codecov.io/gh/shuaigroup/Renormalizer/pull/163?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=shuaigroup#diff-cmVub3JtYWxpemVyL21wcy90ZXN0cy90ZXN0X2dzLnB5) | `100.00% <100.00%> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/shuaigroup/Renormalizer/pull/163/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=shuaigroup)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

liwt31 commented 1 year ago

Looks great! Is it reported in the literature? And how fast is it for typical cases?

jiangtong1000 commented 1 year ago

Looks great! Is it reported in the literature? And how fast is it for typical cases?

yea I think this is a well known trick, see Eq 6 of (https://arxiv.org/abs/1703.04789)

jiangtong1000 commented 1 year ago

@liwt31 I did not test with typical systems yet, but in principle I think it can speed up N times? if we consider the step of updating the Environment