Skip to content

Commit

Permalink
Update qiskit_ibm_runtime/debugger/debugger.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jessie Yu <[email protected]>
  • Loading branch information
SamFerracin and jyu00 committed Sep 26, 2024
1 parent 6a86374 commit 67554b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qiskit_ibm_runtime/debugger/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ def simulate(
debugger = Debugger(backend)
# Calculate the expectation values in the absence of noise
r_ideal = debugger.simulate(pubs, with_noise=True)
r_ideal = debugger.simulate(pubs, with_noise=False)
# Calculate the expectation values in the presence of noise
r_noisy = debugger.simulate(pubs, with_noise=False)
r_noisy = debugger.simulate(pubs, with_noise=True)
# Calculate the ratio between the two
signal_to_noise_ratio = r_noisy[0]/r_ideal[1]
Expand Down

0 comments on commit 67554b4

Please sign in to comment.