+1 vote
asked by (270 points)

Hi,
when I tried to use single site dmrg (Electron)

auto [Energy, psi] = dmrg(H, psi0, sweeps, {"Quiet=", true, "NumCenter=", 1});

I encountered the following problem:

From line 137, file ITensor/itensor/iterativesolvers.h
davidson: size of initial vector should match linear matrix size.
dim(inds(phi.front())) = 16
A.size() = 4
davidson: size of initial vector should match linear matrix size.

How can I solve it?

1 Answer

0 votes
answered by (64.2k points)

Hi, the answer is unfortunately single-site DMRG is not fully implemented. Are you able to use two-site DMRG for your problem?

Thanks,
Miles

commented by (270 points)
edited by
Dear Miles,

Thanks for your reply. In fact, I can use the two-site DMRG.  I tried to use the single-site DMRG  for reaching larger bond dimensions.  I wonder if the single-site version can be implemented by just modifying the function DMRGworker, because it seems that the localMPO and sweeps  already  support single-site DMRG. I think I can use spinless fermion
to realize an effective single-site DMRG of electron
Best!
Zongsheng Zhou
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

...