Skip to content

PyTorch solver for the Gross–Pitaevskii (non-linear Schrödinger) equation with arbitrary self-consistent and time-dependent potentials.

License

Notifications You must be signed in to change notification settings

qo-eth/TorchGPE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TorchGPE

Description

TorchGPE is a python package for solving the Gross-Pitaevskii equation (GPE). The numerical solver is designed to integrate a wave function in a variety of linear and non-linear potentials. The code is based on symmetric Fourier split-step propagation, both in real and imaginary time. It has a modular approach that allows the integration of arbitrary self-consistent and time-dependent potentials.

Installation

The code uses PyTorch tensors to speed up the calculation (which heavily relies on FFTs). You can check if cuda is available on your system with

import torch
torch.cuda.is_available()

If not, the default device is set to CPU.

Installing via pip

The package can be installed via pip

pip install git+https://github.com/qo-eth/TorchGPE.git

Or, if you already downloaded the repository, run

pip install .

from the locally cloned directory.

Documentation

Full documentation for this repository is available here.

Credits

The code was created within the Quantum Optics research group at ETH Zurich.

About

PyTorch solver for the Gross–Pitaevskii (non-linear Schrödinger) equation with arbitrary self-consistent and time-dependent potentials.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages