Skip to content

Commit 4436b7f

Browse files
chore: change shots data
1 parent cd81829 commit 4436b7f

File tree

1 file changed

+1
-1
lines changed
  • mpqp/execution/providers

1 file changed

+1
-1
lines changed

mpqp/execution/providers/ibm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ def extract_result(
728728
shots = (
729729
job.measure.shots
730730
if job.device.is_noisy_simulator() and job.measure is not None
731-
else result[0].metadata["shots"]
731+
else res.metadata["shots"]
732732
)
733733
variance = (
734734
result.metadata[0]["variance"]

0 commit comments

Comments
 (0)