Coder Social home page Coder Social logo

ohadmich / scientific-tools Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.19 MB

This repository contains some useful scientific functions that I created for my daily research work.

Python 100.00%
pulse-shaping scientific-software scientific-research magnetic-field python

scientific-tools's Introduction

Scientific_Tools

This repository contains some useful scientific functions that I created for my daily research work. Below you can find a short summary of the tools and some output examples.

Bfield Estimator

Computes the magnitude of the magnetic field (B0) and the angle relative to the NV axis (theta) based on the measured frequencies of the ms=0-->ms=1 and ms=0-->ms=-1 transitions (f = [f0,f1])

In the following example BfieldEstimator was used to estimate the magnetic field magnitude and direction based on the transition frequencies between the spin states in the NV centers's ground state which were extracted from a fit to the data:

Beam Waist Calculator

This code takes an image of a laser beam as an input, fits the data to a 2D Gaussian beam, plots the fit laid over the data and displays the waist value next to a one standard deviation error size.

Here is an example for a 2D Gaussian fit (white contours) to a beam image (color scale) and the extracted waist value:

Pulse Shaping

This code simulates the time evolution of a spin under the application of an arbitrary shaped microwave pulse. Start by defining a pulse shape by setting the pulse amplitude (Omega_t) and frequency (delta_t) functions, make sure that the plotted pulse is correct since this is the data that is used later on for the computation. The Spin evolution is computed for the pulse and a 2D plot of the spin components over time is plotted followed by a 3D plot of the spin trace on the bloch sphere.

Finally, a population (absorption) and dispertion profiles are computed and plotted a function of pulse detuning from the spin resonance frequency.

Output example:

Mechanical Dressed States

This script investigates the mechanical interaction of spin states in an NV center's triplet ground state. We choose to discuss only the mI=+1 subspace of the nitrogen 14 hyperfine states, and also take into account additional spin coupling (A) to some spin 1/2 system in the lattice (such as carbon 13). We compute the energy of dressed states that emerge from a mechanical coupling between the ms=+1 and ms = -1 states (Omega_m), plot their magnetic field dependance and quantify their protection from magnetic noise.

Output example:

scientific-tools's People

Contributors

ohadmich avatar

Stargazers

 avatar  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.