luna-quantum 1.0.3rc2__cp312-cp312-macosx_11_0_arm64.whl → 1.0.3rc3__cp312-cp312-macosx_11_0_arm64.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
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
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: luna-quantum
3
- Version: 1.0.3rc2
3
+ Version: 1.0.3rc3
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.3rc2.dist-info/METADATA,sha256=uf6_KnE34UPfQi9K-5gwJ6aMAhyMK0_wooFkWDnX-UQ,1574
2
- luna_quantum-1.0.3rc2.dist-info/WHEEL,sha256=OKNaprf69OMJcUM9j7q_InsmuCwJKmTkk4eP74FSm7I,104
3
- luna_quantum-1.0.3rc2.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
4
- luna_quantum-1.0.3rc2.dist-info/licenses/NOTICE,sha256=noPOS8eDj5XoyRO8ZrCxIOh5fSjk0RildIrrqxQlepY,588
1
+ luna_quantum-1.0.3rc3.dist-info/METADATA,sha256=1TbSzuciN5vaguhRzvuOPRByA5JstwjrHtqPFoCh0Pc,1574
2
+ luna_quantum-1.0.3rc3.dist-info/WHEEL,sha256=OKNaprf69OMJcUM9j7q_InsmuCwJKmTkk4eP74FSm7I,104
3
+ luna_quantum-1.0.3rc3.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
4
+ luna_quantum-1.0.3rc3.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=tcM9H4ZAKxgt8KYnFmKH5OHSJZ0zv7J8dMdYMZp6m3s,1661
7
- luna_quantum/_core.cpython-312-darwin.so,sha256=GI1_SvoViBe6PC6C8NDOhxnzqyF6gEMfY14YkiBU7hw,4139008
8
- luna_quantum/_core.pyi,sha256=7HL0LZHypfEWlrnjzk3dT0kG3K92v3FkPylQmc9EITs,105472
7
+ luna_quantum/_core.cpython-312-darwin.so,sha256=1XmVgQe_8WV9f5EHpdScFljL7Zvx2vQwET7aaqq94dw,4519872
8
+ luna_quantum/_core.pyi,sha256=TfOBrBZrY2yb5rSW5ZGwbbvHZV2giEjCaCvDvbquupQ,106084
9
9
  luna_quantum/algorithms/__init__.py,sha256=IX9ZpzY3Do3mTgKqto5vAWwdYrZrM-RemYSf64yxefg,69
10
10
  luna_quantum/aqm_overwrites/__init__.py,sha256=rteObr5JHDnTnRime0Euq9Qy2iDIp6VMpFNHTGVNBe0,46
11
11
  luna_quantum/aqm_overwrites/model.py,sha256=La5mh-aS2LNLaQFp_B1EnhrKUXVRRmIqGnIvX66uc8Y,6099
@@ -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=xeWIKcBwXGSQ0INfUY3NMTu6H90T03jkT85yHs2QXmk,4768
83
83
  luna_quantum/config.py,sha256=xx7DnjAvOeLUMlXvbXqQ4_EBAy53bjPYU1-QQO6I2lY,217
84
84
  luna_quantum/errors.py,sha256=yjeXB3i07LlTuuJ18IKgwsC5wmtJElN8cDwlg3JkcEs,1424
85
- luna_quantum/errors.pyi,sha256=daGAwiOdpgHPILYVSUy360AZQilRb-vdwh2pwAAn3CU,8900
85
+ luna_quantum/errors.pyi,sha256=qrGBpkd_eOpgjHuNBAoIYJOk7s64jvVO4Bcipue4P3k,9111
86
86
  luna_quantum/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
87
87
  luna_quantum/exceptions/base_luna_quantum_error.py,sha256=qC712QkF04FiY_qwQ5HlIYVhg5P6WzXJ_chJDVTpWXI,89
88
88
  luna_quantum/exceptions/patch_class_field_exists_error.py,sha256=3TGKb-MNyjwntrJkbRaBKEvlsj68ROTwCltDt6Zg7Gg,398
@@ -256,4 +256,4 @@ luna_quantum/util/pretty_base.py,sha256=Vv3dYpMsydOPYFOm-0lCCuJIe-62oYkI64Zy_bah
256
256
  luna_quantum/util/pydantic_utils.py,sha256=nhl_SdLJVAizrtLVHvnbco84g8CdBVdVxN_jlXiv82w,1263
257
257
  luna_quantum/utils.py,sha256=pBOkGXNJXlOzxAwTJv8nCj32Q6WNeh3t6Ka3lmTgy9c,134
258
258
  luna_quantum/utils.pyi,sha256=afjDJhGiM9KmN2zqVkd6agP8JAsbwUxJBW9tEyiFrdY,1941
259
- luna_quantum-1.0.3rc2.dist-info/RECORD,,
259
+ luna_quantum-1.0.3rc3.dist-info/RECORD,,