luna-quantum 1.0.4rc3__cp313-cp313-win_amd64.whl → 1.0.4rc4__cp313-cp313-win_amd64.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.

Binary file
@@ -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,10 +1,10 @@
1
- luna_quantum-1.0.4rc3.dist-info/METADATA,sha256=0SVGFwI5zmYCuJShMOP6PA6cnWR6xJLRm4uBzGYHEy4,1585
2
- luna_quantum-1.0.4rc3.dist-info/WHEEL,sha256=DfU-bXnJK60cJceeC-xy2sa_ryw_ZpNrTnTQMSW4eNA,96
3
- luna_quantum-1.0.4rc3.dist-info/licenses/LICENSE,sha256=bR2Wj7Il7KNny38LiDGrASo12StUfpReF--OewXD5cw,10349
4
- luna_quantum-1.0.4rc3.dist-info/licenses/NOTICE,sha256=GHZYA5H4QFAhbhXliAi2SjWWXLjxl4hrHdEPyUbC0r0,601
1
+ luna_quantum-1.0.4rc4.dist-info/METADATA,sha256=qMWjD8dN2kyDUrpTou7oiHl9ddVZ6ITs_6I3aY7f63c,1585
2
+ luna_quantum-1.0.4rc4.dist-info/WHEEL,sha256=DfU-bXnJK60cJceeC-xy2sa_ryw_ZpNrTnTQMSW4eNA,96
3
+ luna_quantum-1.0.4rc4.dist-info/licenses/LICENSE,sha256=bR2Wj7Il7KNny38LiDGrASo12StUfpReF--OewXD5cw,10349
4
+ luna_quantum-1.0.4rc4.dist-info/licenses/NOTICE,sha256=GHZYA5H4QFAhbhXliAi2SjWWXLjxl4hrHdEPyUbC0r0,601
5
5
  luna_quantum/__init__.py,sha256=9Dpk-wfL5fR_R74c-JsFKZmUy7OUfe4hj4ZXEJaPAt4,3342
6
6
  luna_quantum/__init__.pyi,sha256=9Md6njbzsErrktv0GlRGYSunQIrIyw5r0kEJx1yMpkw,1746
7
- luna_quantum/_core.cp313-win_amd64.pyd,sha256=CfjEMp2v02BHlqA8hDqiTCsLSvMsyPGfYYagYAP0dnE,6062080
7
+ luna_quantum/_core.cp313-win_amd64.pyd,sha256=6ceqGZkDvxZYELUSkNdIMIt6asPKVQS0x7NIoeY3Y-I,6056960
8
8
  luna_quantum/_core.pyi,sha256=mezdmnUnyZqfYqFIKG4a1UtM3A6Y4RqSNqdybbH9q-E,117664
9
9
  luna_quantum/algorithms/__init__.py,sha256=EoTNO0FXXjPrhpYfN7q9c_nUhmVHk2nEZsbhaVOBh_g,70
10
10
  luna_quantum/aqm_overwrites/__init__.py,sha256=ieIVhfslOwrznbvwqu3vNzU_nFIHS1hyeUgIV097WdQ,49
@@ -73,7 +73,7 @@ luna_quantum/client/schemas/qpu_token/qpu_token_time_quota.py,sha256=DmgBItoqGU8
73
73
  luna_quantum/client/schemas/qpu_token/token_provider.py,sha256=K8lAs0X2IPHKFaayCPjRObSjbs5MzNJmnajRmvRl5L4,4727
74
74
  luna_quantum/client/schemas/representation.py,sha256=8N6JUEnnY7cicHvfSZfx-yDjN32sLQcDxaLpGz4yo7o,383
75
75
  luna_quantum/client/schemas/solution.py,sha256=jQ3HMZng2JhWzwhDm25P1KkKtMBxyb_7DttDRymbjtU,2551
76
- luna_quantum/client/schemas/solve_job.py,sha256=N4osQk9JStsutudrQ_J3izq1IWb5bf7oOfdr8dPK05g,1457
76
+ luna_quantum/client/schemas/solve_job.py,sha256=7XZBIw1cU4DhyD7bf7SJ_CvmYBsDSCFIsqSWYmzY4lE,1527
77
77
  luna_quantum/client/schemas/solver_info.py,sha256=_3k_fJfg4hbfa9-8pqOKvhJt4zh09vnm_uvwFJBNv8g,234
78
78
  luna_quantum/client/schemas/user.py,sha256=HsLnu_WVh1pAEsEMiC89qewXiNPYeU8Cx63hd9GZpQg,234
79
79
  luna_quantum/client/schemas/wrappers/__init__.py,sha256=sAIRzd1LmugZkyZ4ND3XJUt1Z_yJH6Tw0tysCiTuri0,143
@@ -81,7 +81,7 @@ luna_quantum/client/schemas/wrappers/datetime_wrapper.py,sha256=11KmaftPtKoafhcg
81
81
  luna_quantum/client/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
82
82
  luna_quantum/client/utils/qpu_token_utils.py,sha256=goq4nwmxKz0GTqLep01ydoopqHb336FPv6CXGGtR260,4915
83
83
  luna_quantum/config.py,sha256=a5UgYn6TIT2pFfdprvDy0RzyI4eAI_OFSdFSxpjQr2M,228
84
- luna_quantum/decorators.py,sha256=h9APzB-s3p_kCf0LfBPjG23hlswcWZfupK492DxUoJc,7084
84
+ luna_quantum/decorators.py,sha256=ySbqowbPzjJyszpuqUdTjFoEdVb6eBKBSMsx0Jc2ISM,7149
85
85
  luna_quantum/errors.py,sha256=9qeMJY-hI1qlBqrWjaESVGx3ujEQuFdqONGgIl107kk,1458
86
86
  luna_quantum/errors.pyi,sha256=tf4cDmBtbE6Mjujl3B3nbT1zQzLM__iS9neFYA3chv4,9579
87
87
  luna_quantum/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -98,7 +98,7 @@ luna_quantum/solve/domain/abstract/__init__.py,sha256=QjmDfEn-Wil0xWC5YronLrtyHt
98
98
  luna_quantum/solve/domain/abstract/luna_algorithm.py,sha256=HAHBDz1BFTBFHRm0ucp0R2DlYfwMH6JoqDA_G9e2vHA,7228
99
99
  luna_quantum/solve/domain/abstract/qpu_token_backend.py,sha256=70FZ4RwRygee_ZR8qHmjFTSnlWSZjYSkxauP89jK5_M,1263
100
100
  luna_quantum/solve/domain/model_metadata.py,sha256=HSJ9HdIE7y10pjmkMeJHBon9q8hFUH6Lh0V7B3Zr-_I,1698
101
- luna_quantum/solve/domain/solve_job.py,sha256=X4W5c03u7G0ggyXC4c5f3wbR2CIhAziZVWwYYTwKPLQ,6746
101
+ luna_quantum/solve/domain/solve_job.py,sha256=xi6lesF0gvssik71K27dbf-QFN6kRSyM8hEif-R3pdo,6795
102
102
  luna_quantum/solve/errors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
103
103
  luna_quantum/solve/errors/incompatible_backend_error.py,sha256=k1qzt2gabHPSsgYjcD_vD8b5I1nB4CwyWYxwTbAnVtY,619
104
104
  luna_quantum/solve/errors/model_metadata_missing_error.py,sha256=BNSbjn0s0z6H4uAANl7r7c-uwOucNnknuAvhFNa3rZM,374
@@ -257,4 +257,4 @@ luna_quantum/util/pretty_base.py,sha256=rJy28OKfNdB1j5xdzOmFrCdbw-Gb-JJ5Dcz3NvOp
257
257
  luna_quantum/util/pydantic_utils.py,sha256=KipyyVaajjFB-krdPl_j5BLogaiPqn0L8mrJuLwZtic,1301
258
258
  luna_quantum/utils.py,sha256=RlF0LFK0qXavL22BSjMuNcGBGJrEL8mde_rAPX66qhw,137
259
259
  luna_quantum/utils.pyi,sha256=TRV-THwZJdYDD5q3kn4W-p4dslim54xNJW0yFbXPFhs,2001
260
- luna_quantum-1.0.4rc3.dist-info/RECORD,,
260
+ luna_quantum-1.0.4rc4.dist-info/RECORD,,