added friendly printout of number of test runs to be performed in test script
authorLucas K <lkocia@s3miclassical.com>
Tue, 22 Dec 2020 20:15:31 +0000 (12:15 -0800)
committerLucas K <lkocia@s3miclassical.com>
Tue, 22 Dec 2020 20:15:31 +0000 (12:15 -0800)
test.bash

index 3e5d698c6c609db0d32fa6be1c6b758fb288d0c6..5c6ab720b91aa4850c19623c872a4a31b361d370 100644 (file)
--- a/test.bash
+++ b/test.bash
@@ -12,8 +12,9 @@ numTgates=4
 
 numPaulis=1 # we want numPaulis to be 1 for the loop below
 
-numruns=1000
+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)
@@ -27,3 +28,4 @@ do
     break
   fi
 done
+echo "Test passed!"