-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
166 lines (147 loc) · 5.5 KB
/
Makefile
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
SPIN_ED = /vol/tcm01/westerhout_tom/spin-ed/SpinED-4c3305a
PYTHON = python3
INPUT_DATA_URL = https://surfdrive.surf.nl/files/index.php/s/Ec5CILNO5tbXlVk/download
JOBID =
NOISE = 0
CUTOFF = 1e-6
ORDER = 2
NUMBER_SAMPLES = 50000
ifneq ($(JOBID),)
SEED = $(JOBID)
else
SEED = 435834
endif
all:
.PHONY: small
small: experiments/heisenberg_kagome_16.csv \
experiments/heisenberg_kagome_18.csv \
experiments/j1j2_square_4x4.csv \
experiments/sk_16_1.csv \
experiments/sk_16_2.csv \
experiments/sk_16_3.csv
experiments/%.csv: physical_systems/data-small/%.h5
$(PYTHON) experiments/full_hilbert_space.py \
--hdf5 physical_systems/data-small/$(*F).h5 \
--yaml physical_systems/$(*F).yaml \
--seed $(SEED) \
--output [email protected] \
--number-sweeps 100,200,400,800,1600,3200,6400,12800,25600,51200,102400,204800 \
--repetitions 1024 && \
mv [email protected] $@
experiments/noise/%.csv: physical_systems/data-small/%.h5
@mkdir -p experiments/noise
$(PYTHON) annealing_sign_problem/influence_of_noise.py \
--hdf5 physical_systems/data-small/$(*F).h5 \
--yaml physical_systems/$(*F).yaml \
--seed $(SEED) \
--output [email protected] \
--min-noise 1e-2 \
--max-noise 1e2 \
--steps 1000 \
--repetitions 100 && \
mv [email protected] $@
experiments/couplings/%.csv: physical_systems/data-small/%.h5
@mkdir -p experiments/couplings
$(PYTHON) -c 'from annealing_sign_problem.common import *; analyze_coupling_distribution()' \
--hdf5 physical_systems/data-small/$(*F).h5 \
--yaml physical_systems/$(*F).yaml \
--output [email protected] && \
mv [email protected] $@
.PHONY: quality_check
quality_check: experiments/greedy/heisenberg_kagome_16 \
experiments/greedy/heisenberg_kagome_18 \
experiments/greedy/j1j2_square_4x4 \
experiments/greedy/sk_16_1 \
experiments/greedy/sk_16_2 \
experiments/greedy/sk_16_3
experiments/greedy/%: physical_systems/data-small/%.h5
@mkdir -p experiments/greedy
$(PYTHON) -c 'from annealing_sign_problem.common import *; check_greedy_algorithm_quality()' \
--hdf5 physical_systems/data-small/$(*F).h5 \
--yaml physical_systems/$(*F).yaml 2>/dev/null
is_frustrated: experiments/is_frustrated/heisenberg_kagome_16.csv \
experiments/is_frustrated/heisenberg_kagome_18.csv \
experiments/is_frustrated/j1j2_square_4x4.csv \
experiments/is_frustrated/sk_16_1.csv \
experiments/is_frustrated/sk_16_2.csv \
experiments/is_frustrated/sk_16_3.csv
experiments/is_frustrated/%.csv: physical_systems/data-small/%.h5
@mkdir -p experiments/is_frustrated
$(PYTHON) -c 'from annealing_sign_problem.common import *; analyze_probability_of_frustration()' \
--hdf5 physical_systems/data-small/$(*F).h5 \
--yaml physical_systems/$(*F).yaml \
--output [email protected] && \
mv [email protected] $@
.PHONY: small_amplitude_overlaps
small_amplitude_overlaps: \
experiments/small_amplitude_overlap/heisenberg_kagome_16.csv \
experiments/small_amplitude_overlap/heisenberg_kagome_18.csv \
experiments/small_amplitude_overlap/j1j2_square_4x4.csv \
experiments/small_amplitude_overlap/sk_16_1.csv \
experiments/small_amplitude_overlap/sk_16_2.csv \
experiments/small_amplitude_overlap/sk_16_3.csv
experiments/small_amplitude_overlap/%.csv: physical_systems/data-small/%.h5
$(PYTHON) -c 'from annealing_sign_problem.common import *; analyze_smallest_amplitude_overlap()' \
--hdf5 physical_systems/data-small/$(*F).h5 \
--seed $(SEED)
.PHONY: pyrochlore_32
pyrochlore_32:
@mkdir -p experiments/pyrochlore/noise_$(NOISE)/cutoff_$(CUTOFF)
$(PYTHON) experiments/sampled_connected_components.py \
--hdf5 physical_systems/data-large/heisenberg_pyrochlore_2x2x2.h5 \
--yaml physical_systems/heisenberg_pyrochlore_2x2x2.yaml \
--seed $(SEED) \
--output experiments/pyrochlore/noise_$(NOISE)/cutoff_$(CUTOFF)/pyrochlore_32.csv$(JOBID) \
--order $(ORDER) \
--noise $(NOISE) \
--no-annealing \
--global-cutoff $(CUTOFF) \
--number-samples $(NUMBER_SAMPLES)
.PHONY: kagome_36
kagome_36:
@mkdir -p experiments/kagome/noise_$(NOISE)/cutoff_$(CUTOFF)
$(PYTHON) experiments/sampled_connected_components.py \
--hdf5 physical_systems/data-large/heisenberg_kagome_36.h5 \
--yaml physical_systems/heisenberg_kagome_36.yaml \
--seed $(SEED) \
--output experiments/kagome/noise_$(NOISE)/cutoff_$(CUTOFF)/kagome_36.csv$(JOBID) \
--order $(ORDER) \
--noise $(NOISE) \
--no-annealing \
--global-cutoff $(CUTOFF) \
--number-samples $(NUMBER_SAMPLES)
.PHONY: sk_32_1
sk_32_1:
@mkdir -p experiments/sk/noise_$(NOISE)/cutoff_$(CUTOFF)
$(PYTHON) experiments/sampled_connected_components.py \
--hdf5 physical_systems/data-large/sk_32_1.h5 \
--yaml physical_systems/sk_32_1.yaml \
--seed $(SEED) \
--output experiments/sk/noise_$(NOISE)/cutoff_$(CUTOFF)/sk_32_1.csv$(JOBID) \
--order $(ORDER) \
--noise $(NOISE) \
--no-annealing \
--global-cutoff $(CUTOFF) \
--number-samples $(NUMBER_SAMPLES)
physical_systems/data-small:
mkdir -p $(@D) && \
cd $(@D) && \
wget --no-verbose -O tmp.zip $(INPUT_DATA_URL)?path=/physical_systems/data-small && \
unzip tmp.zip && rm tmp.zip
physical_systems/data-large:
mkdir -p $(@D) && \
cd $(@D) && \
wget --no-verbose -O tmp.zip $(INPUT_DATA_URL)?path=/physical_systems/data-large && \
unzip tmp.zip && rm tmp.zip
# Initiall the hdf5 files were generated using the following rules:
#
# .PHONY: ed
# ed: physical_systems/heisenberg_kagome_16.h5 \
# physical_systems/heisenberg_kagome_18.h5 \
# physical_systems/j1j2_square_4x4.h5 \
# physical_systems/sk_16_1.h5 \
# physical_systems/sk_16_2.h5 \
# physical_systems/sk_16_3.h5
#
# physical_systems/%.h5: physical_systems/%.yaml
# OMP_NUM_THREADS=`nproc` $(SPIN_ED) $< && mv $(@F) $(@D)