author | description | ms.author | ms.date | ms.service | ms.subservice | ms.topic | no-loc | title | zone_pivot_groups | uid | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bradben |
Learn how to submit Cirq quantum circuits to the Azure Quantum service. |
brbenefield |
06/03/2024 |
azure-quantum |
qdk |
how-to |
|
Submit Cirq quantum circuits to Azure Quantum |
ide-local-portal |
microsoft.quantum.quickstarts.computing.cirq |
Learn how to submit a Cirq quantum circuit using the azure-quantum
Python package. You can submit Cirq circuits to Azure Quantum using the Azure Quantum notebook, which have built-in azure-quantum
Python package, or from your local machine.
For more information, see Quantum circuits.
::: zone pivot="platform-local"
[!INCLUDE local-procedure]
::: zone-end
::: zone pivot="platform-portal"
[!INCLUDE portal-procedure]
::: zone-end
Important
Submitting multiple circuits on a single job is currently not supported. As a workaround you can call the backend.run
method to submit each circuit asynchronously, then fetch the results of each job. For example:
jobs = []
for circuit in circuits:
jobs.append(backend.run(circuit, shots=N))
results = []
for job in jobs:
results.append(job.result())
- Quickstart: Submit a circuit with Qiskit to Azure Quantum.
- Quickstart: Submit a circuit with a provider-specific format to Azure Quantum.