From 9ea42f4fe440314ff0a4483b816244590e3fc412 Mon Sep 17 00:00:00 2001 From: SamFerracin Date: Fri, 27 Sep 2024 16:23:56 -0400 Subject: [PATCH] docs --- qiskit_ibm_runtime/debug_tools/neat.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qiskit_ibm_runtime/debug_tools/neat.py b/qiskit_ibm_runtime/debug_tools/neat.py index eb3a5c3b0..f43b24ed2 100644 --- a/qiskit_ibm_runtime/debug_tools/neat.py +++ b/qiskit_ibm_runtime/debug_tools/neat.py @@ -100,11 +100,11 @@ class Neat: r_qpu = estimator.run(cliff_pubs) # Calculate useful figures of merit using mathematical operators, for - # example the signal to noise ratio between noisy and ideal results, ... - signal_to_noise_ratio = r_noisy[0] / r_ideal[0] + # example the relative difference between experimental and noisy results, ... + rel_diff = abs(r_noisy[0] - r_qpu[0]) / r_noisy[0] - # ... the relative difference between experimental and ideal results, ... - rel_diff = abs(r_ideal[0] - r_qpu.data[0]) / r_ideal[0] + # ... the signal-to-noise ratio between experimental and ideal results, ... + ratio = r_qpu[0] / r_ideal[0] # ... or the absolute difference between results obtained with different noise models abs_diff = abs(r_noisy[0] - another_r_noisy[0])