run
Installation Required: This functionality requires MATLAB Support Package for Quantum Computing.
Description
runs the quantum circuit task
= run(c
,dev
)c
remotely on a quantum device
dev
.
The input dev
must be a QuantumDeviceAWS
or
QuantumDeviceIBM
object that connects to a quantum device available
through AWS® or IBM®, respectively. The output task
is a
QuantumTaskAWS
or QuantumTaskIBM
object, which can
be used to monitor the task and retrieve its result. By default, the run
function runs the circuit with 100 shots.
specifies options using one or more name-value arguments. For example, you can specify
task
= run(c
,dev
,Name=Value
)NumShots=n
to run the circuit with n
shots remotely
on the quantum device.
Note
Running a circuit on a remote quantum device results in charges to your account with the remote service.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Version History
Introduced in R2023aSee Also
Classes
quantumCircuit
|quantum.backend.QuantumDeviceAWS
|quantum.backend.QuantumTaskAWS
|quantum.backend.QuantumDeviceIBM
|quantum.backend.QuantumTaskIBM