Skip to main content

Simulation of Systems of interacting mean-field Particles with High Efficiency

logo

Please visit the website for a full documentation.


The SiSyPHE library builds on recent advances in hardware and software for the efficient simulation of large scale interacting particle systems, both on the GPU and on the CPU. The implementation is based on recent libraries originally developed for machine learning purposes to significantly accelerate tensor (array) computations, namely the PyTorch package and the KeOps library. The versatile object-oriented Python interface is well suited to the comparison of new and classical many-particle models, enabling ambitious numerical experiments and leading to novel conjectures. The SiSyPHE library speeds up both traditional Python and low-level implementations by one to three orders of magnitude for systems with up to several millions of particles.

mill

Citation

If you use SiSyPHE in a research paper, please cite the JOSS publication :

@article{Diez2021,
  doi = {10.21105/joss.03653},
  url = {https://doi.org/10.21105/joss.03653},
  year = {2021},
  publisher = {The Open Journal},
  volume = {6},
  number = {65},
  pages = {3653},
  author = {Antoine Diez},
  title = {`SiSyPHE`: A Python package for the Simulation of Systems of interacting mean-field Particles with High Efficiency},
  journal = {Journal of Open Source Software}
}

Diez, A., (2021). SiSyPHE: A Python package for the Simulation of Systems of interacting mean-field Particles with High Efficiency. Journal of Open Source Software, 6(65), 3653, https://doi.org/10.21105/joss.03653

DOI

Installation

Requirements

  • Python 3 with packages NumPy and SciPy
  • PyTorch : version>= 1.5
  • PyKeops : version>= 1.5

Using pip

In a terminal, type:

pip install sisyphe

On Google Colab

The easiest way to get a working version of SiSyPHE is to use the free virtual machines provided by Google Colab.

  1. On a new Colab notebook, navigate to Edit→Notebook Settings and select GPU from the Hardware Accelerator drop-down.

  2. Install PyKeops with the Colab specifications first by typing

!pip install pykeops[colab]
  1. Install SiSyPHE by typing
!pip install sisyphe

Testing the installation

In a Python terminal, type

import sisyphe
sisyphe.test_sisyphe()

band

Contributing

Contributions to make SiSyPHE grow are warmly welcome! Examples of possible (and ongoing) developments include the following.

  • The implementation of new models.

  • The implementation of more complex boundary conditions and of models on non-flat manifolds.

  • An improved visualization method (currently only basic visualization functions relying on Matplotlib are implemented).

Contributions can be made by opening an issue on the GitHub repository, via a pull request or by contacting directly the author.

Author

Acknowledgments

The development of this library would not have been possible without the help of Jean Feydy, his constant support and precious advice. This project was initiated by Pierre Degond and has grown out of many discussions with him.

Metadata

Release files for sisyphe 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sisyphe 1.2.1
File Size Uploaded
sisyphe-1.2.1.tar.gz 41.7 kB Details

Release files / sisyphe-1.2.1.tar.gz

Download URL sisyphe-1.2.1.tar.gz
Size 41.7 kB
Tags Source
SHA-256 checksum
How to use checksums
dfea0913d12e12123365ba4d9cecf6290c951bddd883ebfba0f9467e80dada0a
BLAKE2b-256 checksum
How to use checksums
7344573dcff27e8aef6c7fb1dab5ea96ee51ed0e29e9ddb0996c7a0e24be7905
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release history Release notifications | RSS feed

This release

1.2.1 This release

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

0.1.7

1 release file

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page