Code Monkey home page Code Monkey logo

spintorch's Introduction

SpinTorch

SpinTorch is a micromagnetic simulator with machine-learning capabilities. The code is based on PyTorch, which makes it able to realize gradient-based optimization and machine-learning tasks in the spin-wave domain.

Check out our paper for more information about our results: Papp, Á., Porod, W. & Csaba, G. Nanoscale neural network using non-linear spin-wave interference. Nat Commun 12, 6422 (2021). https://doi.org/10.1038/s41467-021-26711-z

Focusing of spin waves

Try it!

Just run the provided example script focus.py, and look for results in the plots folder. You can play around with the parameters in the script, and try the three different optimization geometries that are currently implemented. This example will run on a modern laptop with an entry level Nvidia GPU in just a few minutes.

Requirements

The code is currently tested with PyTorch 1.10.1, Python 3.9.9, CUDA 11.3, and up-to-date versions of a few other standard packages, older versions might not work out-of-the-box. It can run on both CPU and GPU (Nvidia), but GPU operation is preferred, CPU is much slower and not tested. GPU requirements are the same as required by PyTorch.

spintorch's People

Contributors

a-papp avatar mokka03 avatar

Stargazers

leevy avatar  avatar Stefan Tibus avatar Dongyi Li avatar Maciej Lewandowski avatar Will Henderson avatar  avatar  avatar Jakub avatar Fernando García-Redondo avatar Claas Abert avatar

Watchers

 avatar

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.