+1 vote
asked by (650 points)

I use dmrg function and set "Quite" to false to see the detail output. And I find that sweep from left to right is quickl while the opposite direction is much slower. Here I use a self-defined site set file for spin-1 Bose Hubbard model with total number and total magnetic moment conserved. Is there any reason for this result ? Or may be I should post my code later.

1 Answer

0 votes
answered by (70.1k points)

Hi Junjie,
The reason for this slowdown could depend on many things. On the face of it, it's not too surprising if the initial MPS has a very small bond dimension. This would be because in the first half sweep all of the right-most bonds of each MPS "super block" configuration are very small (super block = the basis used when doing the Davidson optimization with two center sites).

But on the second half sweep, both of the virtual indices sticking out of the super block wavefunction could be large, so one would expect this second half sweep to be slower.

However, if it's slower by an extremely large amount, there is cause for concern. In the worst case there could be a bug causing the slowdown. But unless one has evidence for a bug, it's more likely that the accuracy parameters you are using are just set to aggressively. A good idea for the first few sweeps of DMRG is to limit the maximum bond dimension (maxm) to a rather small value, since DMRG can already get good energies with a small bond dimension, and you only need a large bond dimension toward the end of the calculation if you want very high accuracy.

Welcome to ITensor Support Q&A, where you can ask questions and receive answers from other members of the community.

Formatting Tips:
  • To format code, indent by four spaces
  • To format inline LaTeX, surround it by @@ on both sides
  • To format LaTeX on its own line, surround it by $$ above and below
  • For LaTeX, it may be necessary to backslash-escape underscore characters to obtain proper formatting. So for example writing \sum\_i to represent a sum over i.
If you cannot register due to firewall issues (e.g. you cannot see the capcha box) please email Miles Stoudenmire to ask for an account.

To report ITensor bugs, please use the issue tracker.

Categories

...