Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wshanks committed Feb 17, 2025
1 parent 9ac4edc commit 93b8618
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 12 deletions.
6 changes: 3 additions & 3 deletions docs/manuals/measurement/restless_measurements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ in a restless mode. With a hardware backend, this would be done by calling the

.. jupyter-input::

drag_data_restless = cal_drag.run()
drag_data_restless = exp.run()

As shown by the example, the code is identical to running a normal experiment aside
from a call to the method :meth:`~.RestlessMixin.enable_restless`. Note that you can also choose to keep
Expand Down Expand Up @@ -204,9 +204,9 @@ using the code below.
)
durations = [c.duration for c in executed_circs]
tau = sum(durations) * dt / (len(durations))
tau = sum(durations) * backend.dt / (len(durations))

n_circs = len(cal_drag.circuits())
n_circs = len(exp.circuits())
# can be obtained from backend.default_rep_delay on a backend from qiskit-ibm-runtime

delay_s = 0.0025
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
Interleaved RB Experiment class.
"""
import itertools
import warnings
from typing import Union, Iterable, Optional, List, Sequence, Dict, Any

from numpy.random import Generator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"""
import functools
import logging
from collections import defaultdict
from typing import Union, Iterable, Optional, List, Sequence, Tuple, Dict

from numpy.random import Generator, default_rng
Expand Down
4 changes: 0 additions & 4 deletions test/library/characterization/test_half_angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
"""Test the half angle experiment."""

from test.base import QiskitExperimentsTestCase
import copy

from qiskit import transpile
from qiskit_ibm_runtime.fake_provider import FakeAthensV2

from qiskit_experiments.test.mock_iq_backend import MockIQBackend
from qiskit_experiments.test.mock_iq_helpers import MockIQHalfAngleHelper as HalfAngleHelper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from qiskit.circuit.library import SXGate, CXGate, TGate, CZGate
from qiskit.exceptions import QiskitError
from qiskit.providers.fake_provider import GenericBackendV2
from qiskit.transpiler import InstructionProperties
from qiskit_aer import AerSimulator
from qiskit_aer.noise import NoiseModel, depolarizing_error
from qiskit_ibm_runtime.fake_provider import FakeManilaV2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import numpy as np
from ddt import ddt, data, unpack

from qiskit.circuit.library import SXGate
from qiskit.exceptions import QiskitError
from qiskit_ibm_runtime.fake_provider import FakeManilaV2
from qiskit_experiments.library.randomized_benchmarking import LayerFidelity, LayerFidelityAnalysis
Expand Down
1 change: 0 additions & 1 deletion test/library/randomized_benchmarking/test_standard_rb.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from test.library.randomized_benchmarking.mixin import RBTestMixin
from ddt import ddt, data, unpack

from qiskit.circuit.library import SXGate
from qiskit.exceptions import QiskitError
from qiskit_aer import AerSimulator
from qiskit_aer.noise import NoiseModel, depolarizing_error
Expand Down

0 comments on commit 93b8618

Please sign in to comment.