qctrl-workflow-client 5.5.1__tar.gz → 5.7.0__tar.gz
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.
- {qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/PKG-INFO +3 -3
- {qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/pyproject.toml +3 -3
- {qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/qctrlworkflowclient/router/api.py +11 -2
- {qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/LICENSE +0 -0
- {qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/README.md +0 -0
- {qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/qctrlworkflowclient/__init__.py +0 -0
- {qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/qctrlworkflowclient/defaults.py +0 -0
- {qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/qctrlworkflowclient/functions.py +0 -0
- {qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/qctrlworkflowclient/products.py +0 -0
- {qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/qctrlworkflowclient/router/__init__.py +0 -0
- {qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/qctrlworkflowclient/router/base.py +0 -0
- {qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/qctrlworkflowclient/router/local.py +0 -0
- {qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/qctrlworkflowclient/settings.py +0 -0
- {qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/qctrlworkflowclient/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: qctrl-workflow-client
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.7.0
|
|
4
4
|
Summary: Q-CTRL Workflow Client
|
|
5
5
|
License: https://q-ctrl.com/terms
|
|
6
6
|
Keywords: black opal,boulder opal,fire opal,nisq,open controls,q control,q ctrl,q-control,q-ctrl,qcontrol,qctrl,quantum,quantum algorithms,quantum circuits,quantum coding,quantum coding software,quantum computing,quantum control,quantum control software,quantum control theory,quantum engineering,quantum error correction,quantum firmware,quantum fundamentals,quantum sensing,qubit,qudit
|
|
@@ -30,8 +30,8 @@ Classifier: Topic :: System :: Distributed Computing
|
|
|
30
30
|
Requires-Dist: gql (>=3.4.0,<4.0.0)
|
|
31
31
|
Requires-Dist: importlib-metadata (>=6.8.0,<7.0.0)
|
|
32
32
|
Requires-Dist: packaging (>=23.1.0,<24.0.0)
|
|
33
|
-
Requires-Dist: qctrl-client (>=
|
|
34
|
-
Requires-Dist: qctrl-commons (>=
|
|
33
|
+
Requires-Dist: qctrl-client (>=11.4.0,<12.0.0)
|
|
34
|
+
Requires-Dist: qctrl-commons (>=25.0.0,<26.0.0)
|
|
35
35
|
Requires-Dist: requests (>=2.32.0,<3.0.0)
|
|
36
36
|
Requires-Dist: tenacity (>=8.1.0,<9.0.0)
|
|
37
37
|
Requires-Dist: tomli (>=2.2.1,<3.0.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "qctrl-workflow-client"
|
|
3
|
-
version = "5.
|
|
3
|
+
version = "5.7.0"
|
|
4
4
|
description = "Q-CTRL Workflow Client"
|
|
5
5
|
license = "https://q-ctrl.com/terms"
|
|
6
6
|
authors = ["Q-CTRL <support@q-ctrl.com>"]
|
|
@@ -81,8 +81,8 @@ gql = "^3.4.0"
|
|
|
81
81
|
tenacity = "^8.1.0"
|
|
82
82
|
requests = "^2.32.0"
|
|
83
83
|
packaging = "^23.1.0"
|
|
84
|
-
qctrl-commons = { version = "^
|
|
85
|
-
qctrl-client = { version = "^
|
|
84
|
+
qctrl-commons = { version = "^25.0.0", source = "PyPI" }
|
|
85
|
+
qctrl-client = { version = "^11.4.0", source = "PyPI" }
|
|
86
86
|
|
|
87
87
|
[tool.poetry.group.dev.dependencies]
|
|
88
88
|
black = "^25.1.0"
|
{qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/qctrlworkflowclient/router/api.py
RENAMED
|
@@ -49,6 +49,10 @@ from .base import BaseRouter
|
|
|
49
49
|
# every 2s for the first 30s, then every 10s
|
|
50
50
|
_POLL_WAIT_CHAIN = wait_chain(*[wait_fixed(2) for _ in range(15)] + [wait_fixed(10)])
|
|
51
51
|
|
|
52
|
+
# Max payload size that can be sent to server is 50 MB.
|
|
53
|
+
# See https://architecture.q-ctrl.com/Documentation/Jobs/system-limits/ for reference.
|
|
54
|
+
_MAX_PAYLOAD_SIZE_MB = 50
|
|
55
|
+
|
|
52
56
|
|
|
53
57
|
class ActionStatus(Enum):
|
|
54
58
|
"""
|
|
@@ -384,11 +388,16 @@ class ApiRouter(BaseRouter):
|
|
|
384
388
|
# if registry is not provided, use the default registry
|
|
385
389
|
if registry is None:
|
|
386
390
|
registry = self._settings.product.value.registry
|
|
387
|
-
|
|
391
|
+
_data = json.dumps(data, cls=DataTypeEncoder)
|
|
392
|
+
payload_size = len(_data.encode("utf-8"))
|
|
393
|
+
if payload_size > _MAX_PAYLOAD_SIZE_MB * 1e6:
|
|
394
|
+
raise ValueError(
|
|
395
|
+
f"Payload size {payload_size}, exceeds max allowed {_MAX_PAYLOAD_SIZE_MB} MB."
|
|
396
|
+
)
|
|
388
397
|
input_ = {
|
|
389
398
|
"registry": registry,
|
|
390
399
|
"workflow": workflow,
|
|
391
|
-
"data":
|
|
400
|
+
"data": _data,
|
|
392
401
|
"clientMetadata": json.dumps(client_metadata),
|
|
393
402
|
}
|
|
394
403
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/qctrlworkflowclient/functions.py
RENAMED
|
File without changes
|
|
File without changes
|
{qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/qctrlworkflowclient/router/__init__.py
RENAMED
|
File without changes
|
{qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/qctrlworkflowclient/router/base.py
RENAMED
|
File without changes
|
{qctrl_workflow_client-5.5.1 → qctrl_workflow_client-5.7.0}/qctrlworkflowclient/router/local.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|