Skip to content

Commit

Permalink
Remove stray references to terra
Browse files Browse the repository at this point in the history
  • Loading branch information
wshanks committed Nov 15, 2023
1 parent d77779a commit 12cc337
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ disable=fixme, # disabled as TODOs would show up as warnings
cyclic-import, # This checker raises on all module pairs that import each other,
# even submodules that only import already loaded objects from a
# parent module, a common pattern in qiskit-experiments.
assigning-non-slot # https://github.com/Qiskit/qiskit-terra/pull/7347#issuecomment-985007311
assigning-non-slot # https://github.com/Qiskit/qiskit/pull/7347#issuecomment-985007311



Expand Down
4 changes: 2 additions & 2 deletions constraints.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Numpy 1.25 deprecated some behaviours that we used, and caused some
# tests to flake. See https://github.com/Qiskit/qiskit-terra/issues/10305,
# tests to flake. See https://github.com/Qiskit/qiskit/issues/10305,
# remove pin when resolving that.
numpy<1.25
numpy<1.25
8 changes: 4 additions & 4 deletions qiskit_experiments/framework/backend_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ def __init__(self, backend):
self._parse_additional_data()

def _parse_additional_data(self):
# data specific parsing not done yet in qiskit-terra
# data specific parsing not done yet in upstream qiskit
if hasattr(self._backend, "_conf_dict") and self._backend._conf_dict["open_pulse"]:
if "u_channel_lo" not in self._backend._conf_dict:
self._backend._conf_dict["u_channel_lo"] = [] # to avoid terra bug
self._backend._conf_dict["u_channel_lo"] = [] # to avoid qiskit bug
self._pulse_conf = PulseBackendConfiguration.from_dict(self._backend._conf_dict)

@property
Expand Down Expand Up @@ -222,7 +222,7 @@ def meas_freqs(self):
.. note::
The qiskit-terra base classes do not provide this information as a
The qiskit base classes do not provide this information as a
standard backend property, but it is available from some providers
in the data returned by the ``Backend.defaults()`` method.
"""
Expand All @@ -249,7 +249,7 @@ def is_simulator(self):
For `BackendV2` we sometimes cannot be sure, because it lacks
a `simulator` field, as was present in `BackendV1`'s configuration.
We still check whether the backend inherits `FakeBackendV2`, for
either of its existing implementations in Terra.
either of its existing implementations in Qiskit.
"""
if self._v1:
if self._backend.configuration().simulator or isinstance(self._backend, FakeBackend):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
The script relies on the values of ``_CLIFF_SINGLE_GATE_MAP_2Q``
in :mod:`~qiskit_experiment.library.randomized_benchmarking.clifford_utils`
so they must be set correctly before running the script.
Note: Terra >= 0.22 is required to run this script.
"""
import itertools

Expand Down
2 changes: 1 addition & 1 deletion test/framework/test_backend_timing.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def setUpClass(cls):
super().setUpClass()

# Creating a complete fake backend is difficult so we use one from
# terra. Just to be safe, we check that the properties we care about
# qiskit. Just to be safe, we check that the properties we care about
# for these tests are never changed from what the tests assume.
backend = FakeNairobiV2()
target = backend.target
Expand Down

0 comments on commit 12cc337

Please sign in to comment.