-
Notifications
You must be signed in to change notification settings - Fork 0
/
basis.h
44 lines (32 loc) · 772 Bytes
/
basis.h
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
#ifndef __BASIS_H
#define __BASIS_H
#include <memory>
namespace itensor {
template <class Tensor>
struct Basis;
template <class Tensor>
using BasisPtr = std::unique_ptr<Basis<Tensor>>;
template <class Tensor>
struct Basis
{
Basis() { }
virtual ~Basis() { }
Tensor virtual
state(int s, int n,
const Args& args = Global::args()) const = 0;
Tensor virtual
newstate(int s, int n,
const Args& args = Global::args()) const
{
return state(s,n,args);
}
Tensor virtual
proj(int s, int n,
const Args& args = Global::args()) const = 0;
virtual
const char*
statestr(int s, int n,
const Args& args = Global::args()) const = 0;
};
};
#endif //__BASIS_H