luna-quantum 1.0.4rc3__cp312-cp312-musllinux_1_2_x86_64.whl → 1.0.4rc4__cp312-cp312-musllinux_1_2_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.

@@ -1,4 +1,5 @@
1
1
  from datetime import datetime
2
+ from typing import Any
2
3
 
3
4
  from pydantic import BaseModel
4
5
 
@@ -45,3 +46,5 @@ class SolveJobSchema(BaseModel):
45
46
 
46
47
  is_cancelable: bool
47
48
  is_cancellation_requested: bool
49
+
50
+ metadata: dict[str, Any] | None = None
@@ -1,7 +1,9 @@
1
1
  """Decorators."""
2
2
 
3
3
  from collections.abc import Callable
4
- from typing import Any, Generic, TypeVar, override
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
- type AnalysisSignature[T] = Callable[[Model, AnalysisCache], T]
21
-
22
- type MetaAnalysisSignature[T] = Callable[[list[BasePass], AnalysisCache], T]
23
+ MetaAnalysisSignature: TypeAlias = Callable[[list[BasePass], AnalysisCache], T]
23
24
 
24
- type Outcome = (
25
+ Outcome: TypeAlias = (
25
26
  TransformationOutcome | tuple[Model, ActionType] | tuple[Model, ActionType, Any]
26
27
  )
27
- type TransformationSignature = Callable[
28
+ TransformationSignature: TypeAlias = Callable[
28
29
  [Model, AnalysisCache],
29
30
  Outcome,
30
31
  ]
31
- type BackwardsSignature = Callable[[Solution, AnalysisCache], Solution]
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: luna-quantum
3
- Version: 1.0.4rc3
3
+ Version: 1.0.4rc4
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: License :: OSI Approved :: Apache Software License
6
6
  Classifier: Operating System :: OS Independent
@@ -1,11 +1,11 @@
1
- luna_quantum-1.0.4rc3.dist-info/METADATA,sha256=0SVGFwI5zmYCuJShMOP6PA6cnWR6xJLRm4uBzGYHEy4,1585
2
- luna_quantum-1.0.4rc3.dist-info/WHEEL,sha256=Mj_w6H5CTq8bquhaiVILqP8ASIMNvFlc7Hm-hyTnGRE,107
3
- luna_quantum-1.0.4rc3.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
4
- luna_quantum-1.0.4rc3.dist-info/licenses/NOTICE,sha256=noPOS8eDj5XoyRO8ZrCxIOh5fSjk0RildIrrqxQlepY,588
1
+ luna_quantum-1.0.4rc4.dist-info/METADATA,sha256=qMWjD8dN2kyDUrpTou7oiHl9ddVZ6ITs_6I3aY7f63c,1585
2
+ luna_quantum-1.0.4rc4.dist-info/WHEEL,sha256=Mj_w6H5CTq8bquhaiVILqP8ASIMNvFlc7Hm-hyTnGRE,107
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.libs/libgcc_s-02f3f192.so.1,sha256=gjFsHm1qybp9dieBvfXS4hYl26XxiP3ydWHYntFhKVk,189441
6
6
  luna_quantum/__init__.py,sha256=RV92O-Th8ktm0S9kcpfRfECkeeORP-tbDKfpa4u1CiY,3223
7
7
  luna_quantum/__init__.pyi,sha256=1Joa1farT1Ey22yWYPMNPgQrGHIKL8bycrdPUgtQqw8,1661
8
- luna_quantum/_core.cpython-312-x86_64-linux-musl.so,sha256=Rj6ZfhFK8Ea2x59acHCH2xxzrEhZQfUuF_73g9HiZeY,6172521
8
+ luna_quantum/_core.cpython-312-x86_64-linux-musl.so,sha256=WII-8FGghuNhSu8GTbeWjqY7XxB_h2NfLIrIsILer88,6152041
9
9
  luna_quantum/_core.pyi,sha256=JnKcoRh_ZUjeWZRZl_K9usnPYHSaIzbYPuXnevjtoYY,113649
10
10
  luna_quantum/algorithms/__init__.py,sha256=IX9ZpzY3Do3mTgKqto5vAWwdYrZrM-RemYSf64yxefg,69
11
11
  luna_quantum/aqm_overwrites/__init__.py,sha256=rteObr5JHDnTnRime0Euq9Qy2iDIp6VMpFNHTGVNBe0,46
@@ -74,7 +74,7 @@ luna_quantum/client/schemas/qpu_token/qpu_token_time_quota.py,sha256=7w25iX9vEeN
74
74
  luna_quantum/client/schemas/qpu_token/token_provider.py,sha256=GkyMJVV9lC50fWYe3if53KU9VqYK1HPxOozJEEX678k,4595
75
75
  luna_quantum/client/schemas/representation.py,sha256=0RKVV0XxHOJZ1o9grxTq5ri3cGLziyCFObDwQuXIOEY,364
76
76
  luna_quantum/client/schemas/solution.py,sha256=SbbnEjmHRx0ofbSHdbVU_FqAtd0ZrsAwea8Jg9JQw9g,2445
77
- luna_quantum/client/schemas/solve_job.py,sha256=vtBGFJVX_ObTzt-XYx84fegqVD99A5VW33VWIMwRXzA,1410
77
+ luna_quantum/client/schemas/solve_job.py,sha256=KWM8q92w3HxlEeFRteMdVkPkYZwAG_ZRLoocOeHQ5LY,1477
78
78
  luna_quantum/client/schemas/solver_info.py,sha256=oXRu_HMOqJeTJsSkqt1VShWCF4eKFpfbmxIqH_R_Rf8,223
79
79
  luna_quantum/client/schemas/user.py,sha256=EqZDf3QWuRVx0zVhbS0-0R9pQbtqRuGDlveET-x3Qqo,223
80
80
  luna_quantum/client/schemas/wrappers/__init__.py,sha256=tfd-JKBLr-0FwVEGKJFfvY1y0wQYyFZl6pjZi6H5FI8,138
@@ -82,7 +82,7 @@ luna_quantum/client/schemas/wrappers/datetime_wrapper.py,sha256=8K2jexTarxGCgD1u
82
82
  luna_quantum/client/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
83
83
  luna_quantum/client/utils/qpu_token_utils.py,sha256=xeWIKcBwXGSQ0INfUY3NMTu6H90T03jkT85yHs2QXmk,4768
84
84
  luna_quantum/config.py,sha256=xx7DnjAvOeLUMlXvbXqQ4_EBAy53bjPYU1-QQO6I2lY,217
85
- luna_quantum/decorators.py,sha256=g4qVoWW_xkHM7QchbDDwPKmZkATKRA_7iJNzps8W1Eo,6837
85
+ luna_quantum/decorators.py,sha256=x0ARypqawJh8VyrgYufaV8DX2vx843kB16_1bUXOqr0,6901
86
86
  luna_quantum/errors.py,sha256=yjeXB3i07LlTuuJ18IKgwsC5wmtJElN8cDwlg3JkcEs,1424
87
87
  luna_quantum/errors.pyi,sha256=Hev30Htt63MgcESZaVOj645PsINfTYS-XGU8gklYqFM,9297
88
88
  luna_quantum/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -99,7 +99,7 @@ luna_quantum/solve/domain/abstract/__init__.py,sha256=My23tGRFFJYVe6vwgUM4RAFr26
99
99
  luna_quantum/solve/domain/abstract/luna_algorithm.py,sha256=E0_GAay9cTfsjB_T-tS5PNlh5GkxH9av6uuAZXtUdec,7025
100
100
  luna_quantum/solve/domain/abstract/qpu_token_backend.py,sha256=2vLMzDrrJsi2ejVMdNOEuhf9x1e7zGijkIn2GCH--j8,1229
101
101
  luna_quantum/solve/domain/model_metadata.py,sha256=eGwoRxtUBhZLdEJTf8LJdeoundKSllVX2djt4fer6So,1644
102
- luna_quantum/solve/domain/solve_job.py,sha256=BhF5NXFd7eaCvl_mDPI0toRPcZ33ZoeioNNnWeeuNxk,6559
102
+ luna_quantum/solve/domain/solve_job.py,sha256=Svi1PJrqvc3JS1jP7Jj0fu7KXH-VtQ_Swj5q8LYHQqY,6607
103
103
  luna_quantum/solve/errors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
104
104
  luna_quantum/solve/errors/incompatible_backend_error.py,sha256=PVhyMTIUShy1IJqc_FiYxxY5SzLs791Wfey-JHu6xoA,604
105
105
  luna_quantum/solve/errors/model_metadata_missing_error.py,sha256=TBTokypD8drCFPFeMWsUn7mt7aCmKMqKweyzshqf3Bg,363
@@ -258,4 +258,4 @@ luna_quantum/util/pretty_base.py,sha256=Vv3dYpMsydOPYFOm-0lCCuJIe-62oYkI64Zy_bah
258
258
  luna_quantum/util/pydantic_utils.py,sha256=nhl_SdLJVAizrtLVHvnbco84g8CdBVdVxN_jlXiv82w,1263
259
259
  luna_quantum/utils.py,sha256=pBOkGXNJXlOzxAwTJv8nCj32Q6WNeh3t6Ka3lmTgy9c,134
260
260
  luna_quantum/utils.pyi,sha256=yHHPluEJArUltZ2jJ9bPtTugj59E9TOTmYdyH35EHtU,1934
261
- luna_quantum-1.0.4rc3.dist-info/RECORD,,
261
+ luna_quantum-1.0.4rc4.dist-info/RECORD,,