Skip to content

Commit

Permalink
revert integration/test_sampler_v2.py
Browse files Browse the repository at this point in the history
  • Loading branch information
t-imamichi committed Jun 3, 2024
1 parent 60ccaac commit 44aeec9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/integration/test_sampler_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from qiskit import ClassicalRegister, QuantumCircuit, QuantumRegister, transpile
from qiskit.circuit import Parameter
from qiskit.circuit.library import RealAmplitudes, UnitaryGate
from qiskit.primitives import PrimitiveResult, SamplerPubResult
from qiskit.primitives import PrimitiveResult
from qiskit.primitives.containers import BitArray
from qiskit.primitives.containers.data_bin import DataBin
from qiskit.primitives.containers.sampler_pub import SamplerPub
Expand Down Expand Up @@ -556,7 +556,9 @@ def _verify_result_type(self, result, num_pubs, targets=None):
self.assertIsInstance(result.metadata, dict)
self.assertEqual(len(result), num_pubs)
for idx, pub_result in enumerate(result):
self.assertIsInstance(pub_result, SamplerPubResult)
# TODO: We need to update the following test to check `SamplerPubResult`
# when the server side is upgraded to Qiskit 1.1.
self.assertIsInstance(pub_result, PubResult)
self.assertIsInstance(pub_result.data, DataBin)
self.assertIsInstance(pub_result.metadata, dict)
if targets:
Expand Down

0 comments on commit 44aeec9

Please sign in to comment.