commands.sh

az quantum

all

Manage Azure Quantum workspaces and submit quantum jobs to providers (preview, requires quantum extension).

More info →

Options (5)

-g, --resource-groupboolean

Create a new Azure Quantum workspace

Example: az quantum workspace create {{[-g|--resource-group]}} {{ResourceGroup}} {{[-l|--location]}} {{Location}} {{[-w|--workspace-name]}} {{Workspace}} {{[-a|--storage-account]}} {{MyStorageAccountName}}
-l, --locationboolean

Create a new Azure Quantum workspace

Example: az quantum workspace create {{[-g|--resource-group]}} {{ResourceGroup}} {{[-l|--location]}} {{Location}} {{[-w|--workspace-name]}} {{Workspace}} {{[-a|--storage-account]}} {{MyStorageAccountName}}
-w, --workspace-nameboolean

Create a new Azure Quantum workspace

Example: az quantum workspace create {{[-g|--resource-group]}} {{ResourceGroup}} {{[-l|--location]}} {{Location}} {{[-w|--workspace-name]}} {{Workspace}} {{[-a|--storage-account]}} {{MyStorageAccountName}}
-a, --storage-accountboolean

Create a new Azure Quantum workspace

Example: az quantum workspace create {{[-g|--resource-group]}} {{ResourceGroup}} {{[-l|--location]}} {{Location}} {{[-w|--workspace-name]}} {{Workspace}} {{[-a|--storage-account]}} {{MyStorageAccountName}}
-t, --target-idboolean

Submit a QIR quantum job to a target

Example: az quantum job submit {{[-g|--resource-group]}} {{ResourceGroup}} {{[-w|--workspace-name]}} {{Workspace}} {{[-l|--location]}} {{Location}} {{[-t|--target-id]}} {{Id}} --job-name {{Job}} --job-input-file {{QirBitcode.bc}} --job-input-format {{qir.v1}}

Examples (8)

Create a new Azure Quantum workspace

az quantum workspace create [-g|--resource-group] ResourceGroup [-l|--location] Location [-w|--workspace-name] Workspace [-a|--storage-account] MyStorageAccountName

List all Azure Quantum workspaces

az quantum workspace list

Set a default Azure Quantum workspace

az quantum workspace set [-g|--resource-group] ResourceGroup [-w|--workspace-name] Workspace

Submit a QIR quantum job to a target

az quantum job submit [-g|--resource-group] ResourceGroup [-w|--workspace-name] Workspace [-l|--location] Location [-t|--target-id] Id --job-name Job --job-input-file QirBitcode.bc --job-input-format qir.v1

List all jobs in a Quantum Workspace

az quantum job list [-g|--resource-group] ResourceGroup [-l|--location] Location [-w|--workspace-name] Workspace

Get the output of a quantum job

az quantum job output [-g|--resource-group] ResourceGroup [-w|--workspace-name] Workspace --job-id Job

List available provider offerings in a location

az quantum offerings list [-l|--location] Location

Set a default target for job submissions

az quantum target set [-t|--target-id] Id
made by @shridhargupta | data from tldr-pages