-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Description
I received the following error
Traceback (most recent call last):
..........
File "_quantumprogram.py", line 634, in execute
output = self.run(wait, timeout)
File "_quantumprogram.py", line 539, in run
self.__quantum_program["circuits"][name]["execution"][backend]["result"] = job_result["qasms"][index]["result"]
KeyError: 'result'
Process finished with exit code 1
After having a look at line 539 and at the job_result object returned by the IBMQuantumExperience I noticed that there is no key called "result". The returned info from the execution is in the field "data"(?) I used the online device "ibmqx_qasm_simulator".
The following edits helped. Are these edits ok?
In _quantumprogram.py method get_counts()
return self.__quantum_program["circuits"][name]['execution'][device]['data']['counts']
In _quantumprogram.py method run() @ line 539
self.__quantum_program["circuits"][name]["execution"][backend]["data"] = job_result["qasms"][index]["data"]
morr0350
Metadata
Metadata
Assignees
Labels
No labels