<MODELS>
<SITEBASIS name="fermion">
<PARAMETER name="local_maximum" default="local_max"/>
<PARAMETER name="local_max" default="2"/>
<PARAMETER name="local_minimun" default="local_min"/>
<PARAMETER name="local_min" default="0"/>
<QUANTUMNUMBER name="N" min="local_minimum" max="local_maximum" type="fermionic"/>
<QUANTUMNUMBER name="Sz" min="-N*(2-N)/2" max="N*(2-N)/2"/>
<QUANTUMNUMBER name="Nup" min="(N+2*Sz)/2" max="(N+2*Sz)/2"/>
<QUANTUMNUMBER name="Ndown" min="(N-2*Sz)/2" max="(N-2*Sz)/2"/>
<OPERATOR name="Splus" matrixelement="1">
<CHANGE quantumnumber="Nup" change="1"/>
<CHANGE quantumnumber="Ndown" change="-1"/>
<CHANGE quantumnumber="Sz" change="1"/>
</OPERATOR>
<OPERATOR name="Sminus" matrixelement="1">
<CHANGE quantumnumber="Nup" change="-1"/>
<CHANGE quantumnumber="Ndown" change="+1"/>
<CHANGE quantumnumber="Sz" change="-1"/>
</OPERATOR>
<OPERATOR name="Sz" matrixelement="Sz"/>
<OPERATOR name="c_down" matrixelement="1">
<CHANGE quantumnumber="Ndown" change="-1"/>
<CHANGE quantumnumber="N" change="-1"/>
<CHANGE quantumnumber="Sz" change="1/2"/>
</OPERATOR>
<OPERATOR name="cdag_down" matrixelement="1">
<CHANGE quantumnumber="Ndown" change="1"/>
<CHANGE quantumnumber="N" change="1"/>
<CHANGE quantumnumber="Sz" change="-1/2"/>
</OPERATOR>
<OPERATOR name="c_up" matrixelement="1">
<CHANGE quantumnumber="Nup" change="-1"/>
<CHANGE quantumnumber="N" change="-1"/>
<CHANGE quantumnumber="Sz" change="-1/2"/>
</OPERATOR>
<OPERATOR name="cdag_up" matrixelement="1">
<CHANGE quantumnumber="Nup" change="1"/>
<CHANGE quantumnumber="N" change="1"/>
<CHANGE quantumnumber="Sz" change="+1/2"/>
</OPERATOR>
<OPERATOR name="n" matrixelement="N"/>
<OPERATOR name="n_up" matrixelement="(N+2*Sz)/2"/>
<OPERATOR name="n_down" matrixelement="(N-2*Sz)/2"/>
</SITEBASIS>
<BASIS name="Kondo lattice">
<SITEBASIS ref="fermion">
<PARAMETER name="local_maximum" value="local_max#"/>
<PARAMETER name="local_max#" value="local_max"/>
<PARAMETER name="local_max" value="2"/>
<PARAMETER name="local_minimum" value="local_min#"/>
<PARAMETER name="local_min#" value="local_min"/>
<PARAMETER name="local_min" value="0"/>
</SITEBASIS>
<CONSTRAINT quantumnumber="N" value="N_total"/>
<!-- <CONSTRAINT quantumnumber="Sz" value="Sz_total"/> -->
</BASIS>
<BONDOPERATOR name="exchange" source="x" target="y">
Sz(x)*Sz(y)+1/2*(Splus(x)*Sminus(y)+Sminus(x)*Splus(y))
</BONDOPERATOR>
<BONDOPERATOR name="fermion_hop" source="x" target="y">
cdag_up(x)*c_up(y)+cdag_up(y)*c_up(x)+cdag_down(x)*c_down(y)+cdag_down(y)*c_down(x)
</BONDOPERATOR>
<HAMILTONIAN name="Kondo lattice">
<PARAMETER name="mu" default="0"/>
<PARAMETER name="t" default="1"/>
<PARAMETER name="J" default="1"/>
<BASIS ref="Kondo lattice"/>
<SITETERM type="0" site="i">
-mu*n(i)
</SITETERM>
<SITETERM type="1">
0
</SITETERM>
<BONDTERM type="0" source="i" target="j">
-t*fermion_hop(i,j)
</BONDTERM>
<BONDTERM type="1" source="i" target="j">
J*exchange(i,j)
</BONDTERM>
</HAMILTONIAN>
</MODELS>