Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…nto draw-pl
  • Loading branch information
SamFerracin committed Aug 21, 2024
2 parents 0e8be0a + 848b6ac commit 9964905
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 29 deletions.
2 changes: 1 addition & 1 deletion release-notes/0.12.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Bug Fixes
a past date.

- The ``noise_factors`` and ``extrapolator`` options in
`qiskit_ibm_runtime.options.ResilienceOptions <https://docs.quantum.ibm.com/api/qiskit-ibm-runtime/qiskit_ibm_runtime.options.ResilienceOptions>`__
`qiskit_ibm_runtime.options.ResilienceOptions <https://docs.quantum.ibm.com/api/qiskit-ibm-runtime/0.27/qiskit_ibm_runtime.options.ResilienceOptions>`__
will now default to ``None`` unless ``resilience_level`` is set to 2.
Only options relevant to the resilience level will be set, so when
using ``resilience_level`` 2, ``noise_factors`` will still default to
Expand Down
4 changes: 2 additions & 2 deletions release-notes/0.28.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ New Features
Other Notes
-----------

- The V1 Primitives ``SamplerV1`` and ``EstimatorV1`` have been completely removed. Please use the
`migration guide <https://docs.quantum.ibm.com/migration-guides/v2-primitives>`__ and use theV2 Primitives instead. (`1857 <https://github.com/Qiskit/qiskit-ibm-runtime/pull/1857>`__)
- The V1 Primitives ``SamplerV1`` and ``EstimatorV1`` have been completely removed. Please see the
`migration guide <https://docs.quantum.ibm.com/migration-guides/v2-primitives>`__ and use the V2 Primitives instead. (`1857 <https://github.com/Qiskit/qiskit-ibm-runtime/pull/1857>`__)
- The ``service`` parameter is now required in ``Session.from_id()``. (`1868 <https://github.com/Qiskit/qiskit-ibm-runtime/pull/1868>`__)
29 changes: 3 additions & 26 deletions test/integration/test_fake_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,30 +78,7 @@ def test_circuit_on_fake_backend_v2(self, backend, optimization_level):
max_count = max(counts.items(), key=operator.itemgetter(1))[0]
self.assertEqual(max_count, "11")

@idata(
itertools.product(
[be for be in FAKE_PROVIDER.backends() if be.configuration().num_qubits > 1],
[0, 1, 2, 3],
)
)
@unpack
def test_circuit_on_fake_backend(self, backend, optimization_level):
if not optionals.HAS_AER and backend.configuration().num_qubits > 20:
self.skipTest(
"Unable to run fake_backend %s without qiskit-aer"
% backend.configuration().backend_name
)
backend.set_options(seed_simulator=42)
pm = generate_preset_pass_manager(backend=backend, optimization_level=optimization_level)
isa_circuit = pm.run(self.circuit)
sampler = Sampler(backend)
job = sampler.run([isa_circuit])
pub_result = job.result()[0]
counts = pub_result.data.meas.get_counts()
max_count = max(counts.items(), key=operator.itemgetter(1))[0]
self.assertEqual(max_count, "11")

@data(*FAKE_PROVIDER.backends(), *FAKE_PROVIDER_FOR_BACKEND_V2.backends())
@data(*FAKE_PROVIDER_FOR_BACKEND_V2.backends())
def test_to_dict_properties(self, backend):
properties = backend.properties()
if properties:
Expand All @@ -120,7 +97,7 @@ def test_backend_v2_dtm(self, backend):
if backend.dtm:
self.assertLess(backend.dtm, 1e-6)

@data(*FAKE_PROVIDER.backends(), *FAKE_PROVIDER_FOR_BACKEND_V2.backends())
@data(*FAKE_PROVIDER_FOR_BACKEND_V2.backends())
def test_to_dict_configuration(self, backend):
configuration = backend.configuration()
if configuration.open_pulse:
Expand All @@ -142,7 +119,7 @@ def test_to_dict_configuration(self, backend):

self.assertIsInstance(configuration.to_dict(), dict)

@data(*FAKE_PROVIDER.backends(), *FAKE_PROVIDER_FOR_BACKEND_V2.backends())
@data(*FAKE_PROVIDER_FOR_BACKEND_V2.backends())
def test_defaults_to_dict(self, backend):
if hasattr(backend, "defaults"):
defaults = backend.defaults()
Expand Down

0 comments on commit 9964905

Please sign in to comment.