qrisp.interface.Job.cancel#
- abstractmethod Job.cancel() bool[source]#
Attempt to cancel the job.
- Returns:
- bool
Trueif the cancellation was initiated: either the job is already inCANCELLEDstate (for synchronous or in-process backends), or the cancel request has been dispatched to the remote backend (for asynchronous hardware backends, the transition toCANCELLEDmay not yet be visible instatus()).Falseif the job is already in a terminal state and no action was taken.