OxIonics / ionics_fits

Small python fitting library with an emphasis on Atomic Molecular and Optical Physics
Apache License 2.0
0 stars 0 forks source link

WIP: proof of concept for LaserFlop code #35

Closed hartytp closed 1 year ago

hartytp commented 1 year ago

Proof of concept for a restructuring of the laser flop code.

The big change compared with https://github.com/OxIonics/ionics_fits/pull/34 is that we use encapsulation to different distributions of motional states rather than inheritance.

I've also tidied up the numerics a bit to be simpler and added a test that one can run with poe test -k laser. NB the test is junk right now but I'm just using it to plot the model function for debugging.

Right now the code gives obvious garbage (probabilities greater than 1) but my aim was to just to spend a few hours getting something to the point needed for discussion so I haven't begun debugging...

cc @AUTProgram

hartytp commented 1 year ago

This now has all the functionality that I /think/ we need here.

hartytp commented 1 year ago

@AUTProgram is there anything useful in this branch? Shall I close and delete?