Installation
XBTorch requires Python 3.10+ and integrates seamlessly with PyTorch. It is distributed via GitHub as well as PyPI and can be installed in a few simple steps.
Note
We recommend working in a virtual environment.
Installing from source (Recommended)
Clone the repository and install using pip:
git clone https://github.com/ADAM-Lab-GW/xbtorch.git
cd xbtorch
pip install -e .
This will install XBTorch in editable mode so you can directly modify the source code.
Installing from PyPI
Simply install via pip.
pip install xbtorch
Testing your installation
After installation, test that the library imports correctly:
import xbtorch
xbtorch.initialize()
If no errors are raised, you are ready to use XBTorch.