luna-quantum 1.0.1rc14__cp311-cp311-win_amd64.whl → 1.0.2__cp311-cp311-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.
- luna_quantum/_core.cp311-win_amd64.pyd +0 -0
- luna_quantum/_core.pyi +48 -0
- luna_quantum/errors.pyi +4 -0
- luna_quantum/translator.pyi +3 -0
- {luna_quantum-1.0.1rc14.dist-info → luna_quantum-1.0.2.dist-info}/METADATA +1 -1
- {luna_quantum-1.0.1rc14.dist-info → luna_quantum-1.0.2.dist-info}/RECORD +9 -9
- {luna_quantum-1.0.1rc14.dist-info → luna_quantum-1.0.2.dist-info}/WHEEL +0 -0
- {luna_quantum-1.0.1rc14.dist-info → luna_quantum-1.0.2.dist-info}/licenses/LICENSE +0 -0
- {luna_quantum-1.0.1rc14.dist-info → luna_quantum-1.0.2.dist-info}/licenses/NOTICE +0 -0
|
Binary file
|
luna_quantum/_core.pyi
CHANGED
|
@@ -2355,6 +2355,20 @@ class Model:
|
|
|
2355
2355
|
"""
|
|
2356
2356
|
...
|
|
2357
2357
|
|
|
2358
|
+
def equal_contents(self, other: Model, /) -> bool:
|
|
2359
|
+
"""
|
|
2360
|
+
Check whether this model has equal contents as `other`.
|
|
2361
|
+
|
|
2362
|
+
Parameters
|
|
2363
|
+
----------
|
|
2364
|
+
other : Model
|
|
2365
|
+
|
|
2366
|
+
Returns
|
|
2367
|
+
-------
|
|
2368
|
+
bool
|
|
2369
|
+
"""
|
|
2370
|
+
...
|
|
2371
|
+
|
|
2358
2372
|
def __str__(self, /) -> str: ...
|
|
2359
2373
|
def __repr__(self, /) -> str: ...
|
|
2360
2374
|
def __hash__(self, /) -> int: ...
|
|
@@ -3641,10 +3655,30 @@ class Constraints:
|
|
|
3641
3655
|
"""
|
|
3642
3656
|
...
|
|
3643
3657
|
|
|
3658
|
+
@overload
|
|
3659
|
+
def get(self, item: str, /) -> Constraint: ...
|
|
3660
|
+
@overload
|
|
3661
|
+
def get(self, item: int, /) -> Constraint: ...
|
|
3662
|
+
def get(self, item: (int | str), /) -> Constraint:
|
|
3663
|
+
"""Get a constraint for its name or index."""
|
|
3664
|
+
...
|
|
3665
|
+
|
|
3666
|
+
@overload
|
|
3667
|
+
def remove(self, item: str, /) -> Constraint: ...
|
|
3668
|
+
@overload
|
|
3669
|
+
def remove(self, item: int, /) -> Constraint: ...
|
|
3670
|
+
def remove(self, item: (int | str), /) -> Constraint:
|
|
3671
|
+
"""Remove a constraint for its name or index."""
|
|
3672
|
+
...
|
|
3673
|
+
|
|
3644
3674
|
def __eq__(self, other: Constraints, /) -> bool: ...
|
|
3645
3675
|
def __str__(self, /) -> str: ...
|
|
3646
3676
|
def __repr__(self, /) -> str: ...
|
|
3677
|
+
@overload
|
|
3678
|
+
def __getitem__(self, item: str, /) -> Constraint: ...
|
|
3679
|
+
@overload
|
|
3647
3680
|
def __getitem__(self, item: int, /) -> Constraint: ...
|
|
3681
|
+
def __getitem__(self, item: (int | str), /) -> Constraint: ...
|
|
3648
3682
|
def __len__(self, /) -> int:
|
|
3649
3683
|
"""
|
|
3650
3684
|
Get the number of constraints.
|
|
@@ -3656,6 +3690,20 @@ class Constraints:
|
|
|
3656
3690
|
"""
|
|
3657
3691
|
...
|
|
3658
3692
|
|
|
3693
|
+
def equal_contents(self, other: Constraints, /) -> bool:
|
|
3694
|
+
"""
|
|
3695
|
+
Check whether this constraints has equal contents as `other`.
|
|
3696
|
+
|
|
3697
|
+
Parameters
|
|
3698
|
+
----------
|
|
3699
|
+
other : Constraints
|
|
3700
|
+
|
|
3701
|
+
Returns
|
|
3702
|
+
-------
|
|
3703
|
+
bool
|
|
3704
|
+
"""
|
|
3705
|
+
...
|
|
3706
|
+
|
|
3659
3707
|
__version__: str
|
|
3660
3708
|
__aq_model_version__: str
|
|
3661
3709
|
__luna_quantum_version__: str
|
luna_quantum/errors.pyi
CHANGED
|
@@ -236,6 +236,9 @@ class StartCannotBeInferredError(TypeError):
|
|
|
236
236
|
|
|
237
237
|
def __str__(self, /) -> str: ...
|
|
238
238
|
|
|
239
|
+
class NoConstraintForKeyError(IndexError):
|
|
240
|
+
"""Raised getting a constraint from the constraints that does not exist."""
|
|
241
|
+
|
|
239
242
|
__all__ = [
|
|
240
243
|
"ComputationError",
|
|
241
244
|
"ComputationError",
|
|
@@ -250,6 +253,7 @@ __all__ = [
|
|
|
250
253
|
"ModelVtypeError",
|
|
251
254
|
"MultipleActiveEnvironmentsError",
|
|
252
255
|
"NoActiveEnvironmentFoundError",
|
|
256
|
+
"NoConstraintForKeyError",
|
|
253
257
|
"SampleIncompatibleVtypeError",
|
|
254
258
|
"SampleIncorrectLengthError",
|
|
255
259
|
"SampleUnexpectedVariableError",
|
luna_quantum/translator.pyi
CHANGED
|
@@ -616,6 +616,9 @@ class DwaveTranslator:
|
|
|
616
616
|
SampleIncorrectLengthError
|
|
617
617
|
If a solution's sample has a different number of variables than the model
|
|
618
618
|
environment passed to the translator.
|
|
619
|
+
SampleUnexpectedVariableError
|
|
620
|
+
If the sample_set contains variables that are not contained in the passed
|
|
621
|
+
environment.
|
|
619
622
|
ModelVtypeError
|
|
620
623
|
If the result's variable types are incompatible with the model environment's
|
|
621
624
|
variable types.
|
|
@@ -1,11 +1,11 @@
|
|
|
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.2.dist-info/METADATA,sha256=9lTewsIfCY4ToenZtDn_98Dt5nRwB9evm7As2rgKUnk,1530
|
|
2
|
+
luna_quantum-1.0.2.dist-info/WHEEL,sha256=auo2gA2SV-bvS4ssY6DIG7dtu3SpmB5FcBkwIwO6YZk,96
|
|
3
|
+
luna_quantum-1.0.2.dist-info/licenses/LICENSE,sha256=bR2Wj7Il7KNny38LiDGrASo12StUfpReF--OewXD5cw,10349
|
|
4
|
+
luna_quantum-1.0.2.dist-info/licenses/NOTICE,sha256=GHZYA5H4QFAhbhXliAi2SjWWXLjxl4hrHdEPyUbC0r0,601
|
|
5
5
|
luna_quantum/__init__.py,sha256=1nYCHMAMTshDawN7U9FiO3XRUkClk-wcNNR0KQBfeZs,3287
|
|
6
6
|
luna_quantum/__init__.pyi,sha256=nqAu05_nRij1xlcbADzyjUSQhvUIvvb8ElnWYE9ZkS8,1691
|
|
7
|
-
luna_quantum/_core.cp311-win_amd64.pyd,sha256=
|
|
8
|
-
luna_quantum/_core.pyi,sha256=
|
|
7
|
+
luna_quantum/_core.cp311-win_amd64.pyd,sha256=jVpdBd8whbr7XVil2JcVmVHVlZvOfB66VT2ewX7ftFA,4631552
|
|
8
|
+
luna_quantum/_core.pyi,sha256=tzzycPQ6d7Ec_ptRIDlBKt4QhFtfplBeXHQWoZ72_q0,109210
|
|
9
9
|
luna_quantum/algorithms/__init__.py,sha256=EoTNO0FXXjPrhpYfN7q9c_nUhmVHk2nEZsbhaVOBh_g,70
|
|
10
10
|
luna_quantum/aqm_overwrites/__init__.py,sha256=ieIVhfslOwrznbvwqu3vNzU_nFIHS1hyeUgIV097WdQ,49
|
|
11
11
|
luna_quantum/aqm_overwrites/model.py,sha256=stqMo97W0nzDLoWmTqwefdu7xgtPAWS46dsxOcJDHpU,6283
|
|
@@ -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/errors.py,sha256=9qeMJY-hI1qlBqrWjaESVGx3ujEQuFdqONGgIl107kk,1458
|
|
84
|
-
luna_quantum/errors.pyi,sha256=
|
|
84
|
+
luna_quantum/errors.pyi,sha256=xKHr2YcetOKgMKD-JwS5bkfamcRVhYjjo6NfDAQBNUk,9168
|
|
85
85
|
luna_quantum/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
86
86
|
luna_quantum/exceptions/base_luna_quantum_error.py,sha256=Gl65slQxbNJoo8Kgnqif-slshlluCke0O0ow2r5PZE0,91
|
|
87
87
|
luna_quantum/exceptions/patch_class_field_exists_error.py,sha256=4nmnGlPXp-SjuNX72PETXQ4eZzVpMTxH0eYs1IVDUPQ,408
|
|
@@ -245,7 +245,7 @@ luna_quantum/solve/usecases/solve_job_get_result_usecase.py,sha256=_62COwl-I1iGa
|
|
|
245
245
|
luna_quantum/transformations.py,sha256=A00BqmKpZz1Ixrb77a_ynpuqtB7w-AlVshg-QHp2UwM,920
|
|
246
246
|
luna_quantum/transformations.pyi,sha256=ZuTF6cCy6vAcsqYuy7rBfNjHuYGay4vukrL-Zvobq7s,8053
|
|
247
247
|
luna_quantum/translator.py,sha256=5RDTzFzd5sw3JzxFQsHdZQWhz2KDl03nzik5dUHebHI,1157
|
|
248
|
-
luna_quantum/translator.pyi,sha256=
|
|
248
|
+
luna_quantum/translator.pyi,sha256=RcePKY4Ztw-uv0Dfyx2DTw1TBMyem_SWts1MmzYZfn0,27347
|
|
249
249
|
luna_quantum/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
250
250
|
luna_quantum/util/active_waiting.py,sha256=hmwUiav3woWy1q6KJckYmHTIIFPI4MnQ4QF1LwqPrKY,3108
|
|
251
251
|
luna_quantum/util/class_patcher.py,sha256=rQRjnUgAXq0NnFY7lvfNZu4r-4VWvke0sV18i67DfTI,5620
|
|
@@ -255,4 +255,4 @@ luna_quantum/util/pretty_base.py,sha256=rJy28OKfNdB1j5xdzOmFrCdbw-Gb-JJ5Dcz3NvOp
|
|
|
255
255
|
luna_quantum/util/pydantic_utils.py,sha256=KipyyVaajjFB-krdPl_j5BLogaiPqn0L8mrJuLwZtic,1301
|
|
256
256
|
luna_quantum/utils.py,sha256=RlF0LFK0qXavL22BSjMuNcGBGJrEL8mde_rAPX66qhw,137
|
|
257
257
|
luna_quantum/utils.pyi,sha256=JbBq1V2SpGy4IbwqCQQKoJUM17LiTD35Wv8Im1YY1pw,2008
|
|
258
|
-
luna_quantum-1.0.
|
|
258
|
+
luna_quantum-1.0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|