Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Fix CI for latest Qiskit #366

Merged
merged 2 commits into from
Jul 6, 2022
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
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = 'en'

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down
2 changes: 1 addition & 1 deletion qiskit_ibm_provider/jupyter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

from IPython import get_ipython # pylint: disable=import-error
from .dashboard.dashboard import IBMDashboardMagic
from qiskit.test.mock import FakeBackendV2 as FakeBackend
from qiskit.providers.fake_provider.fake_backend import FakeBackendV2 as FakeBackend
from ..ibm_backend import IBMBackend
from .backend_info import backend_widget

Expand Down
2 changes: 1 addition & 1 deletion qiskit_ibm_provider/jupyter/backend_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import ipyvuetify as vue
from IPython.display import display # pylint: disable=import-error
from qiskit.test.mock import FakeBackendV2 as FakeBackend
from qiskit.providers.fake_provider.fake_backend import FakeBackendV2 as FakeBackend

from qiskit_ibm_provider.ibm_backend import IBMBackend
from .config_widget import config_tab
Expand Down
2 changes: 1 addition & 1 deletion qiskit_ibm_provider/jupyter/config_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from typing import Union

import ipywidgets as wid
from qiskit.test.mock import FakeBackendV2 as FakeBackend
from qiskit.providers.fake_provider.fake_backend import FakeBackendV2 as FakeBackend

from qiskit_ibm_provider.ibm_backend import IBMBackend
from qiskit_ibm_provider.utils.converters import duration_difference
Expand Down
2 changes: 1 addition & 1 deletion qiskit_ibm_provider/jupyter/gates_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from typing import Union

import ipywidgets as wid
from qiskit.test.mock import FakeBackendV2 as FakeBackend
from qiskit.providers.fake_provider.fake_backend import FakeBackendV2 as FakeBackend

from qiskit_ibm_provider.ibm_backend import IBMBackend

Expand Down
2 changes: 1 addition & 1 deletion qiskit_ibm_provider/jupyter/jobs_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import ipywidgets as wid
import plotly.graph_objects as go
from qiskit.test.mock import FakeBackendV2 as FakeBackend
from qiskit.providers.fake_provider.fake_backend import FakeBackendV2 as FakeBackend

from ..ibm_backend import IBMBackend
from ..visualization.interactive.plotly_wrapper import PlotlyWidget
Expand Down
3 changes: 2 additions & 1 deletion qiskit_ibm_provider/jupyter/live_data_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@
import logging
import pytz
from websocket import WebSocketApp

import ipywidgets as widgets
import numpy as np
from sklearn.decomposition import PCA
from qiskit.providers.jobstatus import JobStatus
from qiskit.test.mock import FakeBackendV2 as FakeBackend
from qiskit.providers.fake_provider.fake_backend import FakeBackendV2 as FakeBackend

# PLOTS
ENABLE_LEVEL_0 = False
Expand Down
2 changes: 1 addition & 1 deletion qiskit_ibm_provider/jupyter/qubits_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from typing import Union

import ipywidgets as wid
from qiskit.test.mock import FakeBackendV2 as FakeBackend
from qiskit.providers.fake_provider.fake_backend import FakeBackendV2 as FakeBackend

from qiskit_ibm_provider.ibm_backend import IBMBackend

Expand Down
2 changes: 1 addition & 1 deletion qiskit_ibm_provider/jupyter/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from datetime import datetime, timedelta
from typing import Optional, Union

from qiskit.test.mock import FakeBackendV2 as FakeBackend
from qiskit.providers.fake_provider.fake_backend import FakeBackendV2 as FakeBackend

from qiskit_ibm_provider.backendreservation import BackendReservation
from qiskit_ibm_provider.ibm_backend import IBMBackend
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ reno>=2.11.0
scipy>=1.0
nbformat>=4.4.0
nbconvert>=5.3.1
qiskit-aer
qiskit-aer>=0.10.3
websockets>=8
black==22.3.0
coverage>=6.3
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ numpy>=1.13
urllib3>=1.21.1
python-dateutil>=2.8.0
websocket-client>=1.0.1
websockets>=10.0
websockets>=10.0
4 changes: 3 additions & 1 deletion test/fake_account_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
from random import randrange
from typing import Dict, Any

from qiskit.test.mock.backends.poughkeepsie.fake_poughkeepsie import FakePoughkeepsie
from qiskit.providers.fake_provider.backends.poughkeepsie.fake_poughkeepsie import (
FakePoughkeepsie,
)

from qiskit_ibm_provider.api.exceptions import (
RequestsApiError,
Expand Down
4 changes: 3 additions & 1 deletion test/integration/test_ibm_qasm_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@

from qiskit import ClassicalRegister, QuantumCircuit, QuantumRegister
from qiskit.compiler import transpile
from qiskit.providers.aer.noise import NoiseModel
from qiskit.providers.aer.noise import (
NoiseModel,
) # pylint: disable=import-error,no-name-in-module
from qiskit.test.reference_circuits import ReferenceCircuits

from qiskit_ibm_provider import IBMBackend
Expand Down
2 changes: 1 addition & 1 deletion test/unit/mock/fake_account_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from datetime import datetime as python_datetime
from typing import List, Dict, Any, Optional

from qiskit.test.mock.backends import FakeLima
from qiskit.providers.fake_provider.backends.lima.fake_lima import FakeLima


class FakeApiBackend:
Expand Down
3 changes: 2 additions & 1 deletion test/unit/test_ibm_job_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
from qiskit import transpile
from qiskit.providers import JobTimeoutError
from qiskit.providers.jobstatus import JobStatus
from qiskit.test.mock.backends.bogota.fake_bogota import FakeBogota
from qiskit.providers.fake_provider.backends.bogota.fake_bogota import FakeBogota

from qiskit.test.reference_circuits import ReferenceCircuits

from qiskit_ibm_provider.api.exceptions import (
Expand Down