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.
- classiq/__init__.py +2 -1
- classiq/_analyzer_extras/_ipywidgets_async_extension.py +1 -1
- classiq/_internals/api_wrapper.py +34 -23
- classiq/_internals/jobs.py +41 -14
- classiq/analyzer/__init__.py +3 -1
- classiq/applications/__init__.py +3 -1
- classiq/applications/benchmarking/__init__.py +3 -1
- classiq/applications/chemistry/__init__.py +3 -1
- classiq/applications/combinatorial_optimization/__init__.py +3 -1
- classiq/applications/combinatorial_optimization/examples/__init__.py +3 -1
- classiq/applications/finance/__init__.py +3 -1
- classiq/applications/qnn/__init__.py +3 -1
- classiq/applications/qnn/datasets/__init__.py +3 -1
- classiq/applications/qsvm/qsvm.py +1 -1
- classiq/applications_model_constructors/grover_model_constructor.py +25 -8
- classiq/builtin_functions/__init__.py +3 -1
- classiq/execution/__init__.py +3 -1
- classiq/execution/jobs.py +57 -20
- classiq/executor.py +4 -11
- classiq/interface/_version.py +1 -1
- classiq/interface/analyzer/analysis_params.py +1 -1
- classiq/interface/backend/backend_preferences.py +17 -0
- classiq/interface/backend/pydantic_backend.py +8 -0
- classiq/interface/backend/quantum_backend_providers.py +15 -1
- classiq/interface/chemistry/ground_state_problem.py +1 -1
- classiq/interface/chemistry/operator.py +198 -0
- classiq/interface/executor/execution_request.py +5 -12
- classiq/interface/generator/circuit_code/types_and_constants.py +1 -1
- classiq/interface/generator/complex_type.py +4 -1
- classiq/interface/generator/functions/__init__.py +3 -1
- classiq/interface/generator/functions/core_lib_declarations/quantum_functions/__init__.py +0 -1
- classiq/interface/generator/functions/core_lib_declarations/quantum_functions/atomic_quantum_functions.py +39 -39
- classiq/interface/generator/functions/core_lib_declarations/quantum_functions/std_lib_functions.py +251 -87
- classiq/interface/generator/functions/core_lib_declarations/quantum_operators.py +5 -54
- classiq/interface/generator/generated_circuit.py +14 -43
- classiq/interface/generator/generated_circuit_data.py +26 -34
- classiq/interface/generator/model/preferences/preferences.py +3 -3
- classiq/interface/generator/partitioned_register.py +1 -1
- classiq/interface/generator/quantum_function_call.py +1 -1
- classiq/interface/generator/validations/validator_functions.py +4 -2
- classiq/interface/hardware.py +3 -2
- classiq/interface/ide/show.py +1 -14
- classiq/interface/model/bind_operation.py +20 -0
- classiq/interface/model/handle_binding.py +8 -0
- classiq/interface/model/native_function_definition.py +15 -5
- classiq/interface/model/quantum_expressions/amplitude_loading_operation.py +8 -3
- classiq/interface/model/quantum_expressions/arithmetic_operation.py +9 -4
- classiq/interface/model/quantum_expressions/quantum_expression.py +10 -5
- classiq/interface/model/quantum_function_call.py +24 -347
- classiq/interface/model/quantum_function_declaration.py +7 -11
- classiq/interface/model/quantum_statement.py +13 -7
- classiq/interface/model/validations/handle_validation_base.py +1 -2
- classiq/interface/model/validations/handles_validator.py +34 -8
- classiq/interface/model/variable_declaration_statement.py +8 -0
- classiq/interface/server/routes.py +11 -16
- classiq/model/__init__.py +3 -1
- classiq/model/function_handler.py +1 -1
- classiq/model/function_handler.pyi +88 -88
- classiq/qmod/declaration_inferrer.py +37 -18
- classiq/qmod/model_state_container.py +6 -3
- classiq/qmod/qmod_builtins.py +892 -4
- classiq/qmod/qmod_parameter.py +24 -8
- classiq/qmod/qmod_variable.py +2 -1
- classiq/qmod/quantum_expandable.py +6 -2
- classiq/qmod/quantum_function.py +11 -10
- classiq/quantum_functions/quantum_function.py +4 -1
- {classiq-0.32.1.dist-info → classiq-0.34.0.dist-info}/METADATA +1 -1
- {classiq-0.32.1.dist-info → classiq-0.34.0.dist-info}/RECORD +69 -72
- classiq/interface/generator/functions/core_lib_declarations/quantum_functions/apps_lib_functions.py +0 -262
- classiq/interface/model/clients/__init__.py +0 -0
- classiq/interface/model/clients/qmod/__init__.py +0 -0
- classiq/interface/model/clients/qmod/qmod_builtins.py +0 -908
- classiq/interface/model/semantics.py +0 -15
- {classiq-0.32.1.dist-info → classiq-0.34.0.dist-info}/WHEEL +0 -0
classiq/interface/generator/functions/core_lib_declarations/quantum_functions/apps_lib_functions.py
DELETED
@@ -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
|