Hi Matthias,
Thanks for your reply. Below is the simplest implementation that I could cook up with free spinless fermions on two sites with *directed* bonds. The output of sparsediag, including the error, is -------------------------------------------------------------------------- parsing task files ... Starting task 1. Quantumnumber N going from 0 to 2 with increment 1 Cannot evaluate expression t# * 1 * 1 --------------------------------------------------------------------------
My short source is attached below. I hope that it's a quick task to figure out what is wrong with the implementation.
Thanks in advance, Alex
Alexandru Petrescu / Physics Department, Yale University
Code attachment
In <alps-dir>/lib/xml/lattices.xml I added ------------------------------------------------------------------------ <GRAPH name="my 2-site" vertices="2"> <EDGE source="1" target="2" type="1"/> <EDGE source="2" target="1" type="2"/> </GRAPH> -------------------------------------------------------------------------
In <alps-dir>/lib/xml/models.xml, ------------------------------------------------------------------------ <HAMILTONIAN name="free spinless fermions with bondterm type"> <PARAMETER name="mu" default="0"/> <PARAMETER name="t" default="1"/> <BASIS ref="spinless fermion"/> <SITETERM site="i"> <PARAMETER name="mu#" default="mu"/>
-mu#*n(i)
</SITETERM> <BONDTERM type="1" source="i" target="j"> <PARAMETER name="t#" default="t"/> -t#*(cdag(i)*c(j)+cdag(j)*c(i))
</BONDTERM> <BONDTERM type="2" source="i" target="j"> <PARAMETER name="t#" default="t"/> -t#*(cdag(i)*c(j)+cdag(j)*c(i))
</BONDTERM> </HAMILTONIAN> ------------------------------------------------------------------------- The parameter file is
LATTICE="my 2-site"; ------------------------------------------------------------------------- MODEL="free spinless fermions with bondterm type" NUMBER_EIGENVALUES = 1 CONSERVED_QUANTUMNUMBERS="N" MEASURE_ENERGY = true
t = 3.0; V = 0.0;
{mu=0.00} --------------------------------------------------------------------------
If instead "spinless fermions" with V=0 are used in the parameter file, sparsediag works, but all energies come out to be 0.
After an svn update today the build process quits with:
[ 33%] Building CXX object src/alps/CMakeFiles/alps.dir/ngs/lib/mcresult.cpp.o In file included from /Users/thomaspruschke/c/alps/src/alps/ngs/alea.hpp:32:0, from /Users/thomaspruschke/c/alps/src/alps/ngs/lib/mcresult_impl_derived.ipp:37, from /Users/thomaspruschke/c/alps/src/alps/ngs/lib/mcresult_impl_base.ipp:31, from /Users/thomaspruschke/c/alps/src/alps/ngs/lib/mcresult.cpp:32: /Users/thomaspruschke/c/alps/src/alps/ngs/alea/accumulator.hpp:106:17: error: declaration of 'alps::accumulator::accumulator<vt, features_input>::result_type alps::accumulator::accumulator<vt, features_input>::result()' /Users/thomaspruschke/c/alps/src/alps/ngs/alea/result.hpp:45:25: error: changes meaning of 'result' from 'struct alps::accumulator::result<alps::accumulator::ValueType<stored_type>, typename features_input::_0, typename features_input::_1, typename features_input::_2, typename features_input::_3, typename features_input::_4, typename features_input::_5, typename features_input::_6, typename features_input::_7, typename features_input::_8>' make[2]: *** [src/alps/CMakeFiles/alps.dir/ngs/lib/mcresult.cpp.o] Error 1 make[1]: *** [src/alps/CMakeFiles/alps.dir/all] Error 2 make: *** [all] Error 2
macbook-air-wlan:alps_work thomaspruschke$ (cd ../alps;svn update) Updating '.': At revision 6752.
Everything worked fine up to revision 6750.
Best Thomas
Thomas, please send bug reports on the development branch to the developer list or better yet file a track ticket.
Thank you!
Matthias
On Feb 20, 2013, at 7:27 PM, Prof. Dr. Thomas Pruschke pruschke@theorie.physik.uni-goettingen.de wrote:
After an svn update today the build process quits with:
[ 33%] Building CXX object src/alps/CMakeFiles/alps.dir/ngs/lib/mcresult.cpp.o In file included from /Users/thomaspruschke/c/alps/src/alps/ngs/alea.hpp:32:0, from /Users/thomaspruschke/c/alps/src/alps/ngs/lib/mcresult_impl_derived.ipp:37, from /Users/thomaspruschke/c/alps/src/alps/ngs/lib/mcresult_impl_base.ipp:31, from /Users/thomaspruschke/c/alps/src/alps/ngs/lib/mcresult.cpp:32: /Users/thomaspruschke/c/alps/src/alps/ngs/alea/accumulator.hpp:106:17: error: declaration of 'alps::accumulator::accumulator<vt, features_input>::result_type alps::accumulator::accumulator<vt, features_input>::result()' /Users/thomaspruschke/c/alps/src/alps/ngs/alea/result.hpp:45:25: error: changes meaning of 'result' from 'struct alps::accumulator::result<alps::accumulator::ValueType<stored_type>, typename features_input::_0, typename features_input::_1, typename features_input::_2, typename features_input::_3, typename features_input::_4, typename features_input::_5, typename features_input::_6, typename features_input::_7, typename features_input::_8>' make[2]: *** [src/alps/CMakeFiles/alps.dir/ngs/lib/mcresult.cpp.o] Error 1 make[1]: *** [src/alps/CMakeFiles/alps.dir/all] Error 2 make: *** [all] Error 2
macbook-air-wlan:alps_work thomaspruschke$ (cd ../alps;svn update) Updating '.': At revision 6752.
Everything worked fine up to revision 6750.
Best Thomas
-- Prof. Dr. Thomas Pruschke Institute for Theoretical Physics Friedrich-Hund-Platz 1 37077 Goettingen Germany Phone +49 551 39 7683 FAX +49 551 39 9263
Tschuldigung, war in der Tat die falsche mailing list ... Danke für den Forward.
If you specify a bond type as in
<BONDTERM type="1" ...>
then you cannot use the # symbol in the coupling t# but need to write explicitly, e.g. t1
Matthias
On Feb 20, 2013, at 3:50 PM, Alex Petrescu tpetresc@gmail.com wrote:
Hi Matthias,
Thanks for your reply. Below is the simplest implementation that I could cook up with free spinless fermions on two sites with *directed* bonds. The output of sparsediag, including the error, is
parsing task files ... Starting task 1. Quantumnumber N going from 0 to 2 with increment 1 Cannot evaluate expression t# * 1 * 1
My short source is attached below. I hope that it's a quick task to figure out what is wrong with the implementation.
Thanks in advance, Alex
Alexandru Petrescu / Physics Department, Yale University
Code attachment
In <alps-dir>/lib/xml/lattices.xml I added
<GRAPH name="my 2-site" vertices="2"> <EDGE source="1" target="2" type="1"/> <EDGE source="2" target="1" type="2"/> </GRAPH> -------------------------------------------------------------------------
In <alps-dir>/lib/xml/models.xml,
<HAMILTONIAN name="free spinless fermions with bondterm type"> <PARAMETER name="mu" default="0"/> <PARAMETER name="t" default="1"/> <BASIS ref="spinless fermion"/> <SITETERM site="i"> <PARAMETER name="mu#" default="mu"/> -mu#*n(i) </SITETERM> <BONDTERM type="1" source="i" target="j"> <PARAMETER name="t#" default="t"/> -t#*(cdag(i)*c(j)+cdag(j)*c(i)) </BONDTERM> <BONDTERM type="2" source="i" target="j"> <PARAMETER name="t#" default="t"/> -t#*(cdag(i)*c(j)+cdag(j)*c(i)) </BONDTERM> </HAMILTONIAN> ------------------------------------------------------------------------- The parameter file is
LATTICE="my 2-site";
MODEL="free spinless fermions with bondterm type" NUMBER_EIGENVALUES = 1 CONSERVED_QUANTUMNUMBERS="N" MEASURE_ENERGY = true
t = 3.0; V = 0.0;
{mu=0.00}
If instead "spinless fermions" with V=0 are used in the parameter file, sparsediag works, but all energies come out to be 0.
comp-phys-alps-users@lists.phys.ethz.ch