added the missing 1/sqrt(N) for std deviation of averages

This commit is contained in:
Daniel Knüttel 2020-02-12 13:32:12 +01:00
parent cb0edce102
commit 90b3b1e145

View File

@ -25,6 +25,6 @@ def execution_statistics(circuits, state, scale=1, **kwargs):
results /= scale results /= scale
N = len(results) N = len(results)
avg = np.average(results) avg = np.average(results)
std_dev = np.std(results) std_dev = np.std(results) / np.sqrt(N)
return N, avg, std_dev return N, avg, std_dev