Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
ElePT committed Nov 23, 2023
1 parent ede1334 commit 30157f9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
6 changes: 4 additions & 2 deletions qiskit/providers/fake_provider/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
FakeBackend5QV2
FakeMumbaiFractionalCX
ConfigurableFakeBackend
FakeGeneric
Fake Backend Base Classes
=========================
Expand Down Expand Up @@ -262,8 +263,9 @@
from .fake_1q import Fake1Q
from .fake_backend_v2 import FakeBackendV2, FakeBackend5QV2
from .fake_mumbai_v2 import FakeMumbaiFractionalCX
from .fake_backends_v1 import *
from .fake_generic import FakeGeneric

# Configurable fake backend
from .utils.configurable_backend import ConfigurableFakeBackend
from .fake_backends_v1 import *
from .fake_generic import FakeGeneric

8 changes: 6 additions & 2 deletions test/python/transpiler/test_pulse_gate_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ def test_transpile_with_custom_basis_gate(self):
def test_transpile_with_custom_basis_gate_in_target(self):
"""Test transpile with custom calibrations."""
target = GenericTarget(
num_qubits=65, basis_gates=["cx", "id", "rz", "sx", "x"], coupling_map=CouplingMap(Fake65QV1Pulse().configuration().coupling_map)
num_qubits=65,
basis_gates=["cx", "id", "rz", "sx", "x"],
coupling_map=CouplingMap(Fake65QV1Pulse().configuration().coupling_map),
)
target.add_calibrations_from_instruction_schedule_map(
Fake65QV1Pulse().defaults().instruction_schedule_map
Expand Down Expand Up @@ -292,7 +294,9 @@ def test_transpile_with_both_instmap_and_empty_target(self, opt_level):

# This doesn't have custom schedule definition
target = GenericTarget(
num_qubits=65, basis_gates=["cx", "id", "rz", "sx", "x"], coupling_map=CouplingMap(Fake65QV1Pulse().configuration().coupling_map)
num_qubits=65,
basis_gates=["cx", "id", "rz", "sx", "x"],
coupling_map=CouplingMap(Fake65QV1Pulse().configuration().coupling_map),
)
target.add_calibrations_from_instruction_schedule_map(
Fake65QV1Pulse().defaults().instruction_schedule_map
Expand Down
1 change: 1 addition & 0 deletions test/python/transpiler/test_sabre_swap.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

MUMBAI_CMAP = CouplingMap(Fake27QV1Pulse().configuration().coupling_map)


def looping_circuit(uphill_swaps=1, additional_local_minimum_gates=0):
"""A circuit that causes SabreSwap to loop infinitely.
Expand Down
1 change: 1 addition & 0 deletions test/python/transpiler/test_stochastic_swap.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

MUMBAI_CMAP = CouplingMap(Fake27QV1Pulse().configuration().coupling_map)


@ddt
class TestStochasticSwap(QiskitTestCase):
"""
Expand Down

0 comments on commit 30157f9

Please sign in to comment.