luna-quantum 1.0.1rc14__cp312-cp312-macosx_10_12_x86_64.whl → 1.0.2__cp312-cp312-macosx_10_12_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.

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",
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: luna-quantum
3
- Version: 1.0.1rc14
3
+ Version: 1.0.2
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.1rc14.dist-info/METADATA,sha256=0C2zVaYSdSF2HPDxIMMHWB__iO4KrVKzbNreO_oRthc,1534
2
- luna_quantum-1.0.1rc14.dist-info/WHEEL,sha256=KVbmEBK8XTzklTUWbxeuu65d5JTBhtdzc5NXYKGXnwg,106
3
- luna_quantum-1.0.1rc14.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
4
- luna_quantum-1.0.1rc14.dist-info/licenses/NOTICE,sha256=noPOS8eDj5XoyRO8ZrCxIOh5fSjk0RildIrrqxQlepY,588
1
+ luna_quantum-1.0.2.dist-info/METADATA,sha256=9lTewsIfCY4ToenZtDn_98Dt5nRwB9evm7As2rgKUnk,1530
2
+ luna_quantum-1.0.2.dist-info/WHEEL,sha256=KVbmEBK8XTzklTUWbxeuu65d5JTBhtdzc5NXYKGXnwg,106
3
+ luna_quantum-1.0.2.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
4
+ luna_quantum-1.0.2.dist-info/licenses/NOTICE,sha256=noPOS8eDj5XoyRO8ZrCxIOh5fSjk0RildIrrqxQlepY,588
5
5
  luna_quantum/__init__.py,sha256=VVqJBFKl8ET7gJmebXVnTsD33sIFfhxKm7_eB12YVkU,3170
6
6
  luna_quantum/__init__.pyi,sha256=dG3-NeEI8ApxHUcVq-Ov9Pa9D3Px_5yWUWkxhLsfL80,1608
7
- luna_quantum/_core.cpython-312-darwin.so,sha256=2DBKd832tE8kqDuJm0upi-REpTtj_4rbWpZMmoOCxRc,4520652
8
- luna_quantum/_core.pyi,sha256=dVgYQVxIfHdWQEYLYAkVUDulGlXQ9ktBdln_V7NnmNc,104258
7
+ luna_quantum/_core.cpython-312-darwin.so,sha256=3vnycggN8ftURRpPts6yf7prqkBQ3T92jT-sKZl2lO4,4545372
8
+ luna_quantum/_core.pyi,sha256=7HL0LZHypfEWlrnjzk3dT0kG3K92v3FkPylQmc9EITs,105472
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
@@ -81,7 +81,7 @@ luna_quantum/client/schemas/wrappers/datetime_wrapper.py,sha256=8K2jexTarxGCgD1u
81
81
  luna_quantum/client/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
82
82
  luna_quantum/client/utils/qpu_token_utils.py,sha256=xeWIKcBwXGSQ0INfUY3NMTu6H90T03jkT85yHs2QXmk,4768
83
83
  luna_quantum/errors.py,sha256=yjeXB3i07LlTuuJ18IKgwsC5wmtJElN8cDwlg3JkcEs,1424
84
- luna_quantum/errors.pyi,sha256=sB9AKnafl1-duUZQPJNGDGBqE41QFhk1BX1jgBkqW6A,8745
84
+ luna_quantum/errors.pyi,sha256=daGAwiOdpgHPILYVSUy360AZQilRb-vdwh2pwAAn3CU,8900
85
85
  luna_quantum/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
86
86
  luna_quantum/exceptions/base_luna_quantum_error.py,sha256=qC712QkF04FiY_qwQ5HlIYVhg5P6WzXJ_chJDVTpWXI,89
87
87
  luna_quantum/exceptions/patch_class_field_exists_error.py,sha256=3TGKb-MNyjwntrJkbRaBKEvlsj68ROTwCltDt6Zg7Gg,398
@@ -245,7 +245,7 @@ luna_quantum/solve/usecases/solve_job_get_result_usecase.py,sha256=dk6LSjInOfH5d
245
245
  luna_quantum/transformations.py,sha256=AZtGBaJ0PTWsr4mpONoJq5BpNOXPcM85CnWDhPgXx_I,902
246
246
  luna_quantum/transformations.pyi,sha256=D71bSXST8vfib-jSez0s5sg8NJpN5obja4Y0BXoqUjA,7795
247
247
  luna_quantum/translator.py,sha256=xi5eiIRNv8ATz69GYpUY5kbEIUmQEtK6_dF5t2Mwpec,1134
248
- luna_quantum/translator.pyi,sha256=1kQyDBUWKV6vTyydC_f2K1aQzbW6_8sdcpgxCZJVaM4,26329
248
+ luna_quantum/translator.pyi,sha256=edLGrIFl6do9LaCH4znjnOD8Zb3va-9nBGq-H3XQHso,26478
249
249
  luna_quantum/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
250
250
  luna_quantum/util/active_waiting.py,sha256=MkLL7UEtWh8jU1Zwd9rYqfcReYPGB7FJLUjQe2v9_Tg,3029
251
251
  luna_quantum/util/class_patcher.py,sha256=-vD_7Auh1dQTOJXOKv-4sTQ5EzH3n6I0EsHDFQ_ZPOY,5456
@@ -255,4 +255,4 @@ luna_quantum/util/pretty_base.py,sha256=Vv3dYpMsydOPYFOm-0lCCuJIe-62oYkI64Zy_bah
255
255
  luna_quantum/util/pydantic_utils.py,sha256=nhl_SdLJVAizrtLVHvnbco84g8CdBVdVxN_jlXiv82w,1263
256
256
  luna_quantum/utils.py,sha256=pBOkGXNJXlOzxAwTJv8nCj32Q6WNeh3t6Ka3lmTgy9c,134
257
257
  luna_quantum/utils.pyi,sha256=afjDJhGiM9KmN2zqVkd6agP8JAsbwUxJBW9tEyiFrdY,1941
258
- luna_quantum-1.0.1rc14.dist-info/RECORD,,
258
+ luna_quantum-1.0.2.dist-info/RECORD,,