quantum.backend.QuantumTaskIBM Class
Namespace: quantum.backend
Installation Required: This functionality requires MATLAB Support Package for Quantum Computing.
Description
A QuantumTaskIBM
object represents a task sent for execution on a
quantum device that is available through the IBM®
Qiskit® Runtime Services. To work with remote devices and data using IBM
Qiskit Runtime Services, you must first set up access following the steps in Run Quantum Circuit on Hardware Using IBM Qiskit Runtime Services.
The quantum.backend.QuantumTaskIBM
class is a handle
class.
Creation
Use the run
function to
run a quantum circuit remotely on a quantum device available through IBM
Qiskit Runtime Services and return the task as a QuantumTaskIBM
object.
Additionally, you can create a QuantumTaskIBM
object from an existing
remote task on IBM using the task identifier with the following syntaxes.
Description
returns a task
= quantum.backend.QuantumTaskIBM(taskID
)QuantumTaskIBM
handle object that represents an existing
remote task on the IBM
Qiskit Runtime Services with the specified task identifier. You can retrieve the
task identifier of an existing task by accessing its TaskID
property
value or by using the IBM web interface. This syntax sets the TaskID property to
taskID
.
A remote task expires after some time. Use fetchOutput
on the QuantumTaskIBM
object and save the returned
QuantumMeasurement
object to store the result.
specifies options using one or more name-value arguments.task
= quantum.backend.QuantumTaskIBM(taskID
,Name=Value
)
You can specify the filename of a JSON file that contains your credentials for authentication with the Qiskit Runtime Services using
quantum.backend.QuantumTaskIBM(taskID,FileName=filename)
.You can specify the account name in the credentials file to use for authentication when retrieving the task using
quantum.backend.QuantumTaskIBM(taskID,AccountName=accountname)
.
Note
Saving and loading QuantumTaskIBM
objects in MATLAB® are not supported. To check on a task from a previous MATLAB session, save the TaskID
property value of the
QuantumTaskIBM
object from the previous session and construct a new
QuantumTaskIBM
object in the new MATLAB session.