Skip to content

Commit

Permalink
Remove observables from sampler run
Browse files Browse the repository at this point in the history
  • Loading branch information
ElePT committed Sep 21, 2023
1 parent 4fffcda commit 8e19bcd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/unit/test_ibm_primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,12 @@ def test_default_error_levels(self):
simulator={"noise_model": "foo"},
)
inst = cls(session=session, options=options)
inst.run(self.qx, observables=self.obs)

if isinstance(inst, Estimator):
inst.run(self.qx, observables=self.obs)
else:
inst.run(self.qx)

if sys.version_info >= (3, 8):
inputs = session.run.call_args.kwargs["inputs"]
else:
Expand Down

0 comments on commit 8e19bcd

Please sign in to comment.