Warning
The package qiskit-ibmq-provider
is being deprecated and its repo is going to be
archived soon. Please transition to the new packages. More information in
https://ibm.biz/provider_migration_guide
qiskit.providers.ibmq.job.IBMQJob.cancel¶
- IBMQJob.cancel()[source]¶
Attempt to cancel the job.
Note
Depending on the state the job is in, it might be impossible to cancel the job.
- Return type
bool
- Returns
True
if the job is cancelled, elseFalse
.- Raises
IBMQJobApiError -- If an unexpected error occurred when communicating with the server.