Code Monkey home page Code Monkey logo

continuousmeasurementfi's Introduction

ContinuousMeasurementFI

DOI

Fisher information for magnetometry and frequency estimation with continuously monitored spin systems, with independent Markovian noise acting on each spin.

Companion code for F. Albarelli, M. A. C. Rossi, D. Tamascelli, and M, G. Genoni, Quantum 2, 110 (2018).

The algorithm is described in Sec. V of the paper.

Installation

This version is compatible with Julia v0.7 onwards

From the Julia pkg REPL (press ])

  pkg> add https://github.com/matteoacrossi/ContinuousMeasurementFI

Usage

    using ContinuousMeasurementFI
    (t, FI, QFI) = Eff_QFI(kwargs...)

Evaluate the continuous-time FI and QFI of a final strong measurement for the estimation of the frequency ω with continuous monitoring of each half-spin particle affected by noise at an angle θ, with efficiency η using SME (stochastic master equation) or SSE (stochastic Schrödinger equation).

The function returns a tuple (t, FI, QFI) containing the time vector and the vectors containing the FI and average QFI

Arguments

  • Nj: number of spins
  • Ntraj: number of trajectories for the SSE
  • Tfinal: final time of evolution
  • measurement = :pd measurement (either :pd or :hd)
  • dt: timestep of the evolution
  • κ = 1: the noise coupling
  • θ = 0: noise angle (0 parallel, π/2 transverse)
  • ω = 0: local value of the frequency
  • η = 1: measurement efficiency

Example

using Plots
include("Eff_QFI.jl")

(t, fi, qfi) = Eff_QFI(Nj=5, Ntraj=10000, Tfinal=5., dt=.1; measurement=:pd, θ = pi/2, ω = 1)
plot(t, (fi + qfi)./t, xlabel="t", ylabel="Q/t")

Distributed computing

ContinuousMeasurementFI can parallelize the Montecarlo evaluation of trajectories using the builtin distributed computing system of Julia

using Distributed

addprocs(#_of_processes)

@everywhere using ContinuousMeasurementFI
(t, FI, QFI) = Eff_QFI(kwargs...)

Dependencies

  • ZChop for rounding off small imaginary parts in ρ

Citing

If you found the code useful for your research, please cite the paper:

F. Albarelli, M. A. C. Rossi, D. Tamascelli, and M, G. Genoni, Quantum 2, 110 (2018).

License

MIT License

continuousmeasurementfi's People

Contributors

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