Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFerracin committed Sep 27, 2024
1 parent 359bb81 commit 9ea42f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qiskit_ibm_runtime/debug_tools/neat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 9ea42f4

Please sign in to comment.