Struct ED_halfbasis

Struct Documentation

struct ED_halfbasis

Basis in a tensor factor of the Hilbert space (spin up or spin down)

It is used in the “factorized format” of the Hamiltonian, which applies only in mixing cases 0 and 4.

Public Functions

ED_halfbasis(int L, int N)
uint32_t index(const uint32_t &b) const

finds the index of a state by binary search

void print_state(std::ostream &flux, int i) const

Public Members

int N

number of particles

int L

number of orbitals (sites)

uint32_t dim

dimension of the Hilbert space

vector<uint32_t> bin

binary representation of states