1 #ifndef HILBERTSUBSPACE_H
2 #define HILBERTSUBSPACE_H
19 #include "../math/matrix.h"
20 #include "../math/vector.h"
68 m_nKeptStates = keptSta tes;
120 return m_chainOperatorElementsUp;
128 return m_chainOperatorElementsDown;
132 return m_densityMatrixEigenBasis;
136 return m_densityMatrix;
193 #endif // HILBERTSUBSPACE_H
math::Matrix & getLocalMatrixElementDown2()
retrieves a reference to other impurity matrix elements for spin down electrons Take a look at the "s...
Definition: hilbertsubspace.h:171
void setHamiltonian(math::Matrix &H)
set the Hamiltonian H
Definition: hilbertsubspace.h:85
math::Vector & getEnergies()
returns a reference to the vector of eigenenergies
Definition: hilbertsubspace.h:93
HilbertSubSpace(int Q, int Sz)
constructs a subspace with quantum numbers Q and Sz
Definition: hilbertsubspace.cpp:4
int getR(int i)
retrieves the # of kept states for ith hilbert space of the prev. iteration
Definition: hilbertsubspace.h:111
int getSz()
returns the spin quantum number Sz of the subspace
Definition: hilbertsubspace.h:51
math::Matrix & getLocalMatrixElementUp()
retrieves a reference to impurity matrix elements for spin down electrons Take a look at the "self-en...
Definition: hilbertsubspace.h:144
void setKeptStates(int keptStates)
sets the number of kept states for the subspace
Definition: hilbertsubspace.h:67
HilbertSubSpace: Hilbert subspace for charge quantum number Q and spin Sz. This class contains the ei...
Definition: hilbertsubspace.h:28
int getQ()
returns the charge quantum number Q of the subspace
Definition: hilbertsubspace.h:43
math::Matrix & getChainElementsUp()
retrieves a reference to chain matrix elements for spin up electrons
Definition: hilbertsubspace.h:119
int getKeptStates()
returns the numer of kept states for the subspace
Definition: hilbertsubspace.h:59
math::Matrix & getChainElementsDown()
retrieves a reference to chain matrix elements for spin down electrons
Definition: hilbertsubspace.h:127
void setR(int i, int r)
sets the # of kept states for ith hilbert space of the prev. iteration
Definition: hilbertsubspace.h:102
math::Matrix & getLocalMatrixElementDown()
retrieves a reference to impurity matrix elements for spin down electrons Take a look at the "self-en...
Definition: hilbertsubspace.h:153
math::Matrix & getHamiltonian()
returns reference to the Hamiltonian/unitary transformation After diagonalization Lapack turns this H...
Definition: hilbertsubspace.h:77
math::Matrix & getLocalMatrixElementUp2()
retrieves a reference to other impurity matrix elements for spin down electrons Take a look at the "s...
Definition: hilbertsubspace.h:162