Coder Social home page Coder Social logo

qo-eth / torchgpe Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 2.0 13.06 MB

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

License: GNU General Public License v3.0

Python 100.00%
boson cuda gross-pitaevskii python pytorch split-step-fourier-method

torchgpe's Introduction

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.

torchgpe's People

Contributors

dreond avatar lorenzofioroni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

huli2023

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.