65 if( (~a & 1<<j) && ((a ^ ((1<<i)+(1<<j)) ) == b ) )
79 if( (~a & 1<<j) && ((a ^ ((1<<i)+(1<<j)) ) == b ) )
91 j = L * (i/
L) + (i + 1) %
L;
92 if( (~a & 1<<j) && ((a ^ ((1<<i)+(1<<j)) ) == b ) )
104 j = L * (i/
L) + (i - 1 + L) %
L;
105 if( (~a & 1<<j) && ((a ^ ((1<<i)+(1<<j)) ) == b ) )
127 std::cerr <<
"Build base before building Hamiltonian" << std::endl;
135 for(
unsigned int a=0;a<
baseUp.size();a++)
136 for(
unsigned int b=0;b<
baseDown.size();b++)
138 int i = a * NumDown + b;
140 for(
unsigned int c=a;c<
baseUp.size();c++)
141 for(
unsigned int d=0;d<
baseDown.size();d++)
143 int j = c * NumDown + d;