<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I think you need:</div><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class=""><INHOMOGENEOUS><EDGE/></INHOMOGENEOUS></div></div></div></div></div></div><div class=""><br class=""></div><div class="">For the second case, you need to define a graph with different edge types, then you can assign the values in the parameters with:</div><div class="">coeff0=…</div><div class="">coeff1=…</div><div class="">…</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Note that there is no automatic lattice graph for an all-to-all graph. This you need to define yourself in a graph file.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Michele</div><div class=""><br class=""></div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On 28 Jun 2017, at 09:38, John Ian Kenneth E. Felismino <<a href="mailto:jfelismino@nip.upd.edu.ph" class="">jfelismino@nip.upd.edu.ph</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class="">Hello again.<br class=""><br class=""></div>I tried using an inhomogenous periodic 1D chain lattice defined as <br class=""><br class=""><LATTICEGRAPH name = "inhomogeneous periodic chain lattice" vt_skip="true"><br class="">  <FINITELATTICE><br class="">    <LATTICE ref="chain lattice"/><br class="">    <EXTENT dimension="1" size="L"/><br class="">    <BOUNDARY type="periodic"/><br class="">  </FINITELATTICE><br class="">  <UNITCELL ref="simple1d"/><br class="">  <INHOMOGENEOUS><VERTEX/></INHOMOGENEOUS><br class=""></LATTICEGRAPH><br class=""><br class=""></div>and it still didn't work. <br class=""><br class="">For the second solution, how do you assign coefficients for every source and target? I need to find the difference for varying (long) ranges.<br class=""><br class=""></div>Thanks.<br class=""></div>Ian Felismino<br class=""><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Jun 28, 2017 at 12:53 PM, Michele Dolfi <span dir="ltr" class=""><<a href="mailto:dolfim@phys.ethz.ch" target="_blank" class="">dolfim@phys.ethz.ch</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">Actually both the “abs” and “^” operators seem to be allowed, but the problem might come from the (i-j) term.</div><div class="">Using the coordinates in the coefficients is instead a non-trivial feature. It only works if you define the lattice as inhomogeneous. You should see some examples non the lattices.xml file.</div><div class=""><br class=""></div><div class="">As an alternative solution, you could define the lattice as a graph and set independent coefficients on the bonds and edges. You should find other examples in the mailing list, or on this page <a href="https://alps.comp-phys.org/mediawiki/index.php/Tutorials:LatticeHOWTO:SimpleGraphs" target="_blank" class="">https://alps.comp-phys.<wbr class="">org/mediawiki/index.php/<wbr class="">Tutorials:LatticeHOWTO:<wbr class="">SimpleGraphs</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Best,</div><div class="">Michele</div><div class=""><br class=""></div><br class=""><div class=""><blockquote type="cite" class=""><div class=""><div class="h5"><div class="">On 27 Jun 2017, at 08:14, John Ian Kenneth E. Felismino <<a href="mailto:jfelismino@nip.upd.edu.ph" target="_blank" class="">jfelismino@nip.upd.edu.ph</a>> wrote:</div><br class="m_2102447438404677127Apple-interchange-newline"></div></div><div class=""><div class=""><div class="h5"><div dir="ltr" class=""><div class=""><div class="">Hi!<br class=""><br class=""></div>The hamiltonian I'm using is attached as a picture file. As you can see, the bond terms are proportional to abs(i - j)^\alpha. i was wondering if this is possible in Alps because I have tried doing it (crudely) with DMRG and found that it did not produce an output xml. I had simply added the term "/abs(i-j)^alpha#" in my hamiltonian.  When I remove this term, the Hamiltonian works, so clearly the problem is with this proportionality term.<br class=""><br class=""></div>Thanks.<br class=""><div class="">Ian Felismino<br class=""></div></div>
</div></div><span id="m_2102447438404677127cid:06731CA0-E42E-4245-A4E7-10C16FA2926D@v.cablecom.net" class=""><Kitaev Hamiltonian.png></span><br class=""><br class="">----<br class="">Comp-phys-alps-users Mailing List for the ALPS Project<br class=""><a href="http://alps.comp-phys.org/" target="_blank" class="">http://alps.comp-phys.org/</a><br class=""><br class="">List info: <a href="https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users" target="_blank" class="">https://lists.phys.ethz.ch//<wbr class="">listinfo/comp-phys-alps-users</a><br class="">Archive: <a href="https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users" target="_blank" class="">https://lists.phys.ethz.ch//<wbr class="">pipermail/comp-phys-alps-users</a><br class=""><br class="">Unsubscribe by writing a mail to <a href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch" target="_blank" class="">comp-phys-alps-users-leave@<wbr class="">lists.phys.ethz.ch</a>.</div></blockquote></div><br class=""></div><br class=""><br class="">
<br class="">
----<br class="">
Comp-phys-alps-users Mailing List for the ALPS Project<br class="">
<a href="http://alps.comp-phys.org/" rel="noreferrer" target="_blank" class="">http://alps.comp-phys.org/</a><br class="">
<br class="">
List info: <a href="https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users" rel="noreferrer" target="_blank" class="">https://lists.phys.ethz.ch//<wbr class="">listinfo/comp-phys-alps-users</a><br class="">
Archive: <a href="https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users" rel="noreferrer" target="_blank" class="">https://lists.phys.ethz.ch//<wbr class="">pipermail/comp-phys-alps-users</a><br class="">
<br class="">
Unsubscribe by writing a mail to <a href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch" class="">comp-phys-alps-users-leave@<wbr class="">lists.phys.ethz.ch</a>.<br class=""></blockquote></div><br class=""></div>
<br class=""><br class="">----<br class="">Comp-phys-alps-users Mailing List for the ALPS Project<br class=""><a href="http://alps.comp-phys.org/" class="">http://alps.comp-phys.org/</a><br class=""><br class="">List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users<br class="">Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users<br class=""><br class="">Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.ch.</div></blockquote></div><br class=""></body></html>