Hello. Glad to be the first commenter out there
I got two questions:
Are there any hints of choosing maxdim parameter values? Let’s assume I have fermionic Hubbard model on a 4*40 square lattice. Which value of maxdim would be enough to simulate it and how to estimate it?
Is there a way to somehow estimate the precision of a specific DMRG simulation beforehand based on some known parameters and lattice configuration?
Welcome to the new forum and congratulations on being the first commenter!
Please try to read through the DMRG FAQs and let us know if that answers your questions about DMRG convergence. If not, we can try to clarify some points in the FAQ. We are hoping to gather answers to common DMRG questions in one place since we are often asked questions about DMRG convergence.
I think the DMRG FAQ can help you answer your first question. As for your second question, in general I would say no. Usually what you would want to know is the MPS bond dimension that would be needed to obtain some observable of interest like the energy or a correlation function up to a desired precision, since the MPS bond dimension determines the computational cost (time and memory) of running sweeps of DMRG.
The only cases I can think of where you would be able to determine error estimates for a certain model before running DMRG are:
You can find previous work that studied the same model and gave error estimates as a function of bond dimension.
You are dealing with an exactly solvable model where there are exact solutions for some related quantities like the entanglement, which can give you a rough idea of the bond dimensions you might need.
For you or others who think that may be useful, I’ve written a Julia package (available here) which can help you form the MPS approximation of a free fermion state. This can have other useful applications beyond getting an idea for the MPS bond dimension of a certain state, such as forming mean field/Hartree-Fock starting states for DMRG to help improve the convergence of DMRG.
Welcome to the new forum and congrats on being the first to post!
I totally agree with Matt’s answer, and that unfortunately there are few ways to know in advance for some system what bond dimension (maxdim) will be needed to reach a certain accuracy. Though the idea of forming a free-fermion MPS is a really good one, when applicable, to get an idea using a faster method than DMRG.
One other thing I would add, which partially addresses your question #2, is that you can run a DMRG calculation in a “cutoff limited” way, meaning that you choose maxdim to be some very large value in the final few sweeps and then choose the cutoff parameter large enough so that the actual bond dimension DMRG selects is controlled or limited by the cutoff, and falls below the maxdim. For example if you set maxdim=10_000 for a system and then set cutoff=1E-5 you might see the actual bond dimension that DMRG uses become something only like 500 or 1000. The nice thing about running DMRG in this style is that as long as DMRG is not stuck in a local minimum, then the accuracy of the state it computes will be set by the cutoff and the bond dimension will be automatically ‘discovered’ or adapted to be the size necessary to guarantee you the accuracy you requested.
Indeed, the best way to get an estimate for the errors of DMRG for a given model is to run DMRG (starting with smaller bond dimensions/cutoffs at first)!
Hi Tingyu,
It’s a good question. Say one truncates a state using a “truncation error cutoff” (the parameter cutoff in many ITensor functions such as the truncate(::MPS) function).
Then on a particular bond of the MPS, an SVD is performed and a truncation carried out such that if the truncation error is set to \epsilon then
This can be shown by using the canonical form of the MPS to show that inner products of the MPS with itself and with the truncated state are related to sums over the squared singular values.
It’s possible to relate the above formulas to the distance ||\ket{\Psi}-\ket{\Psi'}||^2 also. The way to do it is to expand the squared norm and then relate the various terms to the statements above.