luna-quantum 1.0.3rc1__cp312-cp312-win_amd64.whl → 1.0.3rc3__cp312-cp312-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.cp312-win_amd64.pyd +0 -0
- luna_quantum/_core.pyi +23 -0
- luna_quantum/client/controllers/luna_platform_client.py +4 -2
- luna_quantum/errors.pyi +8 -0
- {luna_quantum-1.0.3rc1.dist-info → luna_quantum-1.0.3rc3.dist-info}/METADATA +1 -1
- {luna_quantum-1.0.3rc1.dist-info → luna_quantum-1.0.3rc3.dist-info}/RECORD +9 -9
- {luna_quantum-1.0.3rc1.dist-info → luna_quantum-1.0.3rc3.dist-info}/WHEEL +0 -0
- {luna_quantum-1.0.3rc1.dist-info → luna_quantum-1.0.3rc3.dist-info}/licenses/LICENSE +0 -0
- {luna_quantum-1.0.3rc1.dist-info → luna_quantum-1.0.3rc3.dist-info}/licenses/NOTICE +0 -0
|
Binary file
|
luna_quantum/_core.pyi
CHANGED
|
@@ -2369,6 +2369,10 @@ class Model:
|
|
|
2369
2369
|
"""
|
|
2370
2370
|
...
|
|
2371
2371
|
|
|
2372
|
+
def vtypes(self, /) -> list[Vtype]:
|
|
2373
|
+
"""Get a list of all unique variable types of all variables in this model."""
|
|
2374
|
+
...
|
|
2375
|
+
|
|
2372
2376
|
def __str__(self, /) -> str: ...
|
|
2373
2377
|
def __repr__(self, /) -> str: ...
|
|
2374
2378
|
def __hash__(self, /) -> int: ...
|
|
@@ -2598,6 +2602,17 @@ class Expression:
|
|
|
2598
2602
|
"""
|
|
2599
2603
|
...
|
|
2600
2604
|
|
|
2605
|
+
def variables(self, /) -> list[Variable]:
|
|
2606
|
+
"""
|
|
2607
|
+
Get all variables that are part of this expression.
|
|
2608
|
+
|
|
2609
|
+
Returns
|
|
2610
|
+
-------
|
|
2611
|
+
list[Variable]
|
|
2612
|
+
The list of active variables
|
|
2613
|
+
"""
|
|
2614
|
+
...
|
|
2615
|
+
|
|
2601
2616
|
def is_equal(self, /, other: Expression) -> bool:
|
|
2602
2617
|
"""
|
|
2603
2618
|
Compare two expressions for equality.
|
|
@@ -3075,6 +3090,10 @@ class Expression:
|
|
|
3075
3090
|
"""
|
|
3076
3091
|
...
|
|
3077
3092
|
|
|
3093
|
+
def degree(self, /) -> int:
|
|
3094
|
+
"""Get the degree of this expression."""
|
|
3095
|
+
...
|
|
3096
|
+
|
|
3078
3097
|
@property
|
|
3079
3098
|
def _environment(self, /) -> Environment:
|
|
3080
3099
|
"""Get this expression's environment."""
|
|
@@ -3704,6 +3723,10 @@ class Constraints:
|
|
|
3704
3723
|
"""
|
|
3705
3724
|
...
|
|
3706
3725
|
|
|
3726
|
+
def ctypes(self, /) -> list[Comparator]:
|
|
3727
|
+
"""Get all unique constraint types identified using their comparator."""
|
|
3728
|
+
...
|
|
3729
|
+
|
|
3707
3730
|
__version__: str
|
|
3708
3731
|
__aq_model_version__: str
|
|
3709
3732
|
__luna_quantum_version__: str
|
|
@@ -48,7 +48,7 @@ class APIKeyAuth(httpx.Auth):
|
|
|
48
48
|
def __init__(self, token: str) -> None:
|
|
49
49
|
self.token = token
|
|
50
50
|
|
|
51
|
-
def auth_flow(self, request: Request) -> Generator[Request, Response
|
|
51
|
+
def auth_flow(self, request: Request) -> Generator[Request, Response]:
|
|
52
52
|
"""
|
|
53
53
|
Authenticate a request to Luna platform.
|
|
54
54
|
|
|
@@ -89,7 +89,7 @@ class LunaPlatformClient(IService):
|
|
|
89
89
|
self,
|
|
90
90
|
api: LunaPrefixEnum,
|
|
91
91
|
api_key: str | None = None,
|
|
92
|
-
base_url: str =
|
|
92
|
+
base_url: str | None = None,
|
|
93
93
|
timeout: float | None = 240.0,
|
|
94
94
|
) -> None:
|
|
95
95
|
"""
|
|
@@ -116,6 +116,8 @@ class LunaPlatformClient(IService):
|
|
|
116
116
|
itself will time out after 240 seconds.
|
|
117
117
|
Default: 240.0
|
|
118
118
|
"""
|
|
119
|
+
if base_url is None:
|
|
120
|
+
base_url = os.getenv("LUNA_BASE_URL", "https://api.aqarios.com")
|
|
119
121
|
if os.getenv("LUNA_DISABLE_SUFFIX", "false").lower() == "true":
|
|
120
122
|
self._base_url = f"{base_url}/api/v1"
|
|
121
123
|
else:
|
luna_quantum/errors.pyi
CHANGED
|
@@ -239,6 +239,13 @@ class StartCannotBeInferredError(TypeError):
|
|
|
239
239
|
class NoConstraintForKeyError(IndexError):
|
|
240
240
|
"""Raised getting a constraint from the constraints that does not exist."""
|
|
241
241
|
|
|
242
|
+
def __str__(self, /) -> str: ...
|
|
243
|
+
|
|
244
|
+
class InternalPanicError(RuntimeError):
|
|
245
|
+
"""Raised when an internal and unrecoverable error occurred."""
|
|
246
|
+
|
|
247
|
+
def __str__(self, /) -> str: ...
|
|
248
|
+
|
|
242
249
|
__all__ = [
|
|
243
250
|
"ComputationError",
|
|
244
251
|
"ComputationError",
|
|
@@ -247,6 +254,7 @@ __all__ = [
|
|
|
247
254
|
"DuplicateConstraintNameError",
|
|
248
255
|
"EvaluationError",
|
|
249
256
|
"IllegalConstraintNameError",
|
|
257
|
+
"InternalPanicError",
|
|
250
258
|
"ModelNotQuadraticError",
|
|
251
259
|
"ModelNotUnconstrainedError",
|
|
252
260
|
"ModelSenseNotMinimizeError",
|
|
@@ -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.3rc3.dist-info/METADATA,sha256=1TbSzuciN5vaguhRzvuOPRByA5JstwjrHtqPFoCh0Pc,1574
|
|
2
|
+
luna_quantum-1.0.3rc3.dist-info/WHEEL,sha256=nt3Fvhb4VwdyxisCUlWW94P627fWRNU9JcC8CrJr20Q,96
|
|
3
|
+
luna_quantum-1.0.3rc3.dist-info/licenses/LICENSE,sha256=bR2Wj7Il7KNny38LiDGrASo12StUfpReF--OewXD5cw,10349
|
|
4
|
+
luna_quantum-1.0.3rc3.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=hDTZ1lJV4kd104FvjVmMbMn0jNt9V3LqTvDDssJGwQU,1746
|
|
7
|
-
luna_quantum/_core.cp312-win_amd64.pyd,sha256=
|
|
8
|
-
luna_quantum/_core.pyi,sha256=
|
|
7
|
+
luna_quantum/_core.cp312-win_amd64.pyd,sha256=JiS6mH6o0tyCI0GISzq_RKH3ei8MPZu_l31vcMYCjDg,5387264
|
|
8
|
+
luna_quantum/_core.pyi,sha256=6pMRZOkvfa8nBUpuY709CpJxIi5BmYjsO9T9dx7ltjc,109845
|
|
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
|
|
@@ -13,7 +13,7 @@ luna_quantum/backends/__init__.py,sha256=jBbtXn6u196zFHqOv-Yh1-S1otbYssGPPsEHTT3
|
|
|
13
13
|
luna_quantum/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
luna_quantum/client/controllers/__init__.py,sha256=0HavZV2mfk4Inuv5KnEZo5OmCtl6orm1flUfx9bnT4o,160
|
|
15
15
|
luna_quantum/client/controllers/luna_http_client.py,sha256=bwBn_d-JWkEmy6JX-vMo8qFhRAu9eteqCD8rBFl5wKo,1094
|
|
16
|
-
luna_quantum/client/controllers/luna_platform_client.py,sha256=
|
|
16
|
+
luna_quantum/client/controllers/luna_platform_client.py,sha256=BGkBnIoNtISHRnTtPv6Z5quV1QQY564einW1UDZI2vM,5371
|
|
17
17
|
luna_quantum/client/controllers/luna_q.py,sha256=2Wh47dJ3W6SjlwUtEUVKlpY-2OBDVFVeqooJBXq2Vr8,1992
|
|
18
18
|
luna_quantum/client/controllers/luna_solve.py,sha256=pbGBrPnbCA_kG9Rq34lTZfc78WekD-m3ksFgMrARxOY,3524
|
|
19
19
|
luna_quantum/client/error/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -82,7 +82,7 @@ luna_quantum/client/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
|
|
|
82
82
|
luna_quantum/client/utils/qpu_token_utils.py,sha256=goq4nwmxKz0GTqLep01ydoopqHb336FPv6CXGGtR260,4915
|
|
83
83
|
luna_quantum/config.py,sha256=a5UgYn6TIT2pFfdprvDy0RzyI4eAI_OFSdFSxpjQr2M,228
|
|
84
84
|
luna_quantum/errors.py,sha256=9qeMJY-hI1qlBqrWjaESVGx3ujEQuFdqONGgIl107kk,1458
|
|
85
|
-
luna_quantum/errors.pyi,sha256=
|
|
85
|
+
luna_quantum/errors.pyi,sha256=AynKirSxuqSRfoxA-IJ43-aTM3T55w8FSmbAJrB-jNM,9387
|
|
86
86
|
luna_quantum/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
87
87
|
luna_quantum/exceptions/base_luna_quantum_error.py,sha256=Gl65slQxbNJoo8Kgnqif-slshlluCke0O0ow2r5PZE0,91
|
|
88
88
|
luna_quantum/exceptions/patch_class_field_exists_error.py,sha256=4nmnGlPXp-SjuNX72PETXQ4eZzVpMTxH0eYs1IVDUPQ,408
|
|
@@ -256,4 +256,4 @@ luna_quantum/util/pretty_base.py,sha256=rJy28OKfNdB1j5xdzOmFrCdbw-Gb-JJ5Dcz3NvOp
|
|
|
256
256
|
luna_quantum/util/pydantic_utils.py,sha256=KipyyVaajjFB-krdPl_j5BLogaiPqn0L8mrJuLwZtic,1301
|
|
257
257
|
luna_quantum/utils.py,sha256=RlF0LFK0qXavL22BSjMuNcGBGJrEL8mde_rAPX66qhw,137
|
|
258
258
|
luna_quantum/utils.pyi,sha256=JbBq1V2SpGy4IbwqCQQKoJUM17LiTD35Wv8Im1YY1pw,2008
|
|
259
|
-
luna_quantum-1.0.
|
|
259
|
+
luna_quantum-1.0.3rc3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|