Installation Guide

Welcome to the installation guide for TensorHEOM. Follow the steps below to install the package, set up a virtual environment, and start using the Graphical User Interface.

Installation via PyPI

The easiest way to install TensorHEOM is through PyPI. For best results, we recommend creating a new virtual environment to avoid package conflicts.

Steps

  1. Create a New Virtual Environment:

    Open your terminal and navigate to your project folder. Run:

    python -m venv .venv
    
  2. Activate the Virtual Environment:

    • Windows:

      .venv\Scripts\activate
      
    • macOS/Linux:

      source .venv/bin/activate
      
  3. Install the `TensorHEOM` Package:

    pip install ttheom
    

Installation in editable mode via GitHub

If you plan to contribute to the development or make changes to the source code, install TensorHEOM in editable mode by cloning its GitHub repository.

Steps

  1. Clone the GitHub Repository:

    git clone https://github.com/dehe1011/TensorHEOM.git
    
  2. Navigate to the Cloned Repository:

    cd TensorHEOM
    
  3. Run the Activation Script:

    Use the provided activation script to complete the installation. Instructions vary by platform (see below).

Platform-Specific Instructions for Activation

Windows

  1. Navigate to the project directory:

    Set-Location -Path "C:\Users\<YourUsername>\TensorHEOM"
    
  2. Run the activation script:

    powershell -ExecutionPolicy Bypass -File scripts\Activate.ps1
    

macOS

  1. Navigate to the project directory:

    cd /Users/<YourUsername>/TensorHEOM
    
  2. Run the activation script:

    source scripts/activate
    

Linux

  1. Navigate to the project directory:

    cd /home/<YourUsername>/TensorHEOM
    
  2. Run the activation script:

    source scripts/activate
    

Uninstallation

To remove the package:

pip uninstall TensorHEOM

If you cloned the GitHub repository, manually delete the TensorHEOM folder from your computer.