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

[QI2-1277] Centralize API helper code #89

Merged
merged 7 commits into from
Dec 30, 2024
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
10 changes: 6 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "qiskit-quantuminspire"
version = "0.1.0"
version = "0.3.0"
description = "Qiskit provider for Quantum Inspire backends "
authors = ["Quantum Inspire <support@quantum-inspire.com>"]
readme = "README.md"
Expand All @@ -19,7 +19,7 @@ classifiers = [
[tool.poetry.dependencies]
python = "^3.9"
qiskit = "^1.2.0"
qi-compute-api-client = "^0.39.0"
qi-compute-api-client = "^0.43.0"
pydantic = "^2.10.4"
requests = "^2.32.3"
opensquirrel = "^0.1.0"
Expand Down
Empty file.
66 changes: 0 additions & 66 deletions qiskit_quantuminspire/api/authentication.py

This file was deleted.

52 changes: 0 additions & 52 deletions qiskit_quantuminspire/api/client.py

This file was deleted.

44 changes: 0 additions & 44 deletions qiskit_quantuminspire/api/pagination.py

This file was deleted.

68 changes: 0 additions & 68 deletions qiskit_quantuminspire/api/settings.py

This file was deleted.

2 changes: 1 addition & 1 deletion qiskit_quantuminspire/qi_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from typing import Any, List, Union

from compute_api_client import ApiClient, BackendStatus, BackendType, BackendTypesApi
from qi2_shared.client import config
from qiskit.circuit import Instruction, Measure, QuantumCircuit
from qiskit.circuit.library import (
CCXGate,
Expand All @@ -21,7 +22,6 @@
from qiskit.providers.options import Options
from qiskit.transpiler import CouplingMap, Target

from qiskit_quantuminspire.api.client import config
from qiskit_quantuminspire.qi_jobs import QIJob
from qiskit_quantuminspire.utils import is_coupling_map_complete, run_async

Expand Down
6 changes: 3 additions & 3 deletions qiskit_quantuminspire/qi_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
ResultsApi,
ShareType,
)
from qi2_shared.client import config
from qi2_shared.pagination import PageReader
from qi2_shared.settings import ApiSettings
from qiskit import qpy
from qiskit.circuit import QuantumCircuit
from qiskit.providers import JobV1
Expand All @@ -45,9 +48,6 @@
from qiskit.result.result import Result

from qiskit_quantuminspire import cqasm
from qiskit_quantuminspire.api.client import config
from qiskit_quantuminspire.api.pagination import PageReader
from qiskit_quantuminspire.api.settings import ApiSettings
from qiskit_quantuminspire.base_provider import BaseProvider
from qiskit_quantuminspire.utils import run_async

Expand Down
4 changes: 2 additions & 2 deletions qiskit_quantuminspire/qi_provider.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import Any, List, Optional, Sequence

from compute_api_client import ApiClient, BackendType, BackendTypesApi, PageBackendType
from qi2_shared.client import config
from qi2_shared.pagination import PageReader

from qiskit_quantuminspire.api.client import config
from qiskit_quantuminspire.api.pagination import PageReader
from qiskit_quantuminspire.base_provider import BaseProvider
from qiskit_quantuminspire.qi_backend import QIBackend
from qiskit_quantuminspire.utils import run_async
Expand Down
26 changes: 0 additions & 26 deletions tests/api/conftest.py

This file was deleted.

Loading
Loading