Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate fake provider base classes from Qiskit #1270

Merged
merged 2 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_qasm_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_qasm_backend, fake_backend


class FakeAlmadenV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeArmonkV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeAthensV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_backend
from qiskit_ibm_runtime.fake_provider import fake_backend


class FakeAuckland(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeBelemV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeBoeblingenV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeBogotaV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeBrooklynV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_qasm_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_qasm_backend, fake_backend


class FakeBurlingtonV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeCairoV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_qasm_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_qasm_backend, fake_backend


class FakeCambridgeV2(fake_backend.FakeBackendV2):
Expand Down Expand Up @@ -68,5 +68,5 @@ class FakeCambridgeAlternativeBasis(FakeCambridge):
props_filename = "props_cambridge_alt.json" # type: ignore

def __init__(self) -> None:
super().__init__()
super().__init__() # type: ignore
self._configuration.basis_gates = ["u", "sx", "p", "cx", "id"]
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeCasablancaV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_qasm_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_qasm_backend, fake_backend


class FakeEssexV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_backend
from qiskit_ibm_runtime.fake_provider import fake_backend


class FakeGeneva(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import os

from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeGuadalupeV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeHanoiV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeJakartaV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_qasm_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_qasm_backend, fake_backend


class FakeJohannesburgV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeKolkataV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeLagosV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeLimaV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_qasm_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_qasm_backend, fake_backend


class FakeLondonV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeManhattanV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeManilaV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
BackendProperties,
)
from qiskit.providers.fake_provider.fake_backend import FakeBackend
from qiskit.providers.fake_provider import fake_backend
from qiskit_ibm_runtime.fake_provider import fake_backend


class FakeMelbourneV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeMontrealV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeMumbaiV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeNairobiV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_backend
from qiskit_ibm_runtime.fake_provider import fake_backend


class FakeOslo(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_qasm_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_qasm_backend, fake_backend


class FakeOurenseV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeParisV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_backend
from qiskit_ibm_runtime.fake_provider import fake_backend


class FakePerth(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
BackendProperties,
)
from qiskit.providers.fake_provider.fake_backend import FakeBackend
from qiskit.providers.fake_provider import fake_backend
from qiskit_ibm_runtime.fake_provider import fake_backend


class FakePoughkeepsieV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_backend
from qiskit_ibm_runtime.fake_provider import fake_backend


class FakePrague(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeQuitoV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_qasm_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_qasm_backend, fake_backend


class FakeRochesterV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeRomeV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeSantiagoV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_backend
from qiskit_ibm_runtime.fake_provider import fake_backend


class FakeSherbrooke(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_qasm_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_qasm_backend, fake_backend


class FakeSingaporeV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeSydneyV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeTorontoV2(fake_backend.FakeBackendV2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
from qiskit_ibm_runtime.fake_provider import fake_pulse_backend, fake_backend


class FakeValenciaV2(fake_backend.FakeBackendV2):
Expand Down
Loading
Loading