TorchPfaffian is a Python package for efficiently computing the Pfaffian of skew-symmetric matrices using PyTorch. Designed as a PyTorch-based alternative to pfapack, it enables GPU acceleration and supports automatic differentiation, making it particularly useful in physics, quantum computing, and machine learning applications.
- Efficient Pfaffian computation for skew-symmetric matrices
- GPU acceleration via PyTorch
- Support for automatic differentiation
- Seamless integration with PyTorch tensors
With python
and pip
installed, run the following commands to install TorchPfaffian:
pip install torchpfaffian
With poetry
installed, run the following commands to install TorchPfaffian:
poetry add torchpfaffian
- Documentation at https://MatchCake.github.io/TorchPfaffian/.
- Github at https://github.com/MatchCake/TorchPfaffian/.
Repository:
@misc{torchpfaffian_Gince2025,
title={Torch Pfaffian},
author={Jérémie Gince},
year={2025},
publisher={Université de Sherbrooke},
url={https://github.com/MatchCake/TorchPfaffian},
}