-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add wait to notify the end of simulations
- Loading branch information
Showing
3 changed files
with
51 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,64 @@ | ||
#!/bin/bash | ||
|
||
pids=() | ||
|
||
# for i in 1 2 4 8 16 32 64; | ||
# do | ||
# echo "Welcome $i times" | ||
# ./quisp -n "./networks:./channels:./modules:./simulations" -i \ | ||
# ./images ./simulations/mim_generation_test.ini -u Cmdenv -c "memory_$i" --cmdenv-status-frequency=10s > "out-$i" & | ||
# echo "Running first exp with $i memories" | ||
# ./quisp -n "./networks:./channels:./modules:./simulations" \ | ||
# -i ./images./simulations/mim_generation_test.ini -u Cmdenv \ | ||
# -c "memory_$i" --cmdenv-status-frequency=10s > "out-$i" & | ||
# pids += ($ !) | ||
# done | ||
|
||
# for i in 0 1 2 3 4 5 6 7 8 9 10; | ||
# do | ||
# alicedist="$((20 - $i))" | ||
# echo "Welcome $i times $alicedist" | ||
# ./quisp -n "./networks:./channels:./modules:./simulations" -i \ | ||
# ./images ./simulations/cross_validation.ini -u Cmdenv -c "mim_imbalanced_${alicedist}_${i}" --cmdenv-status-frequency=10s > "exp2-raw-${alicedist}_${i}" & | ||
# alicedist = "$((20 - $i))" | ||
# echo "Running imbalanced BSA placement with distance $i - $alicedist" | ||
# ./quisp -n "./networks:./channels:./modules:./simulations" \ | ||
# -i ./images./simulations/cross_validation.ini -u Cmdenv \ | ||
# -c "mim_imbalanced_${alicedist}_${i}" --cmdenv-status-frequency=10s > "exp2-raw-${alicedist}_${i}" & | ||
# pids += ($ !) | ||
# done | ||
|
||
for cnot in 0 025 05 075 1 125 15 175 2 225 25 275 3 325 35 375 4 425 45 475; | ||
for cnot in 0 025 05 075 1 125 15 175 2 225 25 275 3 325 35 375 4 425 45 475 5; | ||
do | ||
echo "Welcome cnot: $cnot, meas $meas, without decoherence" | ||
./quisp -n "./networks:./channels:./modules:./simulations" -i \ | ||
./images ./simulations/cross_validation_config_generated.ini -u Cmdenv -c "swapping_validation_cnot_${cnot}_meas_0_with_1ms_decoherence" --cmdenv-status-frequency=10s > "exp3-raw-${cnot}_0_with_1ms_decoherence" & | ||
echo "Running experiment 3 - CNOT error: $cnot, measurement error: 0, with 1ms decoherence" | ||
./quisp -n "./networks:./channels:./modules:./simulations" \ | ||
-i ./images ./simulations/cross_validation_config_generated.ini -u Cmdenv \ | ||
-c "swapping_validation_cnot_${cnot}_meas_0_with_1ms_decoherence" \ | ||
--cmdenv-status-frequency=10s > "exp3-raw-${cnot}_0_with_1ms_decoherence" & | ||
pids+=($!) | ||
|
||
echo "Welcome cnot: $cnot, meas $meas, with 1ms decoherence" | ||
./quisp -n "./networks:./channels:./modules:./simulations" -i \ | ||
./images ./simulations/cross_validation_config_generated.ini -u Cmdenv -c "swapping_validation_cnot_${cnot}_meas_0_without_decoherence" --cmdenv-status-frequency=10s > "exp3-raw-${cnot}_0_without_decoherence" & | ||
echo "Running experiment 3 - CNOT error: $cnot, measurement error: 0, without decoherence" | ||
./quisp -n "./networks:./channels:./modules:./simulations" \ | ||
-i ./images ./simulations/cross_validation_config_generated.ini -u Cmdenv \ | ||
-c "swapping_validation_cnot_${cnot}_meas_0_without_decoherence" \ | ||
--cmdenv-status-frequency=10s > "exp3-raw-${cnot}_0_without_decoherence" & | ||
pids+=($!) | ||
done | ||
|
||
for meas in 025 05 075 1 125 15 175 2 225 25 275 3 325 35 375 4 425 45 475; | ||
for meas in 025 05 075 1 125 15 175 2 225 25 275 3 325 35 375 4 425 45 475 5; | ||
do | ||
echo "Welcome cnot: $cnot, meas $meas, without decoherence" | ||
./quisp -n "./networks:./channels:./modules:./simulations" -i \ | ||
./images ./simulations/cross_validation_config_generated.ini -u Cmdenv -c "swapping_validation_cnot_0_meas_${meas}_with_1ms_decoherence" --cmdenv-status-frequency=10s > "exp3-raw-0_${meas}_with_1ms_decoherence" & | ||
echo "Running experiment 3 - CNOT error: 0, measurement error: $meas, with 1ms decoherence" | ||
./quisp -n "./networks:./channels:./modules:./simulations" \ | ||
-i ./images ./simulations/cross_validation_config_generated.ini -u Cmdenv \ | ||
-c "swapping_validation_cnot_0_meas_${meas}_with_1ms_decoherence" \ | ||
--cmdenv-status-frequency=10s > "exp3-raw-0_${meas}_with_1ms_decoherence" & | ||
pids+=($!) | ||
|
||
echo "Welcome cnot: $cnot, meas $meas, with 1ms decoherence" | ||
./quisp -n "./networks:./channels:./modules:./simulations" -i \ | ||
./images ./simulations/cross_validation_config_generated.ini -u Cmdenv -c "swapping_validation_cnot_0_meas_${meas}_without_decoherence" --cmdenv-status-frequency=10s > "exp3-raw-0_${meas}_without_decoherence" & | ||
echo "Running experiment 3 - CNOT error: 0, measurement error: $meas, without decoherence" | ||
./quisp -n "./networks:./channels:./modules:./simulations" \ | ||
-i ./images ./simulations/cross_validation_config_generated.ini -u Cmdenv \ | ||
-c "swapping_validation_cnot_0_meas_${meas}_without_decoherence" \ | ||
--cmdenv-status-frequency=10s > "exp3-raw-0_${meas}_without_decoherence" & | ||
pids+=($!) | ||
done | ||
|
||
# wait for all pids | ||
for pid in ${pids[*]}; | ||
do | ||
echo "waiting on pid = $pid" | ||
wait $pid done | ||
done | ||
echo "All simulations finished" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters