luna-quantum 1.0.4rc3__cp313-cp313-manylinux_2_34_x86_64.whl → 1.0.4rc4__cp313-cp313-manylinux_2_34_x86_64.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 luna-quantum might be problematic. Click here for more details.
- luna_quantum/_core.cpython-313-x86_64-linux-gnu.so +0 -0
- luna_quantum/client/schemas/solve_job.py +3 -0
- luna_quantum/decorators.py +8 -7
- luna_quantum/solve/domain/solve_job.py +2 -1
- {luna_quantum-1.0.4rc3.dist-info → luna_quantum-1.0.4rc4.dist-info}/METADATA +1 -1
- {luna_quantum-1.0.4rc3.dist-info → luna_quantum-1.0.4rc4.dist-info}/RECORD +9 -9
- {luna_quantum-1.0.4rc3.dist-info → luna_quantum-1.0.4rc4.dist-info}/WHEEL +0 -0
- {luna_quantum-1.0.4rc3.dist-info → luna_quantum-1.0.4rc4.dist-info}/licenses/LICENSE +0 -0
- {luna_quantum-1.0.4rc3.dist-info → luna_quantum-1.0.4rc4.dist-info}/licenses/NOTICE +0 -0
|
Binary file
|
luna_quantum/decorators.py
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"""Decorators."""
|
|
2
2
|
|
|
3
3
|
from collections.abc import Callable
|
|
4
|
-
from typing import Any, Generic,
|
|
4
|
+
from typing import Any, Generic, TypeAlias, TypeVar
|
|
5
|
+
|
|
6
|
+
from typing_extensions import override
|
|
5
7
|
|
|
6
8
|
from . import Model, Solution
|
|
7
9
|
from .transformations import (
|
|
@@ -16,19 +18,18 @@ from .transformations import (
|
|
|
16
18
|
|
|
17
19
|
T = TypeVar("T")
|
|
18
20
|
|
|
21
|
+
AnalysisSignature: TypeAlias = Callable[[Model, AnalysisCache], T]
|
|
19
22
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
type MetaAnalysisSignature[T] = Callable[[list[BasePass], AnalysisCache], T]
|
|
23
|
+
MetaAnalysisSignature: TypeAlias = Callable[[list[BasePass], AnalysisCache], T]
|
|
23
24
|
|
|
24
|
-
|
|
25
|
+
Outcome: TypeAlias = (
|
|
25
26
|
TransformationOutcome | tuple[Model, ActionType] | tuple[Model, ActionType, Any]
|
|
26
27
|
)
|
|
27
|
-
|
|
28
|
+
TransformationSignature: TypeAlias = Callable[
|
|
28
29
|
[Model, AnalysisCache],
|
|
29
30
|
Outcome,
|
|
30
31
|
]
|
|
31
|
-
|
|
32
|
+
BackwardsSignature: TypeAlias = Callable[[Solution, AnalysisCache], Solution]
|
|
32
33
|
|
|
33
34
|
|
|
34
35
|
def __identity_backwards(solution: Solution, _: AnalysisCache) -> Solution:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from logging import Logger
|
|
2
|
-
from typing import ClassVar, Literal
|
|
2
|
+
from typing import Any, ClassVar, Literal
|
|
3
3
|
|
|
4
4
|
from pydantic import BaseModel, PrivateAttr
|
|
5
5
|
|
|
@@ -28,6 +28,7 @@ class SolveJob(BaseModel):
|
|
|
28
28
|
is_cancelable: bool = True
|
|
29
29
|
is_cancellation_requested: bool = False
|
|
30
30
|
|
|
31
|
+
metadata: dict[str, Any] | None = None
|
|
31
32
|
_result: Solution | None = PrivateAttr(default=None)
|
|
32
33
|
|
|
33
34
|
_model: Model | None = PrivateAttr(default=None)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
luna_quantum-1.0.
|
|
2
|
-
luna_quantum-1.0.
|
|
3
|
-
luna_quantum-1.0.
|
|
4
|
-
luna_quantum-1.0.
|
|
1
|
+
luna_quantum-1.0.4rc4.dist-info/METADATA,sha256=qMWjD8dN2kyDUrpTou7oiHl9ddVZ6ITs_6I3aY7f63c,1585
|
|
2
|
+
luna_quantum-1.0.4rc4.dist-info/WHEEL,sha256=ZET2S-TR0wahsrBIWv8ILttEqf0jpgj4FEJEEVG_vb0,108
|
|
3
|
+
luna_quantum-1.0.4rc4.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
|
4
|
+
luna_quantum-1.0.4rc4.dist-info/licenses/NOTICE,sha256=noPOS8eDj5XoyRO8ZrCxIOh5fSjk0RildIrrqxQlepY,588
|
|
5
5
|
luna_quantum/__init__.py,sha256=RV92O-Th8ktm0S9kcpfRfECkeeORP-tbDKfpa4u1CiY,3223
|
|
6
6
|
luna_quantum/__init__.pyi,sha256=1Joa1farT1Ey22yWYPMNPgQrGHIKL8bycrdPUgtQqw8,1661
|
|
7
|
-
luna_quantum/_core.cpython-313-x86_64-linux-gnu.so,sha256=
|
|
7
|
+
luna_quantum/_core.cpython-313-x86_64-linux-gnu.so,sha256=zKOFx-q-ZAbE5LUpwVyvKPkoxsolmdRbuyXZhrsItuo,6133216
|
|
8
8
|
luna_quantum/_core.pyi,sha256=JnKcoRh_ZUjeWZRZl_K9usnPYHSaIzbYPuXnevjtoYY,113649
|
|
9
9
|
luna_quantum/algorithms/__init__.py,sha256=IX9ZpzY3Do3mTgKqto5vAWwdYrZrM-RemYSf64yxefg,69
|
|
10
10
|
luna_quantum/aqm_overwrites/__init__.py,sha256=rteObr5JHDnTnRime0Euq9Qy2iDIp6VMpFNHTGVNBe0,46
|
|
@@ -73,7 +73,7 @@ luna_quantum/client/schemas/qpu_token/qpu_token_time_quota.py,sha256=7w25iX9vEeN
|
|
|
73
73
|
luna_quantum/client/schemas/qpu_token/token_provider.py,sha256=GkyMJVV9lC50fWYe3if53KU9VqYK1HPxOozJEEX678k,4595
|
|
74
74
|
luna_quantum/client/schemas/representation.py,sha256=0RKVV0XxHOJZ1o9grxTq5ri3cGLziyCFObDwQuXIOEY,364
|
|
75
75
|
luna_quantum/client/schemas/solution.py,sha256=SbbnEjmHRx0ofbSHdbVU_FqAtd0ZrsAwea8Jg9JQw9g,2445
|
|
76
|
-
luna_quantum/client/schemas/solve_job.py,sha256=
|
|
76
|
+
luna_quantum/client/schemas/solve_job.py,sha256=KWM8q92w3HxlEeFRteMdVkPkYZwAG_ZRLoocOeHQ5LY,1477
|
|
77
77
|
luna_quantum/client/schemas/solver_info.py,sha256=oXRu_HMOqJeTJsSkqt1VShWCF4eKFpfbmxIqH_R_Rf8,223
|
|
78
78
|
luna_quantum/client/schemas/user.py,sha256=EqZDf3QWuRVx0zVhbS0-0R9pQbtqRuGDlveET-x3Qqo,223
|
|
79
79
|
luna_quantum/client/schemas/wrappers/__init__.py,sha256=tfd-JKBLr-0FwVEGKJFfvY1y0wQYyFZl6pjZi6H5FI8,138
|
|
@@ -81,7 +81,7 @@ luna_quantum/client/schemas/wrappers/datetime_wrapper.py,sha256=8K2jexTarxGCgD1u
|
|
|
81
81
|
luna_quantum/client/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
82
82
|
luna_quantum/client/utils/qpu_token_utils.py,sha256=xeWIKcBwXGSQ0INfUY3NMTu6H90T03jkT85yHs2QXmk,4768
|
|
83
83
|
luna_quantum/config.py,sha256=xx7DnjAvOeLUMlXvbXqQ4_EBAy53bjPYU1-QQO6I2lY,217
|
|
84
|
-
luna_quantum/decorators.py,sha256=
|
|
84
|
+
luna_quantum/decorators.py,sha256=x0ARypqawJh8VyrgYufaV8DX2vx843kB16_1bUXOqr0,6901
|
|
85
85
|
luna_quantum/errors.py,sha256=yjeXB3i07LlTuuJ18IKgwsC5wmtJElN8cDwlg3JkcEs,1424
|
|
86
86
|
luna_quantum/errors.pyi,sha256=Hev30Htt63MgcESZaVOj645PsINfTYS-XGU8gklYqFM,9297
|
|
87
87
|
luna_quantum/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -98,7 +98,7 @@ luna_quantum/solve/domain/abstract/__init__.py,sha256=My23tGRFFJYVe6vwgUM4RAFr26
|
|
|
98
98
|
luna_quantum/solve/domain/abstract/luna_algorithm.py,sha256=E0_GAay9cTfsjB_T-tS5PNlh5GkxH9av6uuAZXtUdec,7025
|
|
99
99
|
luna_quantum/solve/domain/abstract/qpu_token_backend.py,sha256=2vLMzDrrJsi2ejVMdNOEuhf9x1e7zGijkIn2GCH--j8,1229
|
|
100
100
|
luna_quantum/solve/domain/model_metadata.py,sha256=eGwoRxtUBhZLdEJTf8LJdeoundKSllVX2djt4fer6So,1644
|
|
101
|
-
luna_quantum/solve/domain/solve_job.py,sha256=
|
|
101
|
+
luna_quantum/solve/domain/solve_job.py,sha256=Svi1PJrqvc3JS1jP7Jj0fu7KXH-VtQ_Swj5q8LYHQqY,6607
|
|
102
102
|
luna_quantum/solve/errors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
103
103
|
luna_quantum/solve/errors/incompatible_backend_error.py,sha256=PVhyMTIUShy1IJqc_FiYxxY5SzLs791Wfey-JHu6xoA,604
|
|
104
104
|
luna_quantum/solve/errors/model_metadata_missing_error.py,sha256=TBTokypD8drCFPFeMWsUn7mt7aCmKMqKweyzshqf3Bg,363
|
|
@@ -257,4 +257,4 @@ luna_quantum/util/pretty_base.py,sha256=Vv3dYpMsydOPYFOm-0lCCuJIe-62oYkI64Zy_bah
|
|
|
257
257
|
luna_quantum/util/pydantic_utils.py,sha256=nhl_SdLJVAizrtLVHvnbco84g8CdBVdVxN_jlXiv82w,1263
|
|
258
258
|
luna_quantum/utils.py,sha256=pBOkGXNJXlOzxAwTJv8nCj32Q6WNeh3t6Ka3lmTgy9c,134
|
|
259
259
|
luna_quantum/utils.pyi,sha256=yHHPluEJArUltZ2jJ9bPtTugj59E9TOTmYdyH35EHtU,1934
|
|
260
|
-
luna_quantum-1.0.
|
|
260
|
+
luna_quantum-1.0.4rc4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|