-
Notifications
You must be signed in to change notification settings - Fork 0
/
QMCInitializer.cpp
96 lines (87 loc) · 2.92 KB
/
QMCInitializer.cpp
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#include <iostream>
using namespace std;
//TMP FUNC. WILL BE PYTHON SCRIPTED
void initVMC(int n_p, int dim, double w, double &dt, std::string type, std::string sampling, double &alpha, double &beta) {
if (sampling == "BF") {
dt = 0.5;
} else if (sampling == "IS") {
dt = 0.05;
} else {
cout << "Unknown sample method" << endl;
}
if ((dim == 2) && (type == "QDots")) {
if (n_p == 2) {
if (w == 1.0) {
alpha = 0.987;
beta = 0.398;
} else if (w == 0.5) {
alpha = 0.9826;
beta = 0.3098;
} else if (w == 0.28) {
alpha = 0.9806;
beta = 0.2483;
} else if (w == 0.01) {
alpha = 0.824;
beta = 0.081;
} else {
cout << "No saved parameters for (n_p, w) = " << n_p << " " << w << endl;
}
} else if (n_p == 6) {
if (w == 1.0) {
alpha = 0.92;
beta = 0.565;
} else if (w == 0.5) {
alpha = 0.9004;
beta = 0.4099;
} else if (w == 0.28) {
alpha = 0.88;
beta = 0.33;
} else if (w == 0.01) {
alpha = 0.64;
beta = 0.09;
} else {
cout << "No saved parameters for (n_p, w) = " << n_p << " " << w << endl;
}
} else if (n_p == 12) {
if (w == 1.0) {
alpha = 0.87;
beta = 0.68;
} else if (w == 0.5) {
alpha = 0.8453;
beta = 0.4813;
} else if (w == 0.28) {
alpha = 0.8662;
beta = 0.3346;
} else if (w == 0.01) {
alpha = 0.37;
beta = 0.55;
} else {
cout << "No saved parameters for (n_p, w) = " << n_p << " " << w << endl;
}
} else if (n_p == 20) {
if (w == 1) {
alpha = 0.84;
beta = 0.76;
} else {
// alpha = 0.87;
// beta = 0.68;
// cout << "warning" << endl;
cout << "No saved parameters for (n_p, w) = " << n_p << " " << w << endl;
}
} else if (n_p == 30) {
if (w == 1) {
alpha = 0.78;
beta = 0.85;
} else {
// alpha = 0.87;
// beta = 0.68;
// cout << "warning" << endl;
cout << "No saved parameters for (n_p, w) = " << n_p << " " << w << endl;
}
} else {
cout << "No saved parameters for n_p=" << n_p << endl;
}
} else {
cout << "Unknown type " << type << "with dim=" << dim << endl;
}
}