Skip to content

Installation

Requirements

  • Python 3.11+
  • uv (recommended) or pip

Basic Install

pip install helicon

With GPU Acceleration (Apple Silicon)

pip install "helicon[mlx]"

With Optimization

pip install "helicon[optimize]"   # scikit-learn for GP surrogate
pip install "helicon[botorch]"    # botorch for Bayesian optimization

Development Install

git clone https://github.com/lulzx/helicon
cd helicon
uv sync --all-extras
uv run pytest  # verify install

WarpX (for PIC simulations)

WarpX must be installed separately. See the WarpX installation guide.

On macOS (Apple Silicon):

# WarpX runs CPU/OpenMP on macOS — no GPU PIC
conda install -c conda-forge warpx
# or build from source with OpenMP

On Linux (NVIDIA GPU):

conda install -c conda-forge warpx=*=mpi_openmpi_cuda*
# or use the provided Dockerfile

Without WarpX, all Helicon features work except actually running PIC simulations (dry_run=True generates input files without launching WarpX).

Docker

docker build -t helicon .
docker run --rm -v $(pwd)/results:/app/results helicon \
    run --preset dfd --output results/dfd --dry-run

Conda Environment

conda env create -f environment.yml
conda activate helicon
pip install -e .