Skip to content

Commit

Permalink
minor update 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Weilei Zeng at qlab01 committed Apr 26, 2024
1 parent 70a648f commit 87521ad
Showing 1 changed file with 29 additions and 20 deletions.
49 changes: 29 additions & 20 deletions run_reshape.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
make reshape
#define code<k>, code<k>[<d>]
code1=(NA NA NA n7k1d3-x3z3dx3dz3-0 n15k1d4-x8z6dx4dz4-0 n25k1d5-x13z11dx5dz5-0)
code2=(NA NA NA n11k2d3-x4z5dx3dz3-0 n18k2d4-x8z8dx4dz4-0 n27k2d5-x13z12dx5dz5-0)
code2=(NA NA NA n11k2d3-x4z5dx3dz3-1 n18k2d4-x8z8dx4dz4-1 n27k2d5-x13z12dx5dz5-1)
code3=(NA NA NA n11k3d3-x4z4dx3dz3-0 n19k3d4-x9z7dx4dz4-0 n29k3d5-x13z13dx5dz5-0)

echo "The seed codes used to construct SPC: code<k>[<d>]"
Expand All @@ -13,52 +13,61 @@ mode=2 #0 for check; 1 for steane; 2 for simulating from file
date

#i for codeA
for i in {3..5}
#for i in {3..5}
for i in {3,5}
do
#j for codeB
for j in {3..5}
for j in {3,5,}
do
# break
if [ $i -le $j ]
then
codeA=${code2[$i]}
codeB=${code2[$j]}
title=2${i}2${j}
codeA=${code1[$i]}
codeB=${code1[$j]}
title=none #1${i}1${j}
# 3 3 get wrong title 2 2
echo codeA: ${codeA}, codeB: ${codeB}
echo codeA: ${codeA}, codeB: ${codeB}, mode: ${mode}
output=${codeA}_${codeB}
# echo ${output}
# continue
# srun --time=6:00:00 -p small -n 1 --cpus-per-task=16 \
srun --time=24:00:00 -n 1 --cpus-per-task=32 \

# srun --time=24:00:00 -n 1 --cpus-per-task=32 \
srun --time=2-00:00:00 -p mini -n 1 --cpus-per-task=16 --qos=normal \
./reshape.out \
note=${output} \
title=${title} \
codeA_prefix=../data/CSS-Codes/run2/${codeA} \
codeB_prefix=../data/CSS-Codes/run2/${codeB} \
output=result/unchecked/${output}.json \
num_cores=32 \
e_try=100000 \
output=result/two_cycles/${output}.json \
num_cores=16 \
e_try=1000000 \
debug=0 \
mode=${mode} &
# wait
# exit
mode=${mode} &
# output=result/unchecked/${output}.json \

# wait
# exit
fi
done
done

wait
echo done
exit
echo after exit

mode=1
output=tmp

srun --time=6:00:00 -p small -n 1 --cpus-per-task=16 \
./reshape.out \
note=${output} \
codeA_prefix=../data/CSS-Codes/run2/${codeA} \
codeB_prefix=../data/CSS-Codes/run2/${codeB} \
output=result/${output}.json \
codeA_prefix=../data/CSS-Codes/run2/${code2[3]} \
codeB_prefix=../data/CSS-Codes/run2/${code2[3]} \
output=result/tmp/${output}.json \
num_cores=16 \
e_try=30000 \
debug=0 \
e_try=10000 \
debug=1 \
mode=${mode}

date
Expand Down

0 comments on commit 87521ad

Please sign in to comment.