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)
continue
else
echo "NOT EQUAL!"
- break
+ exit
fi
done
+echo "Test passed!"