Template Struct state

Struct Documentation

template<typename HilbertField>
struct state

state (e.g. the ground state) from which a contribution to the Green function is computed

Public Functions

inline state()

default constructor

inline state(sector _sec, size_t dim)

constructor from sector and dimension

inline void write_hdf5(H5::Group &grp)

writes state to an HDF5 group.

Layout: attributes “sec”,”energy”,”weight”,”gf_format”; sub-group “gf”; optionally sub-group “gf_down”. The GF format is deduced from the runtime type of the gf pointer.

inline state(H5::Group &grp, shared_ptr<symmetry_group> sym_group, int mixing)

constructs state from an HDF5 group (written by write_hdf5).

Parameters:
  • grp – HDF5 group containing the state data

  • group – symmetry group (needed to construct GF representations)

  • mixing – mixing state

inline void write_wavefunction(ostream &fout, const ED_basis &B)

writing the wavefunction to an ASCII file

Public Members

sector sec

sector to which the state belongs

vector<HilbertField> psi

the Hilbert-space vector representing the state

double energy

energy of the state

double weight

its weight in the density matrix

shared_ptr<Green_function_set> gf
shared_ptr<Green_function_set> gf_down