SOLIDstate
A C++ library for solid state physics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Combinadics.hpp
Go to the documentation of this file.
1 
11 #ifndef COMBINADICS_COMBINADICS_HPP
12 #define COMBINADICS_COMBINADICS_HPP
13 
14 #include <vector>
15 #include <armadillo>
16 
17 #include "../Ensemble/Sector.hpp"
18 #include "BaseState.hpp"
19 
20 namespace solid
21 {
22 
28 {
29 public:
30 
37  static statenumber ToNumber(BaseState state);
38 
46  static BaseState ToBaseState(Sector sector, statenumber number);
47 };
48 
49 } // namespace solid
50 
51 #endif
contains information about number of sites and particles in the sector
Definition: Sector.hpp:22
static BaseState ToBaseState(Sector sector, statenumber number)
converts int in given sector into BaseState
Definition: Combinadics.cpp:44
static statenumber ToNumber(BaseState state)
converts state to number
Definition: Combinadics.cpp:22
BaseState for HilbertSpace base.
Definition: BaseState.hpp:29
Converting BaseState into Number and vice versa It uses combinadics – Combinatorial number system ...
Definition: Combinadics.hpp:27
long int statenumber
Hilbert space can be huge...
Definition: BaseState.hpp:21
BaseState header.