[ALPS-users] How to count dimension of graph defined in Lattice xml library

Matthias Troyer troyer at phys.ethz.ch
Thu Nov 9 08:19:46 CET 2017


Arbitrary graphs don’t have a “dimension”. Only lattices do.

> On 9 Nov 2017, at 14:12, Sun Rongyang <sun-rongyang at outlook.com> wrote:
> 
> Dear all,
> 
> The definition method of a lattice in ALPS is delicate. But I meet a problem about dimension counting of a pure graph. On the one hand, I define an pure anisotropic graph as:
> 
> *************************************************************************************************
> <GRAPH name="anisotropic open ladder graph test">
>     <!-- type="0" means horizontal; type="1" means vertical -->
>     <EDGE tyep="0" source="1" target="2"/>
>     <EDGE tyep="0" source="2" target="3"/>
>     <EDGE tyep="0" source="3" target="4"/>
>     <EDGE tyep="0" source="4" target="5"/>
>     <EDGE tyep="0" source="6" target="7"/>
>     <EDGE tyep="0" source="7" target="8"/>
>     <EDGE tyep="0" source="8" target="9"/>
>     <EDGE tyep="0" source="9" target="10"/>
>     <EDGE tyep="1" source="1" target="6"/>
>     <EDGE tyep="1" source="2" target="7"/>
>     <EDGE tyep="1" source="3" target="8"/>
>     <EDGE tyep="1" source="4" target="9"/>
>     <EDGE tyep="1" source="5" target="10"/>
> </GRAPH>
> *************************************************************************************************
> On the other hand, I use the default LATTICEGRAPH "open ladder", I copy here:
> 
> *************************************************************************************************
> <LATTICE name="square lattice" dimension="2">
>   <PARAMETER name="a" default="1"/>
>   <BASIS><VECTOR>a 0</VECTOR><VECTOR>0 a</VECTOR></BASIS>
>   <RECIPROCALBASIS><VECTOR>2*pi/a 0</VECTOR><VECTOR>0 2*pi/a</VECTOR></RECIPROCALBASIS>
> </LATTICE>
> 
> <UNITCELL name="anisotropic2d" dimension="2">
>   <VERTEX/>
>   <EDGE type="0"><SOURCE vertex="1" offset="0 0"/><TARGET vertex="1" offset="1 0"/></EDGE>
>   <EDGE type="1"><SOURCE vertex="1" offset="0 0"/><TARGET vertex="1" offset="0 1"/></EDGE>
> </UNITCELL>
> 
> <LATTICEGRAPH name = "open ladder" vt_name="OpenLadderLattice">
>   <FINITELATTICE>
>     <LATTICE ref="square lattice"/>
>     <PARAMETER name="W" default="2"/>
>     <EXTENT dimension="1" size="L"/>
>     <EXTENT dimension="2" size="W"/>
>     <BOUNDARY dimension="1" type="open"/>
>     <BOUNDARY dimension="2" type="open"/>
>   </FINITELATTICE>
>   <UNITCELL ref="anisotropic2d"/>
> </LATTICEGRAPH>
> *************************************************************************************************
> with parameters L=2, W=5. Will they be treated as the same in ALPS? Or the graph equals as L=5,W=2 open ladder?
> 
> Thanks a lot!
> 
> Best regards,
> Rongyang Sun
>  
> 
> 
> 
> ----
> Comp-phys-alps-users Mailing List for the ALPS Project
> http://alps.comp-phys.org/ <http://alps.comp-phys.org/>
> 
> List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users <https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users>
> Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users <https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users>
> 
> Unsubscribe by writing a mail to comp-phys-alps-users-leave at lists.phys.ethz.ch <mailto:comp-phys-alps-users-leave at lists.phys.ethz.ch>.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.phys.ethz.ch/pipermail/comp-phys-alps-users/attachments/20171109/a842bb54/attachment.html>


More information about the Comp-phys-alps-users mailing list