Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article, you learn how to install QDK for chemistry (QDK/Chemistry), a Python library for quantum chemistry calculations in the Microsoft Quantum Development Kit (QDK).
Prerequisites
- Install the latest version of Visual Studio Code (VS Code).
- Install the Python and Jupyter extensions in VS Code.
- Install a Python interpreter (version 3.11, 3.12, 3.13, or 3.14).
Install the qdk-chemistry library
QDK/Chemistry is distributed as the qdk-chemistry Python library through PyPI. To install the package, follow the steps for your operating system.
Create a local folder where you want to install QDK/Chemistry.
In a terminal, go to the folder that you created.
Run the following terminal command to create a Python virtual environment. For example,
myenv.python3 -m venv myenvActivate the virtual environment.
source myenv/bin/activateInstall the
qdk-chemistrylibrary with all extras.python3 -m pip install "qdk-chemistry[all]"
The all extra installs all optional dependencies. For other installation methods and platform-specific notes, see Installation Instructions for QDK/Chemistry in the QDK/Chemistry repository on GitHub.
Note
To use QDK/Chemistry with Jupyter Notebook in VS Code, make sure that your notebook uses the Python interpreter in the virtual environment where you installed qdk-chemistry.
Related content
To learn more about quantum chemistry simulations and how to use QDK/Chemistry, see the following articles: