-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlattice.hpp
45 lines (33 loc) · 866 Bytes
/
lattice.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef LATTICE_H
#define LATTICE_H
#include <string>
#include "complex.hpp"
#include <cstdio>
#include "state.hpp"
class Lattice
{
public:
Lattice();
Lattice(_float const& L,
int const& N);
~Lattice();
void initialize(_float const& L,
int const& N);
State* lattice;
int latticeSize;
_float latticeWidth;
_float prob;
_float time;
_float energy;
void normalize();
void probability();
void evolveSchrodinger(_float const& dto, Lattice* const& outputLattice);
void evolveClassical(_float const& dto, Lattice* const& outputLattice);
void setInitialStateSchrodinger(_float);
void setInitialStateSchrodingerEigenstate(_float);
void setInitialStateClassical(_float);
void setInitialStateClassicalStanding(_float);
int writeLatticeSchrodinger(FILE* f);
int writeLatticeClassical(FILE* f);
};
#endif // LATTICE_H