-
Notifications
You must be signed in to change notification settings - Fork 97
Installation
To work with Q# files in VS Code, only the VS Code extension is needed. To install, open the 'Extensions' view in the VS Code sidebar, or press F1 and select "Extensions: Install Extensions" from the quick menu, and search for the "Azure Quantum Developer Kit (QDK)" extension.
The Q# extension is fully compatible with vscode.dev and github.dev web-based editors, so you can use it to run, debug, and submit Q# code from your browser all without requiring any local installation.
To work with Q# code in a Python environment (including Jupyter Notebooks), use the Python package manager pip
to install the qsharp and azure-quantum packages as shown below:
# Note: You likely want to be in a separate Python environment when installing packages.
# See https://docs.python.org/3/library/venv.html for details.
# (Or if using Conda - https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html)
pip install --upgrade qsharp azure-quantum
Note that the azure-quantum
package is only needed to submit jobs to the Azure Quantum service. If you may want to submit Qiskit jobs to Azure Quantum, also install the qiskit
and qiskit-qir
packages. See https://pypi.org/project/qiskit-qir/.