luna-quantum 1.0.1rc11__cp312-cp312-win_amd64.whl → 1.0.1rc12__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 +6 -6
- luna_quantum/transformations.pyi +31 -1
- {luna_quantum-1.0.1rc11.dist-info → luna_quantum-1.0.1rc12.dist-info}/METADATA +1 -1
- {luna_quantum-1.0.1rc11.dist-info → luna_quantum-1.0.1rc12.dist-info}/RECORD +8 -8
- {luna_quantum-1.0.1rc11.dist-info → luna_quantum-1.0.1rc12.dist-info}/WHEEL +0 -0
- {luna_quantum-1.0.1rc11.dist-info → luna_quantum-1.0.1rc12.dist-info}/licenses/LICENSE +0 -0
- {luna_quantum-1.0.1rc11.dist-info → luna_quantum-1.0.1rc12.dist-info}/licenses/NOTICE +0 -0
|
Binary file
|
luna_quantum/_core.pyi
CHANGED
|
@@ -106,12 +106,12 @@ class Bounds:
|
|
|
106
106
|
...
|
|
107
107
|
|
|
108
108
|
@property
|
|
109
|
-
def lower(self, /) -> float | Unbounded | None:
|
|
109
|
+
def lower(self, /) -> float | type[Unbounded] | None:
|
|
110
110
|
"""Get the lower bound."""
|
|
111
111
|
...
|
|
112
112
|
|
|
113
113
|
@property
|
|
114
|
-
def upper(self, /) -> float | Unbounded | None:
|
|
114
|
+
def upper(self, /) -> float | type[Unbounded] | None:
|
|
115
115
|
"""Get the upper bound."""
|
|
116
116
|
...
|
|
117
117
|
|
|
@@ -1998,11 +1998,11 @@ class Model:
|
|
|
1998
1998
|
def add_variable(self, name: str, /, vtype: (Vtype | None) = ...) -> Variable: ...
|
|
1999
1999
|
@overload
|
|
2000
2000
|
def add_variable(
|
|
2001
|
-
self, name: str, /, vtype: Vtype, *, lower: (float | type[Unbounded])
|
|
2001
|
+
self, name: str, /, vtype: Vtype, *, lower: (float | type[Unbounded] | None)
|
|
2002
2002
|
) -> Variable: ...
|
|
2003
2003
|
@overload
|
|
2004
2004
|
def add_variable(
|
|
2005
|
-
self, name: str, /, vtype: Vtype, *, upper: (float | type[Unbounded])
|
|
2005
|
+
self, name: str, /, vtype: Vtype, *, upper: (float | type[Unbounded] | None)
|
|
2006
2006
|
) -> Variable: ...
|
|
2007
2007
|
@overload
|
|
2008
2008
|
def add_variable(
|
|
@@ -2011,8 +2011,8 @@ class Model:
|
|
|
2011
2011
|
/,
|
|
2012
2012
|
vtype: Vtype,
|
|
2013
2013
|
*,
|
|
2014
|
-
lower: (float | type[Unbounded]),
|
|
2015
|
-
upper: (float | type[Unbounded]),
|
|
2014
|
+
lower: (float | type[Unbounded] | None),
|
|
2015
|
+
upper: (float | type[Unbounded] | None),
|
|
2016
2016
|
) -> Variable: ...
|
|
2017
2017
|
def add_variable(
|
|
2018
2018
|
self,
|
luna_quantum/transformations.pyi
CHANGED
|
@@ -2,7 +2,7 @@ from abc import abstractmethod
|
|
|
2
2
|
from enum import Enum
|
|
3
3
|
from typing import Any, Literal, overload
|
|
4
4
|
|
|
5
|
-
from aqmodels import Model, Sense, Solution, Timing
|
|
5
|
+
from aqmodels import Model, Sense, Solution, Timing, Vtype
|
|
6
6
|
|
|
7
7
|
class BasePass:
|
|
8
8
|
@property
|
|
@@ -105,6 +105,36 @@ class MaxBiasAnalysis(BasePass):
|
|
|
105
105
|
|
|
106
106
|
def __init__(self) -> None: ...
|
|
107
107
|
|
|
108
|
+
class BinarySpinAnalysis(BasePass):
|
|
109
|
+
"""An analysis pass noting down which variables need to be transformed."""
|
|
110
|
+
|
|
111
|
+
def __init__(self, vtype: Literal[Vtype.Binary, Vtype.Spin]) -> None: ...
|
|
112
|
+
@property
|
|
113
|
+
def vtype(self) -> Vtype:
|
|
114
|
+
"""Get the target vtype."""
|
|
115
|
+
...
|
|
116
|
+
|
|
117
|
+
class BinarySpinInfo:
|
|
118
|
+
@property
|
|
119
|
+
def old_vtype(self) -> Vtype:
|
|
120
|
+
"""Get the source vtype."""
|
|
121
|
+
...
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def new_vtype(self) -> Vtype:
|
|
125
|
+
"""Get the target vtype."""
|
|
126
|
+
...
|
|
127
|
+
|
|
128
|
+
@property
|
|
129
|
+
def map(self) -> dict[str, str]:
|
|
130
|
+
"""Get the variable name mapping."""
|
|
131
|
+
...
|
|
132
|
+
|
|
133
|
+
class BinarySpinPass(BasePass):
|
|
134
|
+
"""An transformation pass changing the denoted variables to target."""
|
|
135
|
+
|
|
136
|
+
def __init__(self) -> None: ...
|
|
137
|
+
|
|
108
138
|
class LogElement:
|
|
109
139
|
"""An element of the execution log of an intermediate representation (IR)."""
|
|
110
140
|
|
|
@@ -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.1rc12.dist-info/METADATA,sha256=pEDnj6mbjx4gb1REdYGhvpjeXA5i9UR78gn9PeAEF3Q,1534
|
|
2
|
+
luna_quantum-1.0.1rc12.dist-info/WHEEL,sha256=0ua6B-UmXPKizyn4Mhcu6S66EB8t6wxm_Wsw5H1bZYs,96
|
|
3
|
+
luna_quantum-1.0.1rc12.dist-info/licenses/LICENSE,sha256=bR2Wj7Il7KNny38LiDGrASo12StUfpReF--OewXD5cw,10349
|
|
4
|
+
luna_quantum-1.0.1rc12.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.cp312-win_amd64.pyd,sha256=
|
|
8
|
-
luna_quantum/_core.pyi,sha256=
|
|
7
|
+
luna_quantum/_core.cp312-win_amd64.pyd,sha256=6Nfao7ZfCcQIsXf55aGa_GC14V1c2QdND-ciWuZITNc,4642304
|
|
8
|
+
luna_quantum/_core.pyi,sha256=d2zeUCc3CYz-CRRhwnzKOJXvn65uNbF0IieiBZp1b-4,107948
|
|
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
|
|
@@ -243,7 +243,7 @@ luna_quantum/solve/usecases/solve_job_delete_usecase.py,sha256=a-lo9CoWjePo-aq7Y
|
|
|
243
243
|
luna_quantum/solve/usecases/solve_job_fetch_updates_usecase.py,sha256=9vcs3x5uLmBjkqSF12IMHrPjrPSodm0AHI0qPVAruNE,1735
|
|
244
244
|
luna_quantum/solve/usecases/solve_job_get_result_usecase.py,sha256=_62COwl-I1iGaX2lfrUnmZmPyKJZRNrJGtRVBiW1SYc,3636
|
|
245
245
|
luna_quantum/transformations.py,sha256=A00BqmKpZz1Ixrb77a_ynpuqtB7w-AlVshg-QHp2UwM,920
|
|
246
|
-
luna_quantum/transformations.pyi,sha256=
|
|
246
|
+
luna_quantum/transformations.pyi,sha256=ZuTF6cCy6vAcsqYuy7rBfNjHuYGay4vukrL-Zvobq7s,8053
|
|
247
247
|
luna_quantum/translator.py,sha256=5RDTzFzd5sw3JzxFQsHdZQWhz2KDl03nzik5dUHebHI,1157
|
|
248
248
|
luna_quantum/translator.pyi,sha256=kT-w2xtAP7HQm7ZtAZd1_9MiIc-skyKoc3Olo9F_KRA,27195
|
|
249
249
|
luna_quantum/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -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.1rc12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|