Use Python without Q#

There are some processes that you can run on Azure Quantum that use Python without explicitly calling any Q# code, such as submitting Qiskit or Cirq circuits, or submitting optimization problems. To use these features, you must install the azure-quantum Python package.

Install the azure-quantum Python package

  1. Install Python 3.6 or later if you haven't already.

  2. Install PIP and ensure you have version 19.2 or higher.

  3. Install the azure-quantum python package. Use the --upgrade flag to make sure to get the latest version.

    To install the azure-quantum package without any optional dependencies, run:

    pip install --upgrade azure-quantum
    

    To install the optional dependencies required for submitting Qiskit programs, install using the [qiskit] tag:

    pip install --upgrade azure-quantum[qiskit]
    

    To install the optional dependencies required for submitting Cirq programs, install using the [cirq] tag:

    pip install --upgrade azure-quantum[cirq]
    

Next steps