Skip to content

Commit

Permalink
using latest qiskit-ibm-provider
Browse files Browse the repository at this point in the history
  • Loading branch information
david-alber committed Feb 19, 2024
1 parent d0b144e commit 3bc7122
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/kubernetes-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ jobs:
matplotlib==3.7.1 \
pyscf==2.2.1 \
scipy==1.10 \
qiskit-aer>=0.13.1 \
qiskit-ibm-provider==0.9.0 \
qiskit-aer==0.13.1 \
certifi==2023.7.22
pip install nbmake pytest
- name: Run notebooks
Expand Down
6 changes: 3 additions & 3 deletions client/quantum_serverless/core/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import requests
from ray.dashboard.modules.job.sdk import JobSubmissionClient
from opentelemetry import trace
from qiskit_ibm_runtime import QiskitRuntimeService
from qiskit_ibm_provider import IBMProvider

from quantum_serverless.core.constants import (
REQUESTS_TIMEOUT,
Expand Down Expand Up @@ -534,7 +534,7 @@ def __init__(self, token: Optional[str] = None, name: Optional[str] = None):
token: IBM quantum token
name: Name of the account to load
"""
token = token or QiskitRuntimeService(name=name).active_account().get("token")
token = token or IBMProvider(name=name).active_account().get("token")
super().__init__(token=token, host=IBM_SERVERLESS_HOST_URL)

@staticmethod
Expand All @@ -551,7 +551,7 @@ def save_account(
name: Name of the account to save
overwrite: ``True`` if the existing account is to be overwritten
"""
QiskitRuntimeService.save_account(token=token, name=name, overwrite=overwrite)
IBMProvider.save_account(token=token, name=name, overwrite=overwrite)

def get_compute_resources(self) -> List[ComputeResource]:
raise NotImplementedError("GatewayProvider does not support resources api yet.")
Expand Down
1 change: 1 addition & 0 deletions client/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ requests>=2.31.0
importlib-metadata>=5.2.0
qiskit>=0.45.2
qiskit-ibm-runtime>=0.18.0
qiskit-ibm-provider>=0.9.0
# TODO: make sure ray node and notebook node have the same version of cloudpickle
cloudpickle==2.2.1
tqdm>=4.65.0
Expand Down

0 comments on commit 3bc7122

Please sign in to comment.