Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
1ucian0 committed Aug 15, 2024
1 parent 442eb1f commit bdcbf9b
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 12 deletions.
2 changes: 1 addition & 1 deletion qiskit/providers/basic_provider/basic_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
from qiskit.circuit.library.standard_gates import get_standard_gate_name_mapping, GlobalPhaseGate
from qiskit.providers import Provider
from qiskit.providers.backend import BackendV2
from qiskit.providers.models import BackendConfiguration
from qiskit.providers.models.backendconfiguration import BackendConfiguration
from qiskit.providers.options import Options
from qiskit.qobj import QasmQobj, QasmQobjConfig, QasmQobjExperiment
from qiskit.result import Result
Expand Down
6 changes: 3 additions & 3 deletions qiskit/providers/fake_provider/fake_openpulse_2q.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
import datetime
import warnings

from qiskit.providers.models import (
from qiskit.providers.models.backendconfiguration import (
GateConfig,
PulseBackendConfiguration,
PulseDefaults,
Command,
UchannelLO,
)

from qiskit.providers.models.backendproperties import Nduv, Gate, BackendProperties
from qiskit.providers.models.pulsedefaults import PulseDefaults, Command
from qiskit.qobj import PulseQobjInstruction

from .fake_backend import FakeBackend
Expand Down
5 changes: 2 additions & 3 deletions qiskit/providers/fake_provider/fake_openpulse_3q.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@
"""
import warnings

from qiskit.providers.models import (
from qiskit.providers.models.backendconfiguration import (
GateConfig,
PulseBackendConfiguration,
PulseDefaults,
Command,
UchannelLO,
)
from qiskit.providers.models.pulsedefaults import PulseDefaults, Command
from qiskit.qobj import PulseQobjInstruction

from .fake_backend import FakeBackend
Expand Down
3 changes: 2 additions & 1 deletion qiskit/providers/fake_provider/fake_pulse_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"""

from qiskit.exceptions import QiskitError
from qiskit.providers.models import PulseBackendConfiguration, PulseDefaults
from qiskit.providers.models.backendconfiguration import PulseBackendConfiguration
from qiskit.providers.models import PulseDefaults

from .fake_qasm_backend import FakeQasmBackend
from .utils.json_decoder import decode_pulse_defaults
Expand Down
3 changes: 2 additions & 1 deletion qiskit/providers/fake_provider/fake_qasm_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
import warnings

from qiskit.exceptions import QiskitError
from qiskit.providers.models import BackendProperties, QasmBackendConfiguration
from qiskit.providers.models.backendproperties import BackendProperties
from qiskit.providers.models.backendconfiguration import QasmBackendConfiguration

from .utils.json_decoder import (
decode_backend_configuration,
Expand Down
16 changes: 16 additions & 0 deletions qiskit/providers/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@
GateProperties
Nduv
"""
# pylint: disable=undefined-all-variable
__all__ = [
"BackendConfiguration",
"PulseBackendConfiguration",
"QasmBackendConfiguration",
"UchannelLO",
"GateConfig",
"BackendProperties",
"GateProperties",
"Nduv",
"BackendStatus",
"JobStatus",
"PulseDefaults",
"Command",
]

import importlib
import warnings

Expand Down
2 changes: 1 addition & 1 deletion test/python/providers/test_backendstatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""

from qiskit.providers.fake_provider import Fake5QV1
from qiskit.providers.models import BackendStatus
from qiskit.providers.models.backendstatus import BackendStatus
from test import QiskitTestCase # pylint: disable=wrong-import-order


Expand Down
2 changes: 1 addition & 1 deletion test/python/providers/test_fake_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
)
from qiskit.providers.backend_compat import BackendV2Converter, convert_to_target
from qiskit.providers.models.backendproperties import BackendProperties
from qiskit.providers.models.backendconfiguration import GateConfig
from qiskit.providers.backend import BackendV2
from qiskit.providers.models import GateConfig
from qiskit.utils import optionals
from qiskit.circuit.library import (
SXGate,
Expand Down
2 changes: 1 addition & 1 deletion test/python/transpiler/test_pulse_gate_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from qiskit import pulse, circuit, transpile
from qiskit.providers.fake_provider import Fake27QPulseV1, GenericBackendV2
from qiskit.providers.models import GateConfig
from qiskit.providers.models.backendconfiguration import GateConfig
from qiskit.quantum_info.random import random_unitary
from test import QiskitTestCase # pylint: disable=wrong-import-order

Expand Down

0 comments on commit bdcbf9b

Please sign in to comment.