From 90b3b1e145e9903ba78c0ae1d5b8f6a6eb542ef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kn=C3=BCttel?= Date: Wed, 12 Feb 2020 13:32:12 +0100 Subject: [PATCH] added the missing 1/sqrt(N) for std deviation of averages --- performance/measure_circuit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/performance/measure_circuit.py b/performance/measure_circuit.py index 8535867..1c4cf6f 100644 --- a/performance/measure_circuit.py +++ b/performance/measure_circuit.py @@ -25,6 +25,6 @@ def execution_statistics(circuits, state, scale=1, **kwargs): results /= scale N = len(results) avg = np.average(results) - std_dev = np.std(results) + std_dev = np.std(results) / np.sqrt(N) return N, avg, std_dev