qi-compute-api-client 0.43.0__py3-none-any.whl → 0.44.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of qi-compute-api-client might be problematic. Click here for more details.
- qi2_shared/hybrid/__init__.py +0 -0
- qi2_shared/hybrid/quantum_interface.py +44 -0
- {qi_compute_api_client-0.43.0.dist-info → qi_compute_api_client-0.44.0.dist-info}/METADATA +3 -4
- {qi_compute_api_client-0.43.0.dist-info → qi_compute_api_client-0.44.0.dist-info}/RECORD +6 -4
- {qi_compute_api_client-0.43.0.dist-info → qi_compute_api_client-0.44.0.dist-info}/WHEEL +1 -1
- {qi_compute_api_client-0.43.0.dist-info → qi_compute_api_client-0.44.0.dist-info}/LICENSE.md +0 -0
|
File without changes
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""Quantum Inspire SDK.
|
|
2
|
+
|
|
3
|
+
Copyright 2022 QuTech Delft
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
|
|
6
|
+
License. You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
|
|
11
|
+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
|
12
|
+
language governing permissions and limitations under the License.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from abc import ABC, abstractmethod
|
|
16
|
+
from typing import Any, Dict, List
|
|
17
|
+
|
|
18
|
+
from compute_api_client.models.backend_type import BackendType
|
|
19
|
+
from pydantic import BaseModel
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ExecuteCircuitResult(BaseModel):
|
|
23
|
+
"""Result of executing a quantum circuit."""
|
|
24
|
+
|
|
25
|
+
results: Dict[str, float]
|
|
26
|
+
shots_requested: int
|
|
27
|
+
shots_done: int
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class QuantumInterface(ABC):
|
|
31
|
+
"""Interface for running quantum circuits from hybrid algorithms."""
|
|
32
|
+
|
|
33
|
+
# pylint: disable = R0903
|
|
34
|
+
# Too few public methods (1/2) (too-few-public-methods)
|
|
35
|
+
|
|
36
|
+
results: List[Dict[str, Any]]
|
|
37
|
+
backend_type: BackendType
|
|
38
|
+
|
|
39
|
+
@abstractmethod
|
|
40
|
+
def execute_circuit(
|
|
41
|
+
self, circuit: str, number_of_shots: int
|
|
42
|
+
) -> ExecuteCircuitResult:
|
|
43
|
+
"""Execute a quantum circuit."""
|
|
44
|
+
raise NotImplementedError
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: qi-compute-api-client
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.44.0
|
|
4
4
|
Summary: An API client for the Compute Job Manager of Quantum Inspire.
|
|
5
|
-
Home-page: https://github.com/QuTech-Delft/compute-api-client
|
|
6
5
|
License: Apache-2.0
|
|
7
6
|
Author: Quantum Inspire
|
|
8
7
|
Author-email: support@quantum-inspire.eu
|
|
@@ -19,7 +18,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
19
18
|
Requires-Dist: aiohttp (>=3.10.5,<4.0.0)
|
|
20
19
|
Requires-Dist: pydantic (>=2.10.4,<3.0.0)
|
|
21
20
|
Requires-Dist: python-dateutil (>=2.8.2,<3.0.0)
|
|
22
|
-
Requires-Dist: requests (>=2.
|
|
21
|
+
Requires-Dist: requests (>=2.31.0,<3.0.0)
|
|
23
22
|
Requires-Dist: urllib3 (>=2.0.0,<3.0.0)
|
|
24
23
|
Project-URL: Repository, https://github.com/QuTech-Delft/compute-api-client
|
|
25
24
|
Description-Content-Type: text/markdown
|
|
@@ -187,9 +187,11 @@ compute_api_client/rest.py,sha256=-N7fantOYHH5Ot97NOHm2ouAUuw4kdqbnOvCtf25H7g,58
|
|
|
187
187
|
qi2_shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
188
188
|
qi2_shared/authentication.py,sha256=zTnbB9SIGowSZgetlyXj8NNM3p2beQ3fQo4R0lTrjk8,2550
|
|
189
189
|
qi2_shared/client.py,sha256=vK_VC5V9p2cy02GeVXh0lKxqhMrM3lzUSRtts1CvF-A,1591
|
|
190
|
+
qi2_shared/hybrid/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
191
|
+
qi2_shared/hybrid/quantum_interface.py,sha256=wC6Y5D4Bu7vDmBPKVGQe_3qfkz4DlvOwi_31TnLA80w,1373
|
|
190
192
|
qi2_shared/pagination.py,sha256=sypb9tSsi_7A1D9WoaUEuo7Xyfci8gG2QCX8XSIb7rI,1844
|
|
191
193
|
qi2_shared/settings.py,sha256=x2wNv8nzftMFb-5K7wKvhfJVxQn0YYlZ_Guu6DHm_qU,2384
|
|
192
|
-
qi_compute_api_client-0.
|
|
193
|
-
qi_compute_api_client-0.
|
|
194
|
-
qi_compute_api_client-0.
|
|
195
|
-
qi_compute_api_client-0.
|
|
194
|
+
qi_compute_api_client-0.44.0.dist-info/LICENSE.md,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
195
|
+
qi_compute_api_client-0.44.0.dist-info/METADATA,sha256=QrYpYBFoho2cFrzKv2DA65MZxA8kmBKNvTUIe_BsJ88,20595
|
|
196
|
+
qi_compute_api_client-0.44.0.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
|
197
|
+
qi_compute_api_client-0.44.0.dist-info/RECORD,,
|
{qi_compute_api_client-0.43.0.dist-info → qi_compute_api_client-0.44.0.dist-info}/LICENSE.md
RENAMED
|
File without changes
|