Skip to main content

A fast Gross-Pitaevskii equation solver for scalar, spin-1 and spin-2 BEC systems.

Project description

logo

A fast and easy to use Gross-Pitaevskii equation solver.

Description

PyGPE is a CUDA-accelerated Python library for solving the Gross-Pitaevskii equations for use in simulating Bose-Einstein condensate systems.

Supported features

  • Scalar, two-component, spin-1, and spin-2 BEC systems.
  • 1D, 2D, and 3D grid lattices.
  • GPU support.
  • HDF5 data saving system.
  • Method for generating vortices within the system.

Requirements

  • Python (3.10 and above),
  • h5py (^3.6.0),
  • numpy (^2.0.0),
  • Matplotlib (^3.8.2)

If using a GPU:

  • CUDA Toolkit (>=11.2)
  • CuPy (>=10.2.0).

Installation

The simplest way to begin using PyGPE is through pip:

pip install pygpe

By default, PyGPE will use the CPU to perform calculations. However, if a CUDA-capable GPU is detected, PyGPE will automatically utilise it for drastic speed-ups in computation time.

Examples

See examples folder for various examples on the usage of the library. Below is an animation of superfluid turbulence in a scalar BEC simulated using PyGPE on a $512^2$ lattice for $N_t=200000$ time steps taking ~5 minutes to complete on an RTX 2060.

logo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygpe-2.0.2.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

pygpe-2.0.2-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

Details for the file pygpe-2.0.2.tar.gz.

File metadata

  • Download URL: pygpe-2.0.2.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.4 Darwin/24.1.0

File hashes

Hashes for pygpe-2.0.2.tar.gz
Algorithm Hash digest
SHA256 946544fbcea16d719ad1fdae8709995527dc9a0e6b14312956c2f96c0909720e
MD5 9773082023996766d50f56bf2466f004
BLAKE2b-256 60117735f348b775d9e64bcc1240b98bcb66176037814fcfda6026b6aa6ed484

See more details on using hashes here.

File details

Details for the file pygpe-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: pygpe-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 26.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.4 Darwin/24.1.0

File hashes

Hashes for pygpe-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e7b490d0c42cc2ce018b9930e3c83064a5b35e55591a0ca01274ad37fe42e7ab
MD5 756387a4480ed256985229d37b25983f
BLAKE2b-256 008e5dc9353e253add51429f41446a972398425fef52d57e1774a5e8ed92602a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page