From 12cc33705cb62fd65c81ecf4ddee5a797af0e1d8 Mon Sep 17 00:00:00 2001 From: Will Shanks Date: Wed, 15 Nov 2023 14:38:20 -0500 Subject: [PATCH] Remove stray references to terra --- .pylintrc | 2 +- constraints.txt | 4 ++-- qiskit_experiments/framework/backend_data.py | 8 ++++---- .../data/generate_clifford_data.py | 2 -- test/framework/test_backend_timing.py | 2 +- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.pylintrc b/.pylintrc index 61be1ca41d..22f47fd59f 100644 --- a/.pylintrc +++ b/.pylintrc @@ -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 diff --git a/constraints.txt b/constraints.txt index cd066084df..fffba16557 100644 --- a/constraints.txt +++ b/constraints.txt @@ -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 \ No newline at end of file +numpy<1.25 diff --git a/qiskit_experiments/framework/backend_data.py b/qiskit_experiments/framework/backend_data.py index 1f0b589523..93ed671d6d 100644 --- a/qiskit_experiments/framework/backend_data.py +++ b/qiskit_experiments/framework/backend_data.py @@ -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 @@ -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. """ @@ -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): diff --git a/qiskit_experiments/library/randomized_benchmarking/data/generate_clifford_data.py b/qiskit_experiments/library/randomized_benchmarking/data/generate_clifford_data.py index 5970e190b6..7ebd45dcab 100644 --- a/qiskit_experiments/library/randomized_benchmarking/data/generate_clifford_data.py +++ b/qiskit_experiments/library/randomized_benchmarking/data/generate_clifford_data.py @@ -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 diff --git a/test/framework/test_backend_timing.py b/test/framework/test_backend_timing.py index a4b64f4075..baaf2779f7 100644 --- a/test/framework/test_backend_timing.py +++ b/test/framework/test_backend_timing.py @@ -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