classiq 0.32.1__py3-none-any.whl → 0.34.0__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.
Files changed (74) hide show
  1. classiq/__init__.py +2 -1
  2. classiq/_analyzer_extras/_ipywidgets_async_extension.py +1 -1
  3. classiq/_internals/api_wrapper.py +34 -23
  4. classiq/_internals/jobs.py +41 -14
  5. classiq/analyzer/__init__.py +3 -1
  6. classiq/applications/__init__.py +3 -1
  7. classiq/applications/benchmarking/__init__.py +3 -1
  8. classiq/applications/chemistry/__init__.py +3 -1
  9. classiq/applications/combinatorial_optimization/__init__.py +3 -1
  10. classiq/applications/combinatorial_optimization/examples/__init__.py +3 -1
  11. classiq/applications/finance/__init__.py +3 -1
  12. classiq/applications/qnn/__init__.py +3 -1
  13. classiq/applications/qnn/datasets/__init__.py +3 -1
  14. classiq/applications/qsvm/qsvm.py +1 -1
  15. classiq/applications_model_constructors/grover_model_constructor.py +25 -8
  16. classiq/builtin_functions/__init__.py +3 -1
  17. classiq/execution/__init__.py +3 -1
  18. classiq/execution/jobs.py +57 -20
  19. classiq/executor.py +4 -11
  20. classiq/interface/_version.py +1 -1
  21. classiq/interface/analyzer/analysis_params.py +1 -1
  22. classiq/interface/backend/backend_preferences.py +17 -0
  23. classiq/interface/backend/pydantic_backend.py +8 -0
  24. classiq/interface/backend/quantum_backend_providers.py +15 -1
  25. classiq/interface/chemistry/ground_state_problem.py +1 -1
  26. classiq/interface/chemistry/operator.py +198 -0
  27. classiq/interface/executor/execution_request.py +5 -12
  28. classiq/interface/generator/circuit_code/types_and_constants.py +1 -1
  29. classiq/interface/generator/complex_type.py +4 -1
  30. classiq/interface/generator/functions/__init__.py +3 -1
  31. classiq/interface/generator/functions/core_lib_declarations/quantum_functions/__init__.py +0 -1
  32. classiq/interface/generator/functions/core_lib_declarations/quantum_functions/atomic_quantum_functions.py +39 -39
  33. classiq/interface/generator/functions/core_lib_declarations/quantum_functions/std_lib_functions.py +251 -87
  34. classiq/interface/generator/functions/core_lib_declarations/quantum_operators.py +5 -54
  35. classiq/interface/generator/generated_circuit.py +14 -43
  36. classiq/interface/generator/generated_circuit_data.py +26 -34
  37. classiq/interface/generator/model/preferences/preferences.py +3 -3
  38. classiq/interface/generator/partitioned_register.py +1 -1
  39. classiq/interface/generator/quantum_function_call.py +1 -1
  40. classiq/interface/generator/validations/validator_functions.py +4 -2
  41. classiq/interface/hardware.py +3 -2
  42. classiq/interface/ide/show.py +1 -14
  43. classiq/interface/model/bind_operation.py +20 -0
  44. classiq/interface/model/handle_binding.py +8 -0
  45. classiq/interface/model/native_function_definition.py +15 -5
  46. classiq/interface/model/quantum_expressions/amplitude_loading_operation.py +8 -3
  47. classiq/interface/model/quantum_expressions/arithmetic_operation.py +9 -4
  48. classiq/interface/model/quantum_expressions/quantum_expression.py +10 -5
  49. classiq/interface/model/quantum_function_call.py +24 -347
  50. classiq/interface/model/quantum_function_declaration.py +7 -11
  51. classiq/interface/model/quantum_statement.py +13 -7
  52. classiq/interface/model/validations/handle_validation_base.py +1 -2
  53. classiq/interface/model/validations/handles_validator.py +34 -8
  54. classiq/interface/model/variable_declaration_statement.py +8 -0
  55. classiq/interface/server/routes.py +11 -16
  56. classiq/model/__init__.py +3 -1
  57. classiq/model/function_handler.py +1 -1
  58. classiq/model/function_handler.pyi +88 -88
  59. classiq/qmod/declaration_inferrer.py +37 -18
  60. classiq/qmod/model_state_container.py +6 -3
  61. classiq/qmod/qmod_builtins.py +892 -4
  62. classiq/qmod/qmod_parameter.py +24 -8
  63. classiq/qmod/qmod_variable.py +2 -1
  64. classiq/qmod/quantum_expandable.py +6 -2
  65. classiq/qmod/quantum_function.py +11 -10
  66. classiq/quantum_functions/quantum_function.py +4 -1
  67. {classiq-0.32.1.dist-info → classiq-0.34.0.dist-info}/METADATA +1 -1
  68. {classiq-0.32.1.dist-info → classiq-0.34.0.dist-info}/RECORD +69 -72
  69. classiq/interface/generator/functions/core_lib_declarations/quantum_functions/apps_lib_functions.py +0 -262
  70. classiq/interface/model/clients/__init__.py +0 -0
  71. classiq/interface/model/clients/qmod/__init__.py +0 -0
  72. classiq/interface/model/clients/qmod/qmod_builtins.py +0 -908
  73. classiq/interface/model/semantics.py +0 -15
  74. {classiq-0.32.1.dist-info → classiq-0.34.0.dist-info}/WHEEL +0 -0
@@ -1,262 +0,0 @@
1
- # This file is auto generated by `generate_declarations.py`. #AUTOGENERATED
2
- # These functions will be moved to be imported from packages when we will add a modularity mechanism.
3
- from classiq.interface.model.quantum_function_declaration import (
4
- QuantumFunctionDeclaration,
5
- )
6
-
7
- QAOA_MIXER_LAYER = QuantumFunctionDeclaration.parse_raw(
8
- """{
9
- "name": "qaoa_mixer_layer",
10
- "param_decls": {
11
- "num_qubits": {
12
- "kind": "int"
13
- },
14
- "b": {
15
- "kind": "real"
16
- }
17
- },
18
- "port_declarations": {
19
- "target": {
20
- "name": "target",
21
- "size": {
22
- "expr": "num_qubits"
23
- },
24
- "direction": "inout"
25
- }
26
- },
27
- "operand_declarations": {},
28
- "positional_arg_declarations": []
29
- }"""
30
- )
31
-
32
- QAOA_COST_LAYER = QuantumFunctionDeclaration.parse_raw(
33
- """{
34
- "name": "qaoa_cost_layer",
35
- "param_decls": {
36
- "num_qubits": {
37
- "kind": "int"
38
- },
39
- "g": {
40
- "kind": "real"
41
- },
42
- "hamiltonian": {
43
- "kind": "list",
44
- "element_type": {
45
- "kind": "struct_instance",
46
- "name": "PauliTerm"
47
- }
48
- },
49
- "is_st": {
50
- "kind": "bool"
51
- }
52
- },
53
- "port_declarations": {
54
- "target": {
55
- "name": "target",
56
- "size": {
57
- "expr": "num_qubits"
58
- },
59
- "direction": "inout"
60
- }
61
- },
62
- "operand_declarations": {},
63
- "positional_arg_declarations": []
64
- }"""
65
- )
66
-
67
- QAOA_LAYER = QuantumFunctionDeclaration.parse_raw(
68
- """{
69
- "name": "qaoa_layer",
70
- "param_decls": {
71
- "num_qubits": {
72
- "kind": "int"
73
- },
74
- "g": {
75
- "kind": "real"
76
- },
77
- "b": {
78
- "kind": "real"
79
- },
80
- "hamiltonian": {
81
- "kind": "list",
82
- "element_type": {
83
- "kind": "struct_instance",
84
- "name": "PauliTerm"
85
- }
86
- },
87
- "is_st": {
88
- "kind": "bool"
89
- }
90
- },
91
- "port_declarations": {
92
- "target": {
93
- "name": "target",
94
- "size": {
95
- "expr": "num_qubits"
96
- },
97
- "direction": "inout"
98
- }
99
- },
100
- "operand_declarations": {},
101
- "positional_arg_declarations": []
102
- }"""
103
- )
104
-
105
- QAOA_INIT = QuantumFunctionDeclaration.parse_raw(
106
- """{
107
- "name": "qaoa_init",
108
- "param_decls": {
109
- "num_qubits": {
110
- "kind": "int"
111
- }
112
- },
113
- "port_declarations": {
114
- "target": {
115
- "name": "target",
116
- "size": {
117
- "expr": "num_qubits"
118
- },
119
- "direction": "inout"
120
- }
121
- },
122
- "operand_declarations": {},
123
- "positional_arg_declarations": []
124
- }"""
125
- )
126
-
127
- QAOA_PENALTY = QuantumFunctionDeclaration.parse_raw(
128
- """{
129
- "name": "qaoa_penalty",
130
- "param_decls": {
131
- "num_qubits": {
132
- "kind": "int"
133
- },
134
- "params_list": {
135
- "kind": "list",
136
- "element_type": {
137
- "kind": "real"
138
- }
139
- },
140
- "hamiltonian": {
141
- "kind": "list",
142
- "element_type": {
143
- "kind": "struct_instance",
144
- "name": "PauliTerm"
145
- }
146
- },
147
- "is_st": {
148
- "kind": "bool"
149
- }
150
- },
151
- "port_declarations": {
152
- "target": {
153
- "name": "target",
154
- "size": {
155
- "expr": "num_qubits"
156
- },
157
- "direction": "inout"
158
- }
159
- },
160
- "operand_declarations": {},
161
- "positional_arg_declarations": []
162
- }"""
163
- )
164
-
165
- FULL_HEA = QuantumFunctionDeclaration.parse_raw(
166
- """{
167
- "name": "full_hea",
168
- "param_decls": {
169
- "num_qubits": {
170
- "kind": "int"
171
- },
172
- "is_parametrized": {
173
- "kind": "list",
174
- "element_type": {
175
- "kind": "int"
176
- }
177
- },
178
- "angle_params": {
179
- "kind": "list",
180
- "element_type": {
181
- "kind": "real"
182
- }
183
- },
184
- "connectivity_map": {
185
- "kind": "list",
186
- "element_type": {
187
- "kind": "list",
188
- "element_type": {
189
- "kind": "int"
190
- }
191
- }
192
- },
193
- "reps": {
194
- "kind": "int"
195
- }
196
- },
197
- "port_declarations": {
198
- "x": {
199
- "name": "x",
200
- "size": {
201
- "expr": "num_qubits"
202
- },
203
- "direction": "inout"
204
- }
205
- },
206
- "operand_declarations": {
207
- "operands_1qubit": {
208
- "name": "operands_1qubit",
209
- "param_decls": {
210
- "angle": {
211
- "kind": "real"
212
- }
213
- },
214
- "port_declarations": {
215
- "q": {
216
- "name": "q",
217
- "size": {
218
- "expr": "1"
219
- },
220
- "direction": "inout"
221
- }
222
- },
223
- "is_list": true
224
- },
225
- "operands_2qubit": {
226
- "name": "operands_2qubit",
227
- "param_decls": {
228
- "angle": {
229
- "kind": "real"
230
- }
231
- },
232
- "port_declarations": {
233
- "q1": {
234
- "name": "q1",
235
- "size": {
236
- "expr": "1"
237
- },
238
- "direction": "inout"
239
- },
240
- "q2": {
241
- "name": "q2",
242
- "size": {
243
- "expr": "1"
244
- },
245
- "direction": "inout"
246
- }
247
- },
248
- "is_list": true
249
- }
250
- },
251
- "positional_arg_declarations": []
252
- }"""
253
- )
254
-
255
- __all__ = [
256
- "QAOA_MIXER_LAYER",
257
- "QAOA_COST_LAYER",
258
- "QAOA_LAYER",
259
- "QAOA_INIT",
260
- "QAOA_PENALTY",
261
- "FULL_HEA",
262
- ]
File without changes
File without changes