Skip to content

Commit

Permalink
Added section on Distributed computing
Browse files Browse the repository at this point in the history
  • Loading branch information
matteoacrossi committed Aug 27, 2018
1 parent 0939099 commit 66521c2
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ Fisher information for magnetometry with continuously monitored spin systems, wi
## Installation

From the Julia `pkg` REPL (press `]`)
```
```julia
pkg> add https://github.com/matteoacrossi/ContinuousMeasurementFI
```

## Usage

```
```julia
using ContinuousMeasurementFI
(t, FI, QFI) = Eff_QFI(kwargs...)
```
Expand All @@ -42,7 +42,7 @@ vectors containing the FI and average QFI
* `η = 1`: measurement efficiency

### Example
```
```julia
using Plots
include("Eff_QFI.jl")

Expand All @@ -52,5 +52,20 @@ plot(t, (fi + qfi)./t, xlabel="t", ylabel="Q/t")

![](readme.png)


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

```julia
using Distributed

addprocs(#_of_processes)

@everywhere using ContinuousMeasurementFI
(t, FI, QFI) = Eff_QFI(kwargs...)
```
## Dependencies
* [`ZChop`](https://github.com/jlapeyre/ZChop.jl) for rounding off small imaginary parts in ρ

0 comments on commit 66521c2

Please sign in to comment.