Giter Site home page Giter Site logo

gharib85 / collectivespins.jl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qojulia/collectivespins.jl

0.0 2.0 0.0 1.12 MB

Simulate quantum systems consisting of many spins interacting via dipole-dipole interaction

License: Other

Julia 98.28% Python 1.72%

collectivespins.jl's Introduction

CollectiveSpins.jl

CollectiveSpins.jl is a numerical framework written in Julia used to simulate quantum systems consisting of spatially distributed spins coupled via dipole-dipole interaction.

Development status

  • Linux/Mac build: Travis build status
  • Windows build: Windows build status
  • Test coverage: Test coverage status on coveralls Test coverage status on codecov

Installation

CollectiveSpins.jl is not an officially registered package but it nevertheless can be installed using julia's package manager:

julia> Pkg.clone("https://github.com/qojulia/CollectiveSpins.jl.git")

Example

using CollectiveSpins

# Define geometry of system
N = 5     # Number of spins
a = 0.3   # spin-spin distance
geometry = CollectiveSpins.geometry.chain(a, N)

# Create system consisting of N spins in the defined geometry
e = [0,0,1]   # Quantization axis
system = CollectiveSpins.SpinCollection(geometry, e)

# Initial quantum state
phi = 0.
theta = pi/2
Ψ0 = CollectiveSpins.quantum.blochstate(phi, theta, N)

# Perform time evolution according to master equation
T = [0:0.05:5.;]
tout, ρt = CollectiveSpins.quantum.timeevolution(T, system, Ψ0)

Documentation

The documentation is generated with Documenter.jl and can be found at

https://qojulia.github.io/CollectiveSpins.jl/latest

collectivespins.jl's People

Contributors

bastikr avatar david-pl avatar lostermann avatar raphael3d avatar

Watchers

James Cloos avatar Ahmed Moawad 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.