Edit

How to install QDK for chemistry

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 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.

  1. Create a local folder where you want to install QDK/Chemistry.

  2. In a terminal, go to the folder that you created.

  3. Run the following terminal command to create a Python virtual environment. For example, myenv.

    python3 -m venv myenv
    
  4. Activate the virtual environment.

    source myenv/bin/activate
    
  5. Install the qdk-chemistry library 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.

To learn more about quantum chemistry simulations and how to use QDK/Chemistry, see the following articles: