-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
73 lines (51 loc) · 1.41 KB
/
settings.py
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
def init():
global problem
problem="MIS"
#problem="MaxCut"
#problem="Custom"
global type_graph
type_graph="Unit Disk"
#type_graph="Fixed Degree"
global degree
degree=3
global dissipation
dissipation=True
global distance
distance=1. #parameter for UD graphs. Distance below which there is an edge between vertices
# Maybe change to density ---> more relevant parameter
global N
N=8 #number of vertices in the graph
#p=2# Depth of the QAOA algorithm
global density
density=2.6
global deg
deg=0# parameter for MaxCut graphs. Degree of a regular graph
global delta_ee
delta_ee=-2.
global delta_rr
delta_rr=-0.
global Gamma
Gamma=0.1
#theta=np.ones(2*(p))
global gamma_deph
gamma_deph=0.0
global type_observable
#type_observable=["cVAR",0.6] # Choose in {["energy",0.],["cVAR",seuil]}. cVAR corresponds to the expected shortfall in the "seuil" better cases.
type_observable=["energy",0.]
global type_evolution
#type_evolution="not mixte"
type_evolution="mixte"
global branching_ratio
branching_ratio=0.#2./3.
global delt
delt=2**(-8)
global Omega1
Omega1=1.
global Omega2
Omega2=1.
global stability_threshold
stability_threshold=0.04
global N_min_sample_diss
N_min_sample_diss=1
global N_max_sample_diss
N_max_sample_diss=1#000