-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_rand_decode_perm_check.sh
More file actions
50 lines (38 loc) · 1.69 KB
/
run_rand_decode_perm_check.sh
File metadata and controls
50 lines (38 loc) · 1.69 KB
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
#test expotential decay with # of permutation
#size =5, p={1000,2000,3000}, perm ={5..100..5}
#direct rand decode on toric code
#switch input file
error_file=input
#error_file=output_nonconverge
error_folder=data/toric/permutation/input_error
stabilizer_folder=data/toric/stabilizer
#for size in {5,7,9,11,13}
size=5
for p in {1000,2000,3000}
#for p in {3000..3100..500}
do
echo start check for size ${size} x ${size} when p = $p>>${error_folder}/decode.log
date >>${error_folder}/decode.log
output_folder=data/toric/permutation/output_error/p${p}
# mkdir ${output_folder}
#name rule: need 0.00 for 100..900 and 0.0 for 1000..5000
for j in {2..20..1}
do
#to make this work, one need rename the first file in perm1/ from *output to *output_perm1
output_folder1=data/toric/permutation/output_error/p${p}/perm$(($j-1))
output_folder2=data/toric/permutation/output_error/p${p}/perm${j}
output_file1=${error_file}_output_perm$(($j-1))
output_file2=${error_file}_output
output_file=${error_file}_output_perm${j}
./rand_decode_perm_check.out \
${stabilizer_folder}/toric_S_z_size_${size}.mm \
${error_folder}/toric_S_size_${size}.mm_rate0.0${p}_${error_file} \
${output_folder1}/toric_S_size_${size}.mm_rate0.0${p}_${output_file1} \
${output_folder2}/toric_S_size_${size}.mm_rate0.0${p}_${output_file2} \
${output_folder2}/toric_S_size_${size}.mm_rate0.0${p}_${output_file} \
${output_folder}/toric_S_size_${size}.mm_rate0.0${p}_${error_file} $p
echo p = ${p}, j = $j >>${error_folder}/decode.log
done
echo finish rand decoding size ${size} x ${size} when p = $p >>${error_folder}/decode.log
date >>${error_folder}/decode.log
done