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:
-) 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.
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
, thenp.tile
function is no longer used. Calling this was not necessary since the array containing occupation probabilities for Fock states (now calledP_fock_i
) is broadcast anyway to match the shape ofP_trans
. In fact, the numpy documentation explicitly recommends not to use thetile
function for broadcasting: -) I have expanded the docstring forLaserFlop
a bit to reflect that, contrary toRabiFlop
, this class assumes that the system has a motional degree of freedom.