Skip to content

Commit

Permalink
Attempt to fix terra unit tests (#1102)
Browse files Browse the repository at this point in the history
* Attempt to fix terra unit tests

* test on my fork

* revert coder_qc change
  • Loading branch information
kt474 authored Sep 24, 2023
1 parent 40a5217 commit 86eac07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/test_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

"""Tests for sampler class."""

from qiskit.circuit import QuantumCircuit
from qiskit.test.reference_circuits import ReferenceCircuits
from qiskit_ibm_runtime import Sampler, Session

from ..ibm_test_case import IBMTestCase
Expand All @@ -32,7 +32,7 @@ def test_unsupported_values_for_sampler_options(self):
service=FakeRuntimeService(channel="ibm_quantum", token="abc"),
backend="common_backend",
) as session:
circuit = QuantumCircuit(1, 1)
circuit = ReferenceCircuits.bell()
for bad_opt in options_bad:
inst = Sampler(session=session)
with self.assertRaises(ValueError) as exc:
Expand Down

0 comments on commit 86eac07

Please sign in to comment.