added friendly printout of number of test runs to be performed in test script
[strong_simulation_gauss_sum_rank.git] / test.bash
index 91cb69ec6e8b189434e2df6a59b8d7a38edee95d..5c6ab720b91aa4850c19623c872a4a31b361d370 100644 (file)
--- a/test.bash
+++ b/test.bash
@@ -12,6 +12,9 @@ numTgates=4
 
 numPaulis=1 # we want numPaulis to be 1 for the loop below
 
 
 numPaulis=1 # we want numPaulis to be 1 for the loop below
 
+numruns=20
+
+echo "Starting test of $numruns random Pauli expectation values..."
 for i in $(seq 1 $numruns)
 do
   sleep 1;a=$(stdbuf -oL ./randommultipleinputPaulis $numqubits $numTgates $numPaulis > inputPaulis.txt && $gausssumcode < inputPaulis.txt | tail -1)
 for i in $(seq 1 $numruns)
 do
   sleep 1;a=$(stdbuf -oL ./randommultipleinputPaulis $numqubits $numTgates $numPaulis > inputPaulis.txt && $gausssumcode < inputPaulis.txt | tail -1)
@@ -25,3 +28,4 @@ do
     break
   fi
 done
     break
   fi
 done
+echo "Test passed!"