# How to make DMRG independent of initial state?

**URL:** <https://itensor.discourse.group/t/how-to-make-dmrg-independent-of-initial-state/86>\
**Category:** DMRG and Numerical Methods\
**Tags:** julia, dmrg\
**Created:** [April 27, 2022, 3:02am UTC](https://itensor.discourse.group/t/how-to-make-dmrg-independent-of-initial-state/86 "2022-04-27T03:02:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xenon-zhao](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/xenon-zhao/32/27_2.png) [@Xenon-zhao](https://itensor.discourse.group/u/Xenon-zhao)\
**Post date:** [April 27, 2022, 3:02am UTC](https://itensor.discourse.group/t/how-to-make-dmrg-independent-of-initial-state/86/1 "2022-04-27T03:02:51Z")

</div>

Hi, I’m using the DMRG algorithm to calculate the ground state of Hubbard-Hofstadter model.

\hat{H}=-J \sum\_{j, m}\left({e}^{{i} j \phi\_{{AB}}/2} \hat{a}\_{j, m+1}^{\dagger} \hat{a}\_{j, m}+{e}^{-{i} j \phi\_{{AB}}/2} \hat{a}\_{j+1, m}^{\dagger} \hat{a}\_{j, m}+\text { H.c. }\right)

But when I use different state as initial state, I get different ground state. I think the ground state of a Hamiltonian should be independent of initial state.  
How to solve this problem?

 ![all](https://global.discourse-cdn.com/free1/uploads/itensor/original/1X/a5555386bd0cb4b93c0b1203d55aa7923d3f30af.jpeg)

---

<div class="post-metadata">

**Author:** ![miles](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/miles/32/6_2.png) [@miles](https://itensor.discourse.group/u/miles)\
**Post date:** [April 27, 2022, 3:11am UTC](https://itensor.discourse.group/t/how-to-make-dmrg-independent-of-initial-state/86/2 "2022-04-27T03:11:42Z")

</div>

It’s unfortunate that DMRG results can sometimes depend on the initial state that you use, but it is just a fact about how DMRG works. It is a kind of variational method, so it can become ‘stuck’ in a local optimum just like with other kinds of variational methods.

The main way to get results which are not dependent too much on the initial state are:

1. choose a different initial state which is closer to the ground state, meaning closer either in overlap or having more similar properties to the ground state
2. use additional techniques within DMRG to help it to converge. A key one is the “noise term” which can greatly help with DMRG convergence

For more information we have written about this here:  
[https://itensor.github.io/ITensors.jl/stable/faq/DMRG.html#Preventing-DMRG-from-getting-stuck-in-a-local-minimum](https://itensor.github.io/ITensors.jl/stable/faq/DMRG.html#Preventing-DMRG-from-getting-stuck-in-a-local-minimum)

---

<div class="post-metadata">

**Author:** ![Xenon-zhao](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/xenon-zhao/32/27_2.png) [@Xenon-zhao](https://itensor.discourse.group/u/Xenon-zhao)\
**Post date:** [April 28, 2022, 5:46am UTC](https://itensor.discourse.group/t/how-to-make-dmrg-independent-of-initial-state/86/3 "2022-04-28T05:46:49Z")

</div>

In this case, I add the “noise term”, and then the problem seems to be solved. Thanks!

---

<div class="post-metadata">

**Author:** ![miles](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/miles/32/6_2.png) [@miles](https://itensor.discourse.group/u/miles)\
**Post date:** [April 28, 2022, 2:17pm UTC](https://itensor.discourse.group/t/how-to-make-dmrg-independent-of-initial-state/86/4 "2022-04-28T14:17:49Z")

</div>

Glad to hear it!
