I am submitting a job to ibmq_qasm_simulator and after the validation I repeatedly get the error "Error running job on a simulator. [5204]" The site with error descriptions https://quantum-computing.ibm.com/docs/manage/errors does not have an entry for the error code 5204, so it is impossible to know what causes the error and how to fix it. Can anybody help with this?
1 Answer
Thank you all for your help tracking this down. For future reference, the culprit was the usage of the function QuantumCircuit.initialize(params, qubits), which triggered an error out of some reason. Not sure why it fails in this case but not in others. The solution was to implement what the initialize function was supposed to do with basis gates.
job.error_message()
give you more information? $\endgroup$