Prepare your environment to use Azure Quantum from the command prompt

Azure Quantum uses the Azure CLI quantum extension to enable submitting Q# programs from the command line. This guide provides the steps to install and configure the Azure CLI extension on your system for use with Azure Quantum.

Prerequisites

Before installing the Azure CLI quantum extension, ensure that the following packages are installed:

Installation

To install the Azure CLI quantum extension, open a command prompt, and then run the following command:

az extension add -n quantum

Uninstall the extension

To uninstall the Azure CLI quantum extension, run the following command:

az extension remove -n quantum

Update the extension

If you need to update an existing installation of the the Azure CLI quantum extension, you can run:

az extension update -n quantum

Note

If you have previously installed a pre-release version of this extension, or you are not sure about your current installation you can uninstall it and then install it again using the instructions above.

Next steps

Now that you have installed the tools to use Azure Quantum you can learn to submit jobs.

For optimization users

Learn how to use the Python SDK to solve optimization problems.

For quantum computing users

Learn how to create Q# applications and run them on Azure Quantum.