luna-quantum 0.0.16__py3-none-any.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.

Files changed (160) hide show
  1. luna_quantum-0.0.16.dist-info/LICENSE +201 -0
  2. luna_quantum-0.0.16.dist-info/METADATA +46 -0
  3. luna_quantum-0.0.16.dist-info/RECORD +160 -0
  4. luna_quantum-0.0.16.dist-info/WHEEL +4 -0
  5. luna_sdk/__init__.py +2 -0
  6. luna_sdk/constants.py +1 -0
  7. luna_sdk/controllers/__init__.py +2 -0
  8. luna_sdk/controllers/custom_login_client.py +61 -0
  9. luna_sdk/controllers/luna_platform_client.py +62 -0
  10. luna_sdk/controllers/luna_q.py +36 -0
  11. luna_sdk/controllers/luna_solve.py +49 -0
  12. luna_sdk/controllers/luna_transform.py +41 -0
  13. luna_sdk/error/__init__.py +0 -0
  14. luna_sdk/error/http_error_utils.py +100 -0
  15. luna_sdk/exceptions/__init__.py +1 -0
  16. luna_sdk/exceptions/encryption_exception.py +6 -0
  17. luna_sdk/exceptions/luna_exception.py +7 -0
  18. luna_sdk/exceptions/luna_server_exception.py +18 -0
  19. luna_sdk/exceptions/timeout_exception.py +10 -0
  20. luna_sdk/exceptions/transformation.py +11 -0
  21. luna_sdk/interfaces/__init__.py +5 -0
  22. luna_sdk/interfaces/circuit_repo_i.py +62 -0
  23. luna_sdk/interfaces/clients/__init__.py +0 -0
  24. luna_sdk/interfaces/clients/client_i.py +10 -0
  25. luna_sdk/interfaces/clients/luna_q_i.py +39 -0
  26. luna_sdk/interfaces/clients/luna_solve_i.py +37 -0
  27. luna_sdk/interfaces/clients/luna_transform_i.py +33 -0
  28. luna_sdk/interfaces/cplex_repo_i.py +121 -0
  29. luna_sdk/interfaces/info_repo_i.py +40 -0
  30. luna_sdk/interfaces/lp_repo_i.py +106 -0
  31. luna_sdk/interfaces/optimization_repo_i.py +262 -0
  32. luna_sdk/interfaces/qpu_token_repo_i.py +151 -0
  33. luna_sdk/interfaces/repository_i.py +14 -0
  34. luna_sdk/interfaces/solutions_repo_i.py +219 -0
  35. luna_sdk/py.typed +0 -0
  36. luna_sdk/repositories/__init__.py +4 -0
  37. luna_sdk/repositories/circuit_repo.py +104 -0
  38. luna_sdk/repositories/cplex_repo.py +118 -0
  39. luna_sdk/repositories/info_repo.py +45 -0
  40. luna_sdk/repositories/lp_repo.py +105 -0
  41. luna_sdk/repositories/optimization_repo.py +358 -0
  42. luna_sdk/repositories/qpu_token_repo.py +226 -0
  43. luna_sdk/repositories/solutions_repo.py +347 -0
  44. luna_sdk/schemas/__init__.py +4 -0
  45. luna_sdk/schemas/circuit.py +43 -0
  46. luna_sdk/schemas/create/__init__.py +3 -0
  47. luna_sdk/schemas/create/circuit.py +29 -0
  48. luna_sdk/schemas/create/optimization.py +22 -0
  49. luna_sdk/schemas/create/qpu_token.py +26 -0
  50. luna_sdk/schemas/create/qubo.py +19 -0
  51. luna_sdk/schemas/create/solution.py +15 -0
  52. luna_sdk/schemas/enums/__init__.py +0 -0
  53. luna_sdk/schemas/enums/circuit.py +14 -0
  54. luna_sdk/schemas/enums/optimization.py +10 -0
  55. luna_sdk/schemas/enums/problem.py +48 -0
  56. luna_sdk/schemas/enums/qpu_token_type.py +6 -0
  57. luna_sdk/schemas/enums/solution.py +8 -0
  58. luna_sdk/schemas/enums/status.py +10 -0
  59. luna_sdk/schemas/enums/timeframe.py +11 -0
  60. luna_sdk/schemas/error_message.py +12 -0
  61. luna_sdk/schemas/optimization.py +75 -0
  62. luna_sdk/schemas/optimization_formats/__init__.py +0 -0
  63. luna_sdk/schemas/optimization_formats/bqm.py +34 -0
  64. luna_sdk/schemas/optimization_formats/cqm.py +127 -0
  65. luna_sdk/schemas/optimization_formats/lp.py +9 -0
  66. luna_sdk/schemas/optimization_formats/qm.py +30 -0
  67. luna_sdk/schemas/pretty_base.py +49 -0
  68. luna_sdk/schemas/qpu_token.py +60 -0
  69. luna_sdk/schemas/representation.py +19 -0
  70. luna_sdk/schemas/rest/__init__.py +0 -0
  71. luna_sdk/schemas/rest/qpu_token/__init__.py +0 -0
  72. luna_sdk/schemas/rest/qpu_token/token_provider.py +45 -0
  73. luna_sdk/schemas/solution.py +227 -0
  74. luna_sdk/schemas/solver_info.py +11 -0
  75. luna_sdk/schemas/solver_parameters/aws/__init__.py +1 -0
  76. luna_sdk/schemas/solver_parameters/aws/qaoa.py +24 -0
  77. luna_sdk/schemas/solver_parameters/dwave/__init__.py +72 -0
  78. luna_sdk/schemas/solver_parameters/dwave/base.py +409 -0
  79. luna_sdk/schemas/solver_parameters/dwave/dialectic_search.py +31 -0
  80. luna_sdk/schemas/solver_parameters/dwave/kerberos.py +71 -0
  81. luna_sdk/schemas/solver_parameters/dwave/leap_hybrid_bqm.py +19 -0
  82. luna_sdk/schemas/solver_parameters/dwave/leap_hybrid_cqm.py +22 -0
  83. luna_sdk/schemas/solver_parameters/dwave/parallel_tempering.py +30 -0
  84. luna_sdk/schemas/solver_parameters/dwave/parallel_tempering_qpu.py +37 -0
  85. luna_sdk/schemas/solver_parameters/dwave/population_annealing.py +25 -0
  86. luna_sdk/schemas/solver_parameters/dwave/population_annealing_qpu.py +35 -0
  87. luna_sdk/schemas/solver_parameters/dwave/qaga.py +56 -0
  88. luna_sdk/schemas/solver_parameters/dwave/qbsolv_like_qpu.py +19 -0
  89. luna_sdk/schemas/solver_parameters/dwave/qbsolv_like_simulated_annealing.py +22 -0
  90. luna_sdk/schemas/solver_parameters/dwave/qbsolv_like_tabu_search.py +21 -0
  91. luna_sdk/schemas/solver_parameters/dwave/quantum_annealing.py +20 -0
  92. luna_sdk/schemas/solver_parameters/dwave/repeated_reverse_quantum_annealing.py +82 -0
  93. luna_sdk/schemas/solver_parameters/dwave/repeated_reverse_simulated_annealing.py +89 -0
  94. luna_sdk/schemas/solver_parameters/dwave/saga.py +61 -0
  95. luna_sdk/schemas/solver_parameters/dwave/simulated_annealing.py +74 -0
  96. luna_sdk/schemas/solver_parameters/dwave/tabu_search.py +72 -0
  97. luna_sdk/schemas/solver_parameters/fujitsu/__init__.py +20 -0
  98. luna_sdk/schemas/solver_parameters/fujitsu/base.py +47 -0
  99. luna_sdk/schemas/solver_parameters/fujitsu/digital_annealer_cpu.py +129 -0
  100. luna_sdk/schemas/solver_parameters/fujitsu/digital_annealer_v2.py +149 -0
  101. luna_sdk/schemas/solver_parameters/fujitsu/digital_annealer_v3.py +150 -0
  102. luna_sdk/schemas/solver_parameters/fujitsu/partial_config.py +177 -0
  103. luna_sdk/schemas/solver_parameters/ibm/__init__.py +4 -0
  104. luna_sdk/schemas/solver_parameters/ibm/qaoa.py +64 -0
  105. luna_sdk/schemas/solver_parameters/ibm/standard_parameters.py +27 -0
  106. luna_sdk/schemas/solver_parameters/ibm/vqe.py +49 -0
  107. luna_sdk/schemas/solver_parameters/qctrl/__init__.py +1 -0
  108. luna_sdk/schemas/solver_parameters/qctrl/qaoa.py +47 -0
  109. luna_sdk/schemas/transformations/__init__.py +2 -0
  110. luna_sdk/schemas/transformations/bqm.py +33 -0
  111. luna_sdk/schemas/transformations/matrix.py +12 -0
  112. luna_sdk/schemas/use_cases/__init__.py +54 -0
  113. luna_sdk/schemas/use_cases/arbitrage_edge_based.py +49 -0
  114. luna_sdk/schemas/use_cases/arbitrage_node_based.py +54 -0
  115. luna_sdk/schemas/use_cases/base.py +5 -0
  116. luna_sdk/schemas/use_cases/binary_integer_linear_programming.py +53 -0
  117. luna_sdk/schemas/use_cases/binary_paint_shop_problem.py +36 -0
  118. luna_sdk/schemas/use_cases/credit_scoring_feature_selection.py +39 -0
  119. luna_sdk/schemas/use_cases/dynamic_portfolio_optimization.py +63 -0
  120. luna_sdk/schemas/use_cases/exact_cover.py +50 -0
  121. luna_sdk/schemas/use_cases/flight_gate_assignment.py +78 -0
  122. luna_sdk/schemas/use_cases/graph_coloring.py +41 -0
  123. luna_sdk/schemas/use_cases/graph_isomorphism.py +53 -0
  124. luna_sdk/schemas/use_cases/graph_partitioning.py +45 -0
  125. luna_sdk/schemas/use_cases/hamiltonian_cycle.py +48 -0
  126. luna_sdk/schemas/use_cases/induced_subgraph_isomorphism.py +49 -0
  127. luna_sdk/schemas/use_cases/job_shop_scheduling.py +43 -0
  128. luna_sdk/schemas/use_cases/k_medoids_clustering.py +48 -0
  129. luna_sdk/schemas/use_cases/knapsack_integer_weights.py +55 -0
  130. luna_sdk/schemas/use_cases/linear_regression.py +59 -0
  131. luna_sdk/schemas/use_cases/lmwcs.py +80 -0
  132. luna_sdk/schemas/use_cases/longest_path.py +49 -0
  133. luna_sdk/schemas/use_cases/market_graph_clustering.py +60 -0
  134. luna_sdk/schemas/use_cases/max2sat.py +51 -0
  135. luna_sdk/schemas/use_cases/max3sat.py +52 -0
  136. luna_sdk/schemas/use_cases/max_clique.py +59 -0
  137. luna_sdk/schemas/use_cases/max_cut.py +47 -0
  138. luna_sdk/schemas/use_cases/max_independent_set.py +36 -0
  139. luna_sdk/schemas/use_cases/minimal_maximal_matching.py +53 -0
  140. luna_sdk/schemas/use_cases/minimal_spanning_tree.py +87 -0
  141. luna_sdk/schemas/use_cases/minimum_vertex_cover.py +44 -0
  142. luna_sdk/schemas/use_cases/number_partitioning.py +31 -0
  143. luna_sdk/schemas/use_cases/portfolio_optimization.py +45 -0
  144. luna_sdk/schemas/use_cases/portfolio_optimization_ib_tv.py +62 -0
  145. luna_sdk/schemas/use_cases/quadratic_assignment.py +48 -0
  146. luna_sdk/schemas/use_cases/quadratic_knapsack.py +47 -0
  147. luna_sdk/schemas/use_cases/satellite_scheduling.py +72 -0
  148. luna_sdk/schemas/use_cases/sensor_placement.py +57 -0
  149. luna_sdk/schemas/use_cases/set_cover.py +55 -0
  150. luna_sdk/schemas/use_cases/set_packing.py +53 -0
  151. luna_sdk/schemas/use_cases/set_partitioning.py +51 -0
  152. luna_sdk/schemas/use_cases/subgraph_isomorphism.py +56 -0
  153. luna_sdk/schemas/use_cases/subset_sum.py +36 -0
  154. luna_sdk/schemas/use_cases/support_vector_machine.py +63 -0
  155. luna_sdk/schemas/use_cases/traffic_flow.py +34 -0
  156. luna_sdk/schemas/use_cases/travelling_salesman_problem.py +52 -0
  157. luna_sdk/schemas/use_cases/type_aliases.py +11 -0
  158. luna_sdk/schemas/use_cases/weighted_max_cut.py +36 -0
  159. luna_sdk/utils/__init__.py +0 -0
  160. luna_sdk/utils/qpu_tokens.py +52 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2024 Aqarios GmbH
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: luna-quantum
3
+ Version: 0.0.16
4
+ Summary: Python SDK for Aqarios' Luna Platform
5
+ Home-page: https://aqarios.com/
6
+ License: Apache-2.0
7
+ Keywords: aqarios,luna,quantum computing,quantum optimization,optimization,sdk
8
+ Author: Aqarios
9
+ Author-email: pypi@aqarios.com
10
+ Requires-Python: >=3.8.0,<4
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Scientific/Engineering
20
+ Provides-Extra: examples
21
+ Provides-Extra: transformations
22
+ Requires-Dist: dimod (>=0.12.14,<0.13.0)
23
+ Requires-Dist: docplex (>=2.25.236,<3.0.0) ; extra == "transformations" or extra == "examples"
24
+ Requires-Dist: dwave-neal (>=0.6.0,<0.7.0) ; extra == "transformations" or extra == "examples"
25
+ Requires-Dist: httpx (>=0.26.0,<0.27.0)
26
+ Requires-Dist: networkx (>=2.7.1,<3.0.0) ; extra == "examples"
27
+ Requires-Dist: pydantic (>=2.6.1,<3.0.0)
28
+ Requires-Dist: qiskit (>=0.45.1,<0.46.0) ; extra == "examples"
29
+ Requires-Dist: qiskit-ibm-runtime (>=0.18.0,<0.19.0) ; extra == "examples"
30
+ Requires-Dist: qiskit-optimization[cplex] (>=0.6.0,<0.7.0) ; extra == "transformations" or extra == "examples"
31
+ Requires-Dist: rich (>=13.7.1,<14.0.0) ; extra == "examples"
32
+ Project-URL: Documentation, https://docs.aqarios.com/
33
+ Description-Content-Type: text/markdown
34
+
35
+ # Luna Quantum SDK
36
+ Luna is a platform developed by [Aqarios](https://aqarios.com/) designed to facilitate access to and utilization of quantum computing for both industry and academia. The SDK serves as a Python wrapper for interfacing with the API, offering a more intuitive means of engaging with the platform. This library grants access to the LunaSolve and LunaQ services.
37
+
38
+ # Installation
39
+ The package is released on PyPI and can be installed via pip:
40
+ ```
41
+ pip install --upgrade luna-quantum
42
+ ```
43
+
44
+ # Getting Started
45
+ For more details and tutorials on how to use the Luna SDK, refer to the documentation located here: [Aqarios Luna](https://docs.aqarios.com/).
46
+
@@ -0,0 +1,160 @@
1
+ luna_sdk/__init__.py,sha256=9s6JkcSeRF4WtFo80TelzXXHFhX8w7fXiaJr59V9ScM,100
2
+ luna_sdk/constants.py,sha256=MmbYlLrwDYmahL0yMtC2BUNVeSLAitVqTG31PJZTTv4,33
3
+ luna_sdk/controllers/__init__.py,sha256=ivTapH8np5mQeVEevxwsWawCtVSG4Wep72rNp7nEZXw,60
4
+ luna_sdk/controllers/custom_login_client.py,sha256=PT9daNoqsbID9G2SZ3dhgMuqDBnnjfmxCGEPlLDnAms,2063
5
+ luna_sdk/controllers/luna_platform_client.py,sha256=CiGn8DIIdxQ9gCNWhk8KGGvXW1gEIwhwYtVYq0XdxzU,1671
6
+ luna_sdk/controllers/luna_q.py,sha256=-6Wwx-tvRsAdDWZgkXG1fE-4vujXcnaDG4oYYTZ6eXo,1066
7
+ luna_sdk/controllers/luna_solve.py,sha256=TLhR7y5yKwMB6fztobDfhQ_igDs29a4EAT546oPA2u0,1660
8
+ luna_sdk/controllers/luna_transform.py,sha256=n7frEqa-Fcgo2R1SD8BmfjqLmImDmIWo4BS1vDg5m7s,1161
9
+ luna_sdk/error/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ luna_sdk/error/http_error_utils.py,sha256=1-Q-W-_RaHKlA2zOXJLLaZamBWNQpf9Oc4SAX4hJdEk,3317
11
+ luna_sdk/exceptions/__init__.py,sha256=DSKaPN374rR2zccmpLvlqntxDsjFwgSexXtva795ae0,52
12
+ luna_sdk/exceptions/encryption_exception.py,sha256=qe38EPRen4c63ti6bbA3jXl4PK48Ommi_cb2Lvhn8tg,264
13
+ luna_sdk/exceptions/luna_exception.py,sha256=m7U3qFpP9Sc77Z3RG9I4bQXsJSQuVeBLvfHQWziC9sQ,114
14
+ luna_sdk/exceptions/luna_server_exception.py,sha256=y4J1TzfMF_kmuh5g8hpP2k_SnV0acaxks8lg5EOvo0I,639
15
+ luna_sdk/exceptions/timeout_exception.py,sha256=ppEGsUk-6NtBy2-RyBfzjR1IhDmIwPWwg03BOsET4OA,367
16
+ luna_sdk/exceptions/transformation.py,sha256=lykEeWonvfvWAyU2DoKzR-GtFc-KEAvrfWlnWT9ylqc,381
17
+ luna_sdk/interfaces/__init__.py,sha256=WwAzuNWP6SNMJk_U_Hqc5U2mRsG2_m-sSQZPMYUDWfY,213
18
+ luna_sdk/interfaces/circuit_repo_i.py,sha256=0NdPrOUSP2DStlOe4HsOjlDmD2HYseE68W-1PgmAwic,2109
19
+ luna_sdk/interfaces/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
+ luna_sdk/interfaces/clients/client_i.py,sha256=_I8mTIfavI3Yv7TPD9HsTxF3uI4WzDucFvgEb2EtOAo,185
21
+ luna_sdk/interfaces/clients/luna_q_i.py,sha256=_DHDirve9yoVO8zb5i3WkTMx-LPu9TtasjF4OUfCaRw,765
22
+ luna_sdk/interfaces/clients/luna_solve_i.py,sha256=UTqDpNPnkFgxFAsA555xMFWq42GTwxGgDJUFcRMi2R8,955
23
+ luna_sdk/interfaces/clients/luna_transform_i.py,sha256=xpS2ODs83rICbA3oAKzf80rpBezZO924WI-P6NzIv2M,676
24
+ luna_sdk/interfaces/cplex_repo_i.py,sha256=vpO5ON8GIpqCihYiNP5mbq3A0wjqdbJJBU0-l7yLg0Y,3335
25
+ luna_sdk/interfaces/info_repo_i.py,sha256=ah6zBj66z-i0vxZcdUShQxMz_nTMw8xX5j-wiXsIxz8,1145
26
+ luna_sdk/interfaces/lp_repo_i.py,sha256=1EC1f8P8dLY0wlSqjt0Vp1_2RERIhikvalzqqfhq2lc,2669
27
+ luna_sdk/interfaces/optimization_repo_i.py,sha256=qhraGjs6gg5PsZmzDCP4GD-M-R5wwlZthMO0ppAnpjc,6977
28
+ luna_sdk/interfaces/qpu_token_repo_i.py,sha256=vgT-N-JfcDJ2YqmlbamYGE_wm8SyYSGmQcfrCael-Wc,4486
29
+ luna_sdk/interfaces/repository_i.py,sha256=vJz8pbggkuLLC333qzjepj3TMPh49LUnyh3pJDlcGi0,287
30
+ luna_sdk/interfaces/solutions_repo_i.py,sha256=f1VksIBcmRvk_fYZdUk9fH54VbiTvVcVbcDh91n_0Io,6907
31
+ luna_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
+ luna_sdk/repositories/__init__.py,sha256=HxD02fpzlcIt5YkBHd7LwIp_eE6eFuAz2VDnlrakwJQ,169
33
+ luna_sdk/repositories/circuit_repo.py,sha256=sm9GxNScLDNkb7lK6cwDjEfsPjNfLtnsbktN_vcwGIs,3768
34
+ luna_sdk/repositories/cplex_repo.py,sha256=Bzz7T-jm_NMywHljabrXaNNV95Fekc_iX-g4_FUVVDI,4804
35
+ luna_sdk/repositories/info_repo.py,sha256=x6ofT6GHdGN5SZu2LroILOpeHf0axOcRpeW-ax9f3mo,1266
36
+ luna_sdk/repositories/lp_repo.py,sha256=bQapY09wXNsEmdrYDDabRxwQlbNei03otXUG3UzYDRs,4194
37
+ luna_sdk/repositories/optimization_repo.py,sha256=ARmgc32V70qwiJELXs38bGadAJHv4wt9UMmXbdOR7MU,10463
38
+ luna_sdk/repositories/qpu_token_repo.py,sha256=7dWt1NvEcMmCVDlX304H1kzkNi97uriJaXN7UUjHj64,7270
39
+ luna_sdk/repositories/solutions_repo.py,sha256=ZKIafOjBIoQIg6EdNNis9FYO5PhkNC0urp9XB6t0IdQ,11423
40
+ luna_sdk/schemas/__init__.py,sha256=lTix3zUl2Z8ZLA2BTF4pls5S-kqlVZ3cIdAZwGxPSUI,248
41
+ luna_sdk/schemas/circuit.py,sha256=r3Bv0lyhrvFoI3Gf8eq-PS3kyivTWY3IJmRH0X2LoCk,1067
42
+ luna_sdk/schemas/create/__init__.py,sha256=7G2yflImpZJxHn3l4Op5CsQAxwKGmvWJSttq9kmiHq0,90
43
+ luna_sdk/schemas/create/circuit.py,sha256=vV2r6xk24_aHe9oo0dt3wVeOHcyD02lXNR-YyjfQoEE,755
44
+ luna_sdk/schemas/create/optimization.py,sha256=Z9pKoD0y6BjKvl8gQ6XK76bdvq8etvcoNU4RwxnUvHA,759
45
+ luna_sdk/schemas/create/qpu_token.py,sha256=XE3WoNL3Q8QFEDshXoSrAKQXgT_zthKvihKqJHi8250,492
46
+ luna_sdk/schemas/create/qubo.py,sha256=5Y_jWicEnoV82Ubc-f0a_qy9hCuPBumhsGWY8wzMIuA,293
47
+ luna_sdk/schemas/create/solution.py,sha256=Dy3CLfW2ANYGV-ABvAI0kPDejYnhI0NZSgWX6oX7Lx4,395
48
+ luna_sdk/schemas/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
+ luna_sdk/schemas/enums/circuit.py,sha256=smz_DouDo_K8rs4N5aIOj2PS9w6DX1CFYX0bv6f6JFw,252
50
+ luna_sdk/schemas/enums/optimization.py,sha256=K-lv6PLJ4qo4vNVEKHsLU1rEv-QnFfl_FlN1xqZOXUc,170
51
+ luna_sdk/schemas/enums/problem.py,sha256=HWL6Lc1pqPtJ0J-rXkUTL6WHe2fiBY1ctuZvDnx1hmM,754
52
+ luna_sdk/schemas/enums/qpu_token_type.py,sha256=UwaZoaCRAc2x_sLszRP55RwuU03u5GlJ-oK0u84Tbgo,119
53
+ luna_sdk/schemas/enums/solution.py,sha256=Vax6MX62UDwApbwzf1nrhuFWw1Iiq77gUch7_1roCYo,114
54
+ luna_sdk/schemas/enums/status.py,sha256=KHaOgePqB3GNhFYLo2Sp-JAEXBPN_ZVDmj2WobrT5N4,204
55
+ luna_sdk/schemas/enums/timeframe.py,sha256=vwoZsgAYGvqF67qdcXMEnHkqbiRcVY5uK-4-ZTFcurI,238
56
+ luna_sdk/schemas/error_message.py,sha256=svCs-mWQsp3BMEhzZFqskbyP6iS78eVUOPaiWFc4sEQ,307
57
+ luna_sdk/schemas/optimization.py,sha256=D33gwLReCjMTKCs8b28LESb0bSkEvBioQtgHch7G22k,1932
58
+ luna_sdk/schemas/optimization_formats/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
59
+ luna_sdk/schemas/optimization_formats/bqm.py,sha256=rrmiZYe_iEdgBFusJeJfY8PVSxgf1Wv79FgMQUm2YVs,910
60
+ luna_sdk/schemas/optimization_formats/cqm.py,sha256=VZiNJy4yc-8o3gHoH0E-uaNOHj7UfAGCqznTzKBv0NQ,4257
61
+ luna_sdk/schemas/optimization_formats/lp.py,sha256=iXFDBmHktHsYc79ngSraylCpa-EVMFwN01788fnjFzY,175
62
+ luna_sdk/schemas/optimization_formats/qm.py,sha256=yUEZF7FOvXv1Mb5FMiX1q0Rk5w2ltrh7HInfFEiVSXU,912
63
+ luna_sdk/schemas/pretty_base.py,sha256=wYF-jgUpHIfVk00ndBs8qbUVxPJdpL52NC6Pq8krDyc,1603
64
+ luna_sdk/schemas/qpu_token.py,sha256=K8P634yQ7ClAhQtNS6BfNU-TN8q1XeGcWXiWh4eQ-Gw,1474
65
+ luna_sdk/schemas/representation.py,sha256=0RKVV0XxHOJZ1o9grxTq5ri3cGLziyCFObDwQuXIOEY,364
66
+ luna_sdk/schemas/rest/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
67
+ luna_sdk/schemas/rest/qpu_token/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
68
+ luna_sdk/schemas/rest/qpu_token/token_provider.py,sha256=yDD17uIuio5FisarDBiGQwMpl-_QXRYttuFAZ9w-V00,1430
69
+ luna_sdk/schemas/solution.py,sha256=Bu1pcbIaaJhtU_r3EPOZUOWyWBZ9550c4RZR8wJULo8,6823
70
+ luna_sdk/schemas/solver_info.py,sha256=vMxkJTo87pa12sY3RfQjjAG8XOUOOkYbgZ8i42rwOKY,198
71
+ luna_sdk/schemas/solver_parameters/aws/__init__.py,sha256=CXjKWzgnP_d1_RvQUfWyaaWvsZ1FxLJN5K61QmRa-uw,33
72
+ luna_sdk/schemas/solver_parameters/aws/qaoa.py,sha256=XQG-incxFKngI3XvC1okG2WIxIpCMW_7enx42ECraNo,1000
73
+ luna_sdk/schemas/solver_parameters/dwave/__init__.py,sha256=yHsBQ5d1mCS90Y1JcTCOPjNCrEiGT23wI9GyPnYlIqo,2453
74
+ luna_sdk/schemas/solver_parameters/dwave/base.py,sha256=CFZTqLHKtuIyzr3GxYSlO_IK_EvO2-SOFxIH4MJ1oXE,17168
75
+ luna_sdk/schemas/solver_parameters/dwave/dialectic_search.py,sha256=mu1ehA1ffCr56tdGdnh35lusGMgL6TK0vTsSMGvPmsE,1136
76
+ luna_sdk/schemas/solver_parameters/dwave/kerberos.py,sha256=mpVgvanbSuZlauQOp4xP9ZoZyz-PHfxLE5aAU-aYwWk,2626
77
+ luna_sdk/schemas/solver_parameters/dwave/leap_hybrid_bqm.py,sha256=IFuJAHVPmBXtwg95H3RRxxPKr9jzT8meN98e-0nB1xc,588
78
+ luna_sdk/schemas/solver_parameters/dwave/leap_hybrid_cqm.py,sha256=7IsLRbP5qhk7SsNtITvDLWS8hd-652RIt-s13qpXfwY,678
79
+ luna_sdk/schemas/solver_parameters/dwave/parallel_tempering.py,sha256=jIBF59z82nanqLcVuXXrCklyvc582q66KK7MXgEl9S0,1075
80
+ luna_sdk/schemas/solver_parameters/dwave/parallel_tempering_qpu.py,sha256=R36Q1kllta7tE_s6w93kctSUurTBjU3MaDJrlGigOac,1149
81
+ luna_sdk/schemas/solver_parameters/dwave/population_annealing.py,sha256=o6je_oeDtdomJrlR-VWTXamJD73sB30PCcDi1IoXE1M,996
82
+ luna_sdk/schemas/solver_parameters/dwave/population_annealing_qpu.py,sha256=monnhw2ieWLbmwcNTa77epEJ1M0Vbb4g3vkehBBGzuQ,1258
83
+ luna_sdk/schemas/solver_parameters/dwave/qaga.py,sha256=9n9FYZFbdsnIddQ8Fk525mpBuFWMvvf7870TuDDQREw,2429
84
+ luna_sdk/schemas/solver_parameters/dwave/qbsolv_like_qpu.py,sha256=jA391aDiMoW-T6GBHp9WwGTodpZnJcopceUB51Q_Pws,506
85
+ luna_sdk/schemas/solver_parameters/dwave/qbsolv_like_simulated_annealing.py,sha256=5Nba2XKIqQJtO7cft51tla-HYXg_MjTicIM9G4BZHO8,928
86
+ luna_sdk/schemas/solver_parameters/dwave/qbsolv_like_tabu_search.py,sha256=5qRDHe8ODalv65CyB_P5SDyFpZPgDcrm-EpnfYd7cHw,792
87
+ luna_sdk/schemas/solver_parameters/dwave/quantum_annealing.py,sha256=uzQMb-jPDfvSYX9WGGiLqtehMtIiqt31WALk5iFZzf8,583
88
+ luna_sdk/schemas/solver_parameters/dwave/repeated_reverse_quantum_annealing.py,sha256=0SwHroc4l5sMZxuWJCcEFqzkJAhmBoAW9pl4ZllvOAg,3686
89
+ luna_sdk/schemas/solver_parameters/dwave/repeated_reverse_simulated_annealing.py,sha256=W3zu7g67yrDbSOeO3TLvdlvgI8mYobGeHBso8FR0IIY,4500
90
+ luna_sdk/schemas/solver_parameters/dwave/saga.py,sha256=sXrWRsl7K8Xn_Ne1H5Mb9MwdLMr27HGuP4X8YpqkHR4,3123
91
+ luna_sdk/schemas/solver_parameters/dwave/simulated_annealing.py,sha256=cU2UoN8xo3iM34LJhaLc-tYsCo-RqpOstiktEi79QRU,4047
92
+ luna_sdk/schemas/solver_parameters/dwave/tabu_search.py,sha256=bNMPgjhfBurc4pwp25orPdXaJPG63GEcjUJzTPkEsdY,3898
93
+ luna_sdk/schemas/solver_parameters/fujitsu/__init__.py,sha256=V4CSTiNSmtBvNuQpxiTZqX9T-oV4M8hZGQ_eO5Ro8vU,549
94
+ luna_sdk/schemas/solver_parameters/fujitsu/base.py,sha256=fqYHgl2JqpKnmMRlCMMaywWo6P1aTVbUsYQ-BpMQbb4,1736
95
+ luna_sdk/schemas/solver_parameters/fujitsu/digital_annealer_cpu.py,sha256=EBPE7mwtUNs5CmyVkdWV9jQT_YnW8FWsYQ0VyCHBVNM,9747
96
+ luna_sdk/schemas/solver_parameters/fujitsu/digital_annealer_v2.py,sha256=SJb4Uffj7WmBf1-9ai0dTj1WE5A7A3pVhV9FXAcmJ-8,10343
97
+ luna_sdk/schemas/solver_parameters/fujitsu/digital_annealer_v3.py,sha256=0iQBGLtT8SJaR6iKwoNytANtnZuoTtQmmc-jGSFCntU,12743
98
+ luna_sdk/schemas/solver_parameters/fujitsu/partial_config.py,sha256=1QI370Pa91JM_2c_CeYtpMkV3vG5dGq-zQv8BtLwSUo,8084
99
+ luna_sdk/schemas/solver_parameters/ibm/__init__.py,sha256=KGH8Dx8mNe2qKeIS6emcuibbVzqUETXDsQk9OwemyuQ,165
100
+ luna_sdk/schemas/solver_parameters/ibm/qaoa.py,sha256=71ogy-ViA2bggVf4-GglVW-LVn9yKDNWEoKs09ApI5A,2453
101
+ luna_sdk/schemas/solver_parameters/ibm/standard_parameters.py,sha256=6p1bP38bCq4IZjKEg24Jqriss6uDZuwmvMblwgAH-3Q,820
102
+ luna_sdk/schemas/solver_parameters/ibm/vqe.py,sha256=2uCgqHJHAmRO53wP4YKLkFVVwHhThkgk3A9CB1tQOFM,2198
103
+ luna_sdk/schemas/solver_parameters/qctrl/__init__.py,sha256=mB7Rl-9cNCiJ7ueGXEHazSecxlOI3CVZd1AD-xKqzJY,73
104
+ luna_sdk/schemas/solver_parameters/qctrl/qaoa.py,sha256=QcpTXd3rMmICLuE4l_38X_VA9wL3xc_6Lrh30wExfyA,1901
105
+ luna_sdk/schemas/transformations/__init__.py,sha256=3M2rkSeGCuEHvL9joHjA34xiXgocpvpCey4GkywkW58,90
106
+ luna_sdk/schemas/transformations/bqm.py,sha256=n3D8rVFutJ3ChWNakqfQaBMcTTldaF3bFQsYyDo-mt4,679
107
+ luna_sdk/schemas/transformations/matrix.py,sha256=SbPzVQUm7racTECkgRLeiUreaNwaa_RXZI3IivnpKw0,251
108
+ luna_sdk/schemas/use_cases/__init__.py,sha256=kMbqPhFtT2lHRdr1I_yf7fVlQO1OG6HNrI-7uJbISao,2418
109
+ luna_sdk/schemas/use_cases/arbitrage_edge_based.py,sha256=o7_Sql2mSNDavC50R-587qKA9u7v0ye8EPCx7AaCaGg,1782
110
+ luna_sdk/schemas/use_cases/arbitrage_node_based.py,sha256=FshvWP6zbwE0hrK1NwmtcQxxrSDb9qvYVFtfiqX2u-4,1978
111
+ luna_sdk/schemas/use_cases/base.py,sha256=NZRv5c6CZty39XDcIAGSuUFEpgnbP48Xce2v5KCSWGQ,95
112
+ luna_sdk/schemas/use_cases/binary_integer_linear_programming.py,sha256=d32uvYVP0d4dxDwN6C1cD-_K81EDaExk6gTsizfpTns,1218
113
+ luna_sdk/schemas/use_cases/binary_paint_shop_problem.py,sha256=qC2IvOu6MJfQI8W8Y6H2wzq975uprZNP6mGyiVPcgvo,886
114
+ luna_sdk/schemas/use_cases/credit_scoring_feature_selection.py,sha256=Yj7GImWJ7HjI8DAjV006eyhncvCC9JBhv_4uwJ4FMZE,1108
115
+ luna_sdk/schemas/use_cases/dynamic_portfolio_optimization.py,sha256=YnBZPxRV7q7Lzu80XYf23xMRZ6dvuudtwFJ0iWVVPoE,2284
116
+ luna_sdk/schemas/use_cases/exact_cover.py,sha256=_l-YNGDYYHYwgAXZvFs6BfyWl5uEW1yUHCzRXjI5wtM,1379
117
+ luna_sdk/schemas/use_cases/flight_gate_assignment.py,sha256=_ys6tX9ezBDTb-vpCLa9tTKvwwKZyQZLpfKqVsWjRjE,2746
118
+ luna_sdk/schemas/use_cases/graph_coloring.py,sha256=AOY6ipn4TA96kbmqIpo-EpBFuqSndgblkyIRDq9Uihc,1104
119
+ luna_sdk/schemas/use_cases/graph_isomorphism.py,sha256=ea0KqfbaCSQOyM-7Yr40llWdc4LHiHTvKsndGXwbNf0,1782
120
+ luna_sdk/schemas/use_cases/graph_partitioning.py,sha256=q_CfwGyN-DvjWR9F0-sxo0B0WJRdZ6P7NchjOIFbscQ,1443
121
+ luna_sdk/schemas/use_cases/hamiltonian_cycle.py,sha256=U2P6W2ik7I3hlfekMZoZsAh89Qz-H0xsc7bb0gELbs0,1480
122
+ luna_sdk/schemas/use_cases/induced_subgraph_isomorphism.py,sha256=FIWNo0ptTvJTjaaPO3SAsYkL55k3C9z2w3VgBz3cPzg,1746
123
+ luna_sdk/schemas/use_cases/job_shop_scheduling.py,sha256=BZ3JBmdJUVe9274IcUmOPFjBrfT7ey6ANhWVrWqW8b4,1374
124
+ luna_sdk/schemas/use_cases/k_medoids_clustering.py,sha256=rTOR6OpEcc76A7P_gEM_FPQP89yx8Wwg77iwBFxXid4,1359
125
+ luna_sdk/schemas/use_cases/knapsack_integer_weights.py,sha256=phqT9uYWM0xpBWi0z-kEnmoB8DbVxzV6P41sNqXfqB4,1599
126
+ luna_sdk/schemas/use_cases/linear_regression.py,sha256=Wu4g4SbPxm5ANlWgHkoaY6M2jG6zAiM0lKkyBupLl8M,1893
127
+ luna_sdk/schemas/use_cases/lmwcs.py,sha256=1VKv9LU8XEPqjBqXAfjfH6PYB4upv8-3E9WAkjbZIvE,3389
128
+ luna_sdk/schemas/use_cases/longest_path.py,sha256=0Z-eBX_qc_PbHN5l27I2qnadq1ta8jdou0Li8lctXyM,1355
129
+ luna_sdk/schemas/use_cases/market_graph_clustering.py,sha256=GY33c3zVt2v5584IwAq1xkrNoVrF4HB7GVZcxtaTLRc,2353
130
+ luna_sdk/schemas/use_cases/max2sat.py,sha256=_4y72WRN0_157QGhQEmNrgU1hxF5bUaIZMKKHNPTa2k,1564
131
+ luna_sdk/schemas/use_cases/max3sat.py,sha256=-2zEDfjSlbnwyzHoCd2CsEmR5M-SLGq-9M3hkrpdqq8,1900
132
+ luna_sdk/schemas/use_cases/max_clique.py,sha256=I-u-RsGcJbi8avAA8YI122NMtx5zJn-psoc2_XnxCoQ,1942
133
+ luna_sdk/schemas/use_cases/max_cut.py,sha256=kfQxg11IcZCmtljH4T-VNe-OOF933jce4PZ7WCA6hpA,1306
134
+ luna_sdk/schemas/use_cases/max_independent_set.py,sha256=rjNk_KLu4N6OCVAcQozg3jg3O49dCWhUBg7scOBoB4A,1063
135
+ luna_sdk/schemas/use_cases/minimal_maximal_matching.py,sha256=m6nBU_pPukp08NeahgCCnkO7iL1HLV0v8vJRGDqoQQM,1658
136
+ luna_sdk/schemas/use_cases/minimal_spanning_tree.py,sha256=d9CeoNvWHcetHx5XPqX7Fh3jRw9Ods67L2Z_0hRYSwE,3341
137
+ luna_sdk/schemas/use_cases/minimum_vertex_cover.py,sha256=_YD7u_Rrlu91W6e5NxPUlYVW9BVWeiB3S46GQtWkhy8,1322
138
+ luna_sdk/schemas/use_cases/number_partitioning.py,sha256=SFwrQLFwbIPIgsvW5E0--JlOqnAYLHMKB8Nk3keZowY,662
139
+ luna_sdk/schemas/use_cases/portfolio_optimization.py,sha256=4XX83XiOLSb3DpRZH4H9LUdxCIC0shztRstnE5gatRE,1096
140
+ luna_sdk/schemas/use_cases/portfolio_optimization_ib_tv.py,sha256=TFox1D8bE7Iozwfnrky3q6FwFmv2WxmH_QDy2lgJvSI,1847
141
+ luna_sdk/schemas/use_cases/quadratic_assignment.py,sha256=grpBxkBoRz0oKaOCzRHqgEbrRDl-1330pF742Bcqm0E,1460
142
+ luna_sdk/schemas/use_cases/quadratic_knapsack.py,sha256=0vz8tgM_HXJr5f10YULVR5OAE8zcO5ScYDB2cGGN_Cc,1247
143
+ luna_sdk/schemas/use_cases/satellite_scheduling.py,sha256=pSTk4Yh21ELV1fhkfjLNo09G-fYbXFAnZGfN0f7Oo_E,2633
144
+ luna_sdk/schemas/use_cases/sensor_placement.py,sha256=diynJVRDPg1Vc4Zsw5tbUQxvKF-ao_mjt8OHrtWxo-s,1754
145
+ luna_sdk/schemas/use_cases/set_cover.py,sha256=YTY9RbTpu5MoqC_bkOTrkYR7q2ebjPFRKeYQxGjGlv4,1680
146
+ luna_sdk/schemas/use_cases/set_packing.py,sha256=vqE1PP85VsDyAGza8Jr2ycyGwipaZDjtBRbQSD6L9ZM,1582
147
+ luna_sdk/schemas/use_cases/set_partitioning.py,sha256=7ifcy3Y0_8GpfiRAl-svdLZRv8BzilKgb3HSVfo4ChE,1321
148
+ luna_sdk/schemas/use_cases/subgraph_isomorphism.py,sha256=-_oNd-H7hYqcO7yOYcG4JcDKF9u4ISSDka11jHpChpk,2023
149
+ luna_sdk/schemas/use_cases/subset_sum.py,sha256=wyQPv0YYcaYe-CMGS55X4YubHQKE7Lw3a4pV3gv1FPE,852
150
+ luna_sdk/schemas/use_cases/support_vector_machine.py,sha256=woxIN37vzEBf3Se4ibAtaZomo1L6mYz-lFlkB04hQYI,2082
151
+ luna_sdk/schemas/use_cases/traffic_flow.py,sha256=wWDOPsFOYw3RxOh4Q8NLOm270pvuIj0viskEeERbMLY,1031
152
+ luna_sdk/schemas/use_cases/travelling_salesman_problem.py,sha256=PnqDf4CihQB4PRZd3BNxT1W2bizmQ_h7dccxrp99qLc,1701
153
+ luna_sdk/schemas/use_cases/type_aliases.py,sha256=4qR7uRU77aTGC5x1q8Vi_zgTrpVMhVbpnSQovzSV-Rs,257
154
+ luna_sdk/schemas/use_cases/weighted_max_cut.py,sha256=fpAns-MiONHvotI-lSSQvoxW7lx9OUzBtihx3GbGuyw,1022
155
+ luna_sdk/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
156
+ luna_sdk/utils/qpu_tokens.py,sha256=XpUNI102TLshfR85ZxvSFmXmH1fb1JAI8NKlIiuWEqc,1535
157
+ luna_quantum-0.0.16.dist-info/LICENSE,sha256=rwwuFPLz36oRvjWu2oEeX42Qtn9gmbh7zRC2OqCFNaI,11342
158
+ luna_quantum-0.0.16.dist-info/METADATA,sha256=b-7jJ29ly5fCJf4gUJWPJON8VgwMyGzYpKHS9JIOgIw,2263
159
+ luna_quantum-0.0.16.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
160
+ luna_quantum-0.0.16.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: poetry-core 1.9.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
luna_sdk/__init__.py ADDED
@@ -0,0 +1,2 @@
1
+ from luna_sdk.controllers.luna_solve import LunaSolve
2
+ from luna_sdk.controllers.luna_q import LunaQ
luna_sdk/constants.py ADDED
@@ -0,0 +1 @@
1
+ LUNA_SDK_VERSION: str = "0.0.11"
@@ -0,0 +1,2 @@
1
+ from .luna_q import LunaQ
2
+ from .luna_solve import LunaSolve
@@ -0,0 +1,61 @@
1
+ import logging
2
+ from http.client import UNAUTHORIZED
3
+
4
+ from httpx import Client, ReadTimeout, Response
5
+
6
+ from luna_sdk.constants import LUNA_SDK_VERSION
7
+ from luna_sdk.error.http_error_utils import HttpErrorUtils
8
+ from luna_sdk.exceptions.timeout_exception import TimeoutException
9
+
10
+
11
+ class CustomLoginClient(Client):
12
+ _login_url: str
13
+ _email: str
14
+ _password: str
15
+ _bearer_token: str
16
+
17
+ _user_agent: str = f"LunaSDK/{LUNA_SDK_VERSION}"
18
+
19
+ def __init__(self, email: str, password: str, login_url: str, *args, **kwargs):
20
+ super().__init__(*args, **kwargs)
21
+ self._email = email
22
+ self._password = password
23
+ self._login_url = login_url
24
+
25
+ self.headers["User-Agent"] = self._user_agent
26
+
27
+ def login(self, email: str, password: str):
28
+ with Client() as client:
29
+ headers = {
30
+ "accept": "application/json",
31
+ "Content-Type": "application/x-www-form-urlencoded",
32
+ "User-Agent": self._user_agent,
33
+ }
34
+
35
+ response: Response = client.post(
36
+ self._login_url,
37
+ data={"username": email, "password": password},
38
+ headers=headers,
39
+ )
40
+ HttpErrorUtils.check_for_error(response)
41
+
42
+ self._bearer_token = response.json()["access_token"]
43
+
44
+ def request(self, *args, **kwargs) -> Response:
45
+ try:
46
+ response: Response = super().request(*args, **kwargs)
47
+ if response.status_code == UNAUTHORIZED:
48
+ logging.info("Unauthorized - trying to login")
49
+
50
+ self.login(self._email, self._password)
51
+
52
+ logging.info("Re-login successful")
53
+ self.headers.update(
54
+ headers={"authorization": f"Bearer {self._bearer_token}"}
55
+ )
56
+ logging.info("Trying request again")
57
+ response = super().request(*args, **kwargs)
58
+ except ReadTimeout as e:
59
+ raise TimeoutException()
60
+ HttpErrorUtils.check_for_error(response)
61
+ return response
@@ -0,0 +1,62 @@
1
+ import os
2
+
3
+ from httpx import Client
4
+ from luna_sdk.controllers.custom_login_client import CustomLoginClient
5
+
6
+ from luna_sdk.interfaces.clients.client_i import IClient
7
+
8
+
9
+ class LunaPlatformClient(IClient):
10
+ _base_url: str = ""
11
+
12
+ _client: Client = None # type: ignore
13
+
14
+ def __init__(
15
+ self,
16
+ email: str,
17
+ password: str,
18
+ base_url: str = os.getenv("LUNA_BASE_URL", "https://api.aqarios.com"),
19
+ timeout: float = 10.0,
20
+ ):
21
+ """
22
+ ClientCtrl is a main entrypoint of the SDK.
23
+ All the operations with entities should be processed using an instance of
24
+ ClientCtrl.
25
+
26
+ Parameters
27
+ ----------
28
+ email:
29
+ User's email
30
+ password:
31
+ User's password
32
+ base_url:
33
+ Base API URL.
34
+ If you want to use API not on your local PC then change it.
35
+ You can do that by setting the environment variable LUNA_BASE_URL.
36
+ Default value https://api.aqarios.com.
37
+ timeout:
38
+ Timeout for the requests.
39
+ Default value 10.
40
+
41
+ Returns
42
+ -------
43
+ """
44
+ self._base_url = f"{base_url}/api"
45
+
46
+ # setup client
47
+
48
+ self._client = CustomLoginClient(
49
+ email=email,
50
+ password=password,
51
+ login_url=f"{base_url}/accessToken",
52
+ base_url=self._base_url,
53
+ follow_redirects=True,
54
+ timeout=timeout,
55
+ )
56
+
57
+ def __del__(self):
58
+ if hasattr(self, "_client"):
59
+ try:
60
+ self._client.close()
61
+ except Exception:
62
+ pass # doesn't seem to be a big deal, so just ignore
@@ -0,0 +1,36 @@
1
+ from luna_sdk.controllers.luna_platform_client import LunaPlatformClient
2
+ from luna_sdk.interfaces import ICircuitRepo
3
+ from luna_sdk.interfaces.clients.luna_q_i import ILunaQ
4
+ from luna_sdk.interfaces.qpu_token_repo_i import IQpuTokenRepo
5
+ from luna_sdk.repositories import CircuitRepo, QpuTokenRepo
6
+
7
+
8
+ class LunaQ(LunaPlatformClient, ILunaQ):
9
+ qpu_token: IQpuTokenRepo = None # type: ignore
10
+ circuit: ICircuitRepo = None # type: ignore
11
+
12
+ def __init__(
13
+ self,
14
+ email: str,
15
+ password: str,
16
+ timeout: float = 10.0,
17
+ ):
18
+ """
19
+ LunaQ is the main entrypoint for all LunaQ related tasks.
20
+
21
+ Parameters
22
+ ----------
23
+ email: str
24
+ User's email
25
+ password: str
26
+ User's password
27
+ timeout: float
28
+ Timeout for the requests. Default value 10.
29
+
30
+ Returns
31
+ -------
32
+ """
33
+ super().__init__(email=email, password=password, timeout=timeout)
34
+
35
+ self.circuit = CircuitRepo(self._client)
36
+ self.qpu_token = QpuTokenRepo(self._client)
@@ -0,0 +1,49 @@
1
+ from luna_sdk.controllers.luna_platform_client import LunaPlatformClient
2
+ from luna_sdk.interfaces import ISolutionsRepo
3
+ from luna_sdk.interfaces.clients.luna_solve_i import ILunaSolve
4
+ from luna_sdk.interfaces.info_repo_i import IInfoRepo
5
+ from luna_sdk.interfaces.optimization_repo_i import IOptimizationRepo
6
+ from luna_sdk.interfaces.qpu_token_repo_i import IQpuTokenRepo
7
+ from luna_sdk.repositories.info_repo import InfoRepo
8
+ from luna_sdk.repositories.optimization_repo import OptimizationRepo
9
+ from luna_sdk.repositories.qpu_token_repo import QpuTokenRepo
10
+ from luna_sdk.repositories.solutions_repo import SolutionsRepo
11
+
12
+
13
+ class LunaSolve(LunaPlatformClient, ILunaSolve):
14
+ optimization: IOptimizationRepo = None # type: ignore
15
+ solution: ISolutionsRepo = None # type: ignore
16
+ qpu_token: IQpuTokenRepo = None # type: ignore
17
+ info: IInfoRepo = None # type: ignore
18
+
19
+ def __init__(
20
+ self,
21
+ email: str,
22
+ password: str,
23
+ timeout: float = 10.0,
24
+ ):
25
+ """
26
+ LunaSolve is the main entrypoint for all LunaSolve related tasks.
27
+
28
+ Parameters
29
+ ----------
30
+ email: str
31
+ User's email
32
+ password: str
33
+ User's password
34
+ timeout: float
35
+ Timeout for the requests. Default value 10.
36
+
37
+ Returns
38
+ -------
39
+ """
40
+ super().__init__(
41
+ email=email,
42
+ password=password,
43
+ timeout=timeout,
44
+ )
45
+
46
+ self.optimization = OptimizationRepo(self._client)
47
+ self.solution = SolutionsRepo(self._client)
48
+ self.qpu_token = QpuTokenRepo(self._client)
49
+ self.info = InfoRepo(self._client)