Defining lattice using graph
Dear All, I want to ask how to use graph to define the lattice. I write a graph file named as "a.xml". In the parameter file, I use: GRAPH="C:\alpsproject\lattice\a.xml"; . The a.xml file is as the following. However the output is "could not find". I want to ask how to use it. Thank you very much. Sincerely, Huaiming Guo <GRAPH dimension="2" vertices="8" edges="12"> <VERTEX id="1" type="0"><COORDINATE>0 0</COORDINATE></VERTEX> <VERTEX id="2" type="0"><COORDINATE>0 1</COORDINATE></VERTEX> <VERTEX id="3" type="0"><COORDINATE>1 0</COORDINATE></VERTEX> <VERTEX id="4" type="0"><COORDINATE>1 1</COORDINATE></VERTEX> <VERTEX id="5" type="0"><COORDINATE>2 0</COORDINATE></VERTEX> <VERTEX id="6" type="0"><COORDINATE>2 1</COORDINATE></VERTEX> <VERTEX id="7" type="0"><COORDINATE>3 0</COORDINATE></VERTEX> <VERTEX id="8" type="0"><COORDINATE>3 1</COORDINATE></VERTEX> <EDGE source="1" target="3" id="1" type="0" vector="1 0"/> <EDGE source="1" target="2" id="2" type="1" vector="0 1"/> <EDGE source="2" target="4" id="3" type="0" vector="1 0"/> <EDGE source="3" target="5" id="4" type="0" vector="1 0"/> <EDGE source="3" target="4" id="5" type="1" vector="0 1"/> <EDGE source="4" target="6" id="6" type="0" vector="1 0"/> <EDGE source="5" target="7" id="7" type="0" vector="1 0"/> <EDGE source="5" target="6" id="8" type="1" vector="0 1"/> <EDGE source="6" target="8" id="9" type="0" vector="1 0"/> <EDGE source="7" target="1" id="10" type="0" vector="1 0"/> <EDGE source="7" target="8" id="11" type="1" vector="0 1"/> <EDGE source="8" target="2" id="12" type="0" vector="1 0"/> </GRAPH>
Hi, The best is if you look at the tutorials: http://alps.comp-phys.org/mediawiki/index.php/ALPS_2_Tutorials:DMRG-01_DMRG#... <http://alps.comp-phys.org/mediawiki/index.php/ALPS_2_Tutorials:DMRG-01_DMRG#The_one_dimensional_S.3D1_Heisenberg_chain> You have: 1. put a <LATTICES> tag around your graph. 2. give a name to the graph 3. set the LATTICE_LIBRARY and LATTICE accordingly. For example: LATTICE_LIBRARY="my_lattice.xml" LATTICE="open chain lattice with special edges" Michele -- ETH Zurich Michele Dolfi Institute for Theoretical Physics HIT G 32.4 Wolfgang-Pauli-Str. 27 8093 Zurich Switzerland dolfim@phys.ethz.ch www.itp.phys.ethz.ch +41 44 633 78 56 phone +41 44 633 11 15 fax
On Oct 2, 2015, at 3:48 PM, Huaiming Guo <hmguo@buaa.edu.cn> wrote:
Dear All, I want to ask how to use graph to define the lattice. I write a graph file named as “a.xml”. In the parameter file, I use: GRAPH="C:\alpsproject\lattice\a.xml"; . The a.xml file is as the following. However the output is “could not find”. I want to ask how to use it. Thank you very much.
Sincerely, Huaiming Guo
<GRAPH dimension="2" vertices="8" edges="12"> <VERTEX id="1" type="0"><COORDINATE>0 0</COORDINATE></VERTEX> <VERTEX id="2" type="0"><COORDINATE>0 1</COORDINATE></VERTEX> <VERTEX id="3" type="0"><COORDINATE>1 0</COORDINATE></VERTEX> <VERTEX id="4" type="0"><COORDINATE>1 1</COORDINATE></VERTEX> <VERTEX id="5" type="0"><COORDINATE>2 0</COORDINATE></VERTEX> <VERTEX id="6" type="0"><COORDINATE>2 1</COORDINATE></VERTEX> <VERTEX id="7" type="0"><COORDINATE>3 0</COORDINATE></VERTEX> <VERTEX id="8" type="0"><COORDINATE>3 1</COORDINATE></VERTEX> <EDGE source="1" target="3" id="1" type="0" vector="1 0"/> <EDGE source="1" target="2" id="2" type="1" vector="0 1"/> <EDGE source="2" target="4" id="3" type="0" vector="1 0"/> <EDGE source="3" target="5" id="4" type="0" vector="1 0"/> <EDGE source="3" target="4" id="5" type="1" vector="0 1"/> <EDGE source="4" target="6" id="6" type="0" vector="1 0"/> <EDGE source="5" target="7" id="7" type="0" vector="1 0"/> <EDGE source="5" target="6" id="8" type="1" vector="0 1"/> <EDGE source="6" target="8" id="9" type="0" vector="1 0"/> <EDGE source="7" target="1" id="10" type="0" vector="1 0"/> <EDGE source="7" target="8" id="11" type="1" vector="0 1"/> <EDGE source="8" target="2" id="12" type="0" vector="1 0"/> </GRAPH>
Dear Michele Dolfi, Many thanks. Now it works. Sincerely, Huaiming Guo 发件人: comp-phys-alps-users-bounces@lists.phys.ethz.ch [mailto:comp-phys-alps-users-bounces@lists.phys.ethz.ch] 代表 Michele Dolfi 发送时间: 2015年10月2日 22:11 收件人: comp-phys-alps-users@lists.phys.ethz.ch 主题: Re: [ALPS-users] Defining lattice using graph Hi, The best is if you look at the tutorials: http://alps.comp-phys.org/mediawiki/index.php/ALPS_2_Tutorials:DMRG-01_DMRG#... You have: 1. put a <LATTICES> tag around your graph. 2. give a name to the graph 3. set the LATTICE_LIBRARY and LATTICE accordingly. For example: LATTICE_LIBRARY="my_lattice.xml" LATTICE="open chain lattice with special edges" Michele -- ETH Zurich Michele Dolfi Institute for Theoretical Physics HIT G 32.4 Wolfgang-Pauli-Str. 27 8093 Zurich Switzerland dolfim@phys.ethz.ch www.itp.phys.ethz.ch +41 44 633 78 56 phone +41 44 633 11 15 fax On Oct 2, 2015, at 3:48 PM, Huaiming Guo <hmguo@buaa.edu.cn> wrote: Dear All, I want to ask how to use graph to define the lattice. I write a graph file named as “a.xml”. In the parameter file, I use: GRAPH="C:\alpsproject\lattice\a.xml"; . The a.xml file is as the following. However the output is “could not find”. I want to ask how to use it. Thank you very much. Sincerely, Huaiming Guo <GRAPH dimension="2" vertices="8" edges="12"> <VERTEX id="1" type="0"><COORDINATE>0 0</COORDINATE></VERTEX> <VERTEX id="2" type="0"><COORDINATE>0 1</COORDINATE></VERTEX> <VERTEX id="3" type="0"><COORDINATE>1 0</COORDINATE></VERTEX> <VERTEX id="4" type="0"><COORDINATE>1 1</COORDINATE></VERTEX> <VERTEX id="5" type="0"><COORDINATE>2 0</COORDINATE></VERTEX> <VERTEX id="6" type="0"><COORDINATE>2 1</COORDINATE></VERTEX> <VERTEX id="7" type="0"><COORDINATE>3 0</COORDINATE></VERTEX> <VERTEX id="8" type="0"><COORDINATE>3 1</COORDINATE></VERTEX> <EDGE source="1" target="3" id="1" type="0" vector="1 0"/> <EDGE source="1" target="2" id="2" type="1" vector="0 1"/> <EDGE source="2" target="4" id="3" type="0" vector="1 0"/> <EDGE source="3" target="5" id="4" type="0" vector="1 0"/> <EDGE source="3" target="4" id="5" type="1" vector="0 1"/> <EDGE source="4" target="6" id="6" type="0" vector="1 0"/> <EDGE source="5" target="7" id="7" type="0" vector="1 0"/> <EDGE source="5" target="6" id="8" type="1" vector="0 1"/> <EDGE source="6" target="8" id="9" type="0" vector="1 0"/> <EDGE source="7" target="1" id="10" type="0" vector="1 0"/> <EDGE source="7" target="8" id="11" type="1" vector="0 1"/> <EDGE source="8" target="2" id="12" type="0" vector="1 0"/> </GRAPH>
participants (2)
-
Huaiming Guo
-
Michele Dolfi