<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Hi Ian,</div><div><br></div><div>1. The id of the edge has to be an index, as for the vertex.</div><div><br></div><div>2. In your Hamiltonian definition you need to add a bond term like coeff#*cdag(i)*c(j). The value of coeff# will then be determined by the edge type between site i and j.</div><div><br></div><div>Since you want something like all-to-all interaction, you cannot use the inhomogeneous lattice definition, therefore you cannot use the coordinates inside functions (as you are doing with "abs()").</div><div><br></div><div><br></div><div>Michele</div><div><br></div><div><br></div><div><br>On 3 Jul 2017, at 07:02, John Ian Kenneth E. Felismino <<a href="mailto:jfelismino@nip.upd.edu.ph">jfelismino@nip.upd.edu.ph</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div><div><div><div><div>Hello again.<br><br></div>The first method unfortunately didn't work.<br><br></div>And the second method, I tried using this lattice:<br><br><LATTICES><br> <GRAPH name = "long range kitaev chain" dimension="1" vertices="5" edges="10"><br>  <VERTEX id="1" type="0"><COORDINATE>1</COORDINATE></VERTEX><br>  <VERTEX id="2" type="1"><COORDINATE>2</COORDINATE></VERTEX><br>  <VERTEX id="3" type="1"><COORDINATE>3</COORDINATE></VERTEX><br>  <VERTEX id="4" type="1"><COORDINATE>4</COORDINATE></VERTEX><br> <VERTEX id="5" type="0"><COORDINATE>5</COORDINATE></VERTEX><br>  <EDGE source="1" target="2" id="1-2" type="1"vector="1"/><br>  <EDGE source="1" target="3" id="1-3" type="2"vector="1"/><br>  <EDGE source="1" target="4" id="1-4" type="3"vector="1"/><br>  <EDGE source="1" target="5" id="1-5" type="4"vector="1"/><br>  <EDGE source="2" target="3" id="2-3" type="1"vector="1"/><br>  <EDGE source="2" target="4" id="2-4" type="2"vector="1"/><br>  <EDGE source="2" target="5" id="2-5" type="3"vector="1"/><br>  <EDGE source="3" target="4" id="3-4" type="1"vector="1"/><br>  <EDGE source="3" target="5" id="3-5" type="2"vector="1"/><br>  <EDGE source="4" target="5" id="4-5" type="1"vector="1"/><br> </GRAPH><br></LATTICES><br><br></div>With extra parameters like this:<br><br>        'coeff1'         :1,<br>        'coeff2'         :2,<br>        'coeff3'         :3,<br>        'coeff4'         :4<br><br></div>but maintained the abs(i-j) as I'm not quite sure what to substitute with and it still didn't work (as can probably expected). My question has to do in what to substitute this term with.<br><br></div><div>Thanks in advance.<br></div><div>Ian Felismino<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 29, 2017 at 1:01 PM, Michele Dolfi <span dir="ltr"><<a href="mailto:dolfim@phys.ethz.ch" target="_blank">dolfim@phys.ethz.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>I think you need:</div><div><div dir="ltr"><div><div><div><div><INHOMOGENEOUS><EDGE/></<wbr>INHOMOGENEOUS></div></div></div></div></div></div><div><br></div><div>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>coeff0=…</div><div>coeff1=…</div><div>…</div><div><br></div><div><br></div><div>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><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><div>Michele</div></font></span><div><div class="h5"><div><br></div><div><br></div><div><blockquote type="cite"><div>On 28 Jun 2017, at 09:38, John Ian Kenneth E. Felismino <<a href="mailto:jfelismino@nip.upd.edu.ph" target="_blank">jfelismino@nip.upd.edu.ph</a>> wrote:</div><br class="m_-7264686685345997592Apple-interchange-newline"><div><div dir="ltr"><div><div><div><div>Hello again.<br><br></div>I tried using an inhomogenous periodic 1D chain lattice defined as <br><br><LATTICEGRAPH name = "inhomogeneous periodic chain lattice" vt_skip="true"><br>  <FINITELATTICE><br>    <LATTICE ref="chain lattice"/><br>    <EXTENT dimension="1" size="L"/><br>    <BOUNDARY type="periodic"/><br>  </FINITELATTICE><br>  <UNITCELL ref="simple1d"/><br>  <INHOMOGENEOUS><VERTEX/></<wbr>INHOMOGENEOUS><br></LATTICEGRAPH><br><br></div>and it still didn't work. <br><br>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><br></div>Thanks.<br></div>Ian Felismino<br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 28, 2017 at 12:53 PM, Michele Dolfi <span dir="ltr"><<a href="mailto:dolfim@phys.ethz.ch" target="_blank">dolfim@phys.ethz.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Actually both the “abs” and “^” operators seem to be allowed, but the problem might come from the (i-j) term.</div><div>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><br></div><div>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">https://alps.comp-phys.or<wbr>g/mediawiki/index.php/Tutorial<wbr>s:LatticeHOWTO:SimpleGraphs</a></div><div><br></div><div><br></div><div>Best,</div><div>Michele</div><div><br></div><br><div><blockquote type="cite"><div><div class="m_-7264686685345997592h5"><div>On 27 Jun 2017, at 08:14, John Ian Kenneth E. Felismino <<a href="mailto:jfelismino@nip.upd.edu.ph" target="_blank">jfelismino@nip.upd.edu.ph</a>> wrote:</div><br class="m_-7264686685345997592m_2102447438404677127Apple-interchange-newline"></div></div><div><div><div class="m_-7264686685345997592h5"><div dir="ltr"><div><div>Hi!<br><br></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><br></div>Thanks.<br><div>Ian Felismino<br></div></div>
</div></div><span id="m_-7264686685345997592m_2102447438404677127cid:06731CA0-E42E-4245-A4E7-10C16FA2926D@v.cablecom.net"><Kitaev Hamiltonian.png></span><br><br>----<br>Comp-phys-alps-users Mailing List for the ALPS Project<br><a href="http://alps.comp-phys.org/" target="_blank">http://alps.comp-phys.org/</a><br><br>List info: <a href="https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users" target="_blank">https://lists.phys.ethz.ch//li<wbr>stinfo/comp-phys-alps-users</a><br>Archive: <a href="https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users" target="_blank">https://lists.phys.ethz.ch//pi<wbr>permail/comp-phys-alps-users</a><br><br>Unsubscribe by writing a mail to <a href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch" target="_blank">comp-phys-alps-users-leave@lis<wbr>ts.phys.ethz.ch</a>.</div></blockquote></div><br></div><br><br>
<br>
----<br>
Comp-phys-alps-users Mailing List for the ALPS Project<br>
<a href="http://alps.comp-phys.org/" rel="noreferrer" target="_blank">http://alps.comp-phys.org/</a><br>
<br>
List info: <a href="https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users" rel="noreferrer" target="_blank">https://lists.phys.ethz.ch//li<wbr>stinfo/comp-phys-alps-users</a><br>
Archive: <a href="https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users" rel="noreferrer" target="_blank">https://lists.phys.ethz.ch//pi<wbr>permail/comp-phys-alps-users</a><br>
<br>
Unsubscribe by writing a mail to <a href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch" target="_blank">comp-phys-alps-users-leave@lis<wbr>ts.phys.ethz.ch</a>.<br></blockquote></div><br></div>
<br><br>----<br>Comp-phys-alps-users Mailing List for the ALPS Project<br><a href="http://alps.comp-phys.org/" target="_blank">http://alps.comp-phys.org/</a><br><br>List info: <a href="https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users" target="_blank">https://lists.phys.ethz.ch//<wbr>listinfo/comp-phys-alps-users</a><br>Archive: <a href="https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users" target="_blank">https://lists.phys.ethz.ch//<wbr>pipermail/comp-phys-alps-users</a><br><br>Unsubscribe by writing a mail to <a href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch" target="_blank">comp-phys-alps-users-leave@<wbr>lists.phys.ethz.ch</a>.</div></blockquote></div><br></div></div></div><br><br>
<br>
----<br>
Comp-phys-alps-users Mailing List for the ALPS Project<br>
<a href="http://alps.comp-phys.org/" rel="noreferrer" target="_blank">http://alps.comp-phys.org/</a><br>
<br>
List info: <a href="https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users" rel="noreferrer" target="_blank">https://lists.phys.ethz.ch//<wbr>listinfo/comp-phys-alps-users</a><br>
Archive: <a href="https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users" rel="noreferrer" target="_blank">https://lists.phys.ethz.ch//<wbr>pipermail/comp-phys-alps-users</a><br>
<br>
Unsubscribe by writing a mail to <a href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch">comp-phys-alps-users-leave@<wbr>lists.phys.ethz.ch</a>.<br></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span></span><br><span></span><br><span>----</span><br><span>Comp-phys-alps-users Mailing List for the ALPS Project</span><br><span><a href="http://alps.comp-phys.org/">http://alps.comp-phys.org/</a></span><br><span></span><br><span>List info: <a href="https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users">https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users</a></span><br><span>Archive: <a href="https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users">https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users</a></span><br><span></span><br><span>Unsubscribe by writing a mail to <a href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch">comp-phys-alps-users-leave@lists.phys.ethz.ch</a>.</span></div></blockquote></body></html>