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

Initial commit of model for squeezed motional state #96

Closed AUTProgram closed 11 months ago

AUTProgram commented 11 months ago

This PR adds the ability to fit laser flops for squeezed motional states.

Additionally, it makes the following minor modifications: -) When calculating transition probabilities in LaserFlop, the np.tile function is no longer used. Calling this was not necessary since the array containing occupation probabilities for Fock states (now called P_fock_i) is broadcast anyway to match the shape of P_trans. In fact, the numpy documentation explicitly recommends not to use the tile function for broadcasting: image -) I have expanded the docstring for LaserFlop a bit to reflect that, contrary to RabiFlop, this class assumes that the system has a motional degree of freedom.