File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -231,18 +231,18 @@ def _submit(
231231 user_agent = USER_AGENT ,
232232 )
233233
234- computation_model_dict = QuantumComputationModel (
234+ computation_model_json = QuantumComputationModel (
235235 programs = [program ],
236236 backend = backend_data ,
237237 client = client_data ,
238- ).to_dict ()
238+ ).to_json_str ()
239239
240- computation_parameters_dict = QuantumComputationParameters (
240+ computation_parameters_json = QuantumComputationParameters (
241241 shots = shots ,
242- ).to_dict ()
242+ ).to_json_str ()
243243
244244 model = self .__client .create_model (
245- payload = computation_model_dict ,
245+ payload = computation_model_json ,
246246 )
247247
248248 if not model :
@@ -251,7 +251,7 @@ def _submit(
251251 job_id = self .__client .create_job (
252252 session_id = session_id ,
253253 model_id = model .id ,
254- parameters = computation_parameters_dict ,
254+ parameters = computation_parameters_json ,
255255 ).id
256256
257257 job_results = self ._wait_for_result (job_id , 60 * 100 , 2 )
You can’t perform that action at this time.
0 commit comments