cancel
Installation Required: This functionality requires MATLAB Support Package for Quantum Computing.
Syntax
Description
cancel(
submits a request to cancel the
specified task sent to the Amazon® Web Services (AWS®) or the IBM®
Qiskit® Runtime Services. The request to cancel the task is granted only if the task
status is task
)"queued"
or "running"
. Otherwise, this
function call has no effect. A successfully canceled task changes the task status to
"finished"
.
Note
The cost of running the task may not be billed depending on when the task is canceled. For more details, consult the documentation provided by the quantum device provider, such as Amazon Braket Documentation or IBM Quantum access plans.
Examples
Input Arguments
Version History
Introduced in R2023a