On Mar 7, 2013, at 9:19 PM, Bo-Nan JIANG bonanjiang@gmail.com wrote:
Hi,all I am trying to sparsediag the Kondo lattice in ALPS, but the command line return "Called get_quantumnumber with illegal index". I feel that there may be a misunderstanding of the constraint in my code, but I just can not find it out now. So, dear users and developers please help me!!!
The parameter file is,
LATTICE="chain lattice" MODEL="Kondo lattice" LATTICE_LIBRARY="mylattices.xml" MODEL_LIBRARY="mymodels.xml" CONSERVED_QUANTUMNUMBERS="Sz" Sz_total=0 t=1 J=2 {L=4}
the "Kondo lattice" code in mymodels.xml is almostly copied from the "Kondo lattice" code in ALPS models.xml, the "only" change I made (no changes of sitebasis, operators or hamiltonian) is adding a constraint of the total Sz (Sz_spin+Sz_fermion) to the BASIS as shown below:
<BASIS name="Kondo lattice"> <SITEBASIS type="0" ref="fermion"/> <SITEBASIS type="1" ref="spin"/> <CONSTRAINT quantumnumber="Sz" value="Sz_total"/> </BASIS>
You need to define the quantum number Sz for the fermion basis.
Matthias