Installation

Requirements

  • Python >= 3.10

  • numpy >= 1.23

  • h5py >= 3.8

Optional features (extras):

Extra

Adds

viz

plotting (matplotlib)

vtk

VTK export of wavefunctions (pyvista)

physics

symbolic field expressions in zkit.physics (sympy)

validation

the zkit validate suite (scipy, sympy)

mwigner

the zkit.mwigner Wigner-function subpackage (PyTorch >= 2.0, matplotlib)

docs

building this documentation (Sphinx)

B-spline reconstruction is part of the core package (a bundled pure-Python igakit.igalib.bsp evaluator); no external igakit is required.

Install

From PyPI (distribution zkit-lib):

pip install zkit-lib                       # core: numpy, h5py
pip install "zkit-lib[viz,validation]"     # with optional features

The latest development version, from GitHub:

pip install "git+https://github.com/dahbiz/zkit.git"

or, from a clone (editable, with optional features):

git clone https://github.com/dahbiz/zkit.git
cd zkit
pip install -e ".[viz,validation]"

The distribution name on PyPI is zkit-lib (zkit is a different project there); the import name and the command are zkit: pip install zkit-lib, then import zkit and zkit --help.

Upgrade with pip install --upgrade zkit-lib.

Without installing

export PYTHONPATH=/path/to/zkit/src:$PYTHONPATH
python -m zkit --help

Verify the installation

import zkit
print("version:", zkit.__version__)