-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinteraction.h
More file actions
33 lines (27 loc) · 748 Bytes
/
interaction.h
File metadata and controls
33 lines (27 loc) · 748 Bytes
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
//
// interaction.h
// ED_solver
//
// Created by Bin Xu on 12/19/14.
// Copyright (c) 2014 Bin Xu. All rights reserved.
//
#ifndef __ED_solver__interaction__
#define __ED_solver__interaction__
#include "hilbertspace.h"
class Solver;
class Measurement;
class Interaction
{
friend class Solver;
friend class Measurement;
vector<State> state_list;
unordered_map<unsigned long, unsigned> reverse_state_map;
HilbertSpace &hilbert_space;
Orbital orb_sector;
public:
Interaction(HilbertSpace &o_hilbert_space, Orbital o_orb): hilbert_space(o_hilbert_space), orb_sector(o_orb){}
vector<MatEle> matrix;
void decorateState();
void build2bodyMatrix();
};
#endif /* defined(__ED_solver__interaction__) */