Hi Sid,
Sorry for the delayed reply.
Part of the reason for the long initial construction time for the OBEs is because pylcp computes the coherent portion of the density matrix evolution through commutators, and with 72 basis states, that commutator is going to take a while to evaluate.
As for changing parameters of the laser beams or the magnetic fields, you can do that after the OBEs have been initially generated. What you can do is the following:
```
# Make your original obe:
eqn = obe(…)
# Calculate what you need:
eqn.generate_force_profile(…)
# Now generate your new laserBeams:
newLaserBeams = pylcp.laserBeams(…)
# Overwrite the copy of the laser beams originally passed
# when you generated the OBEs:
eqn.laserBeams = newlaserBeams
```
I think this will work, but I cannot guarantee it. When obe is initially called, it actually makes a copy of the laserBeams object you give to it and stores it as an attribute. I coded this in because I was nervous that changing either laserBeams or magField on the fly might have unanticipated consequences. For your case where you want to change intensity and detuning though, I think this simple hack will work.
What you absolutely cannot change is the Hamiltonian. If you are putting the detunings on the Hamiltonian rather than on the laserBeams, I’m afraid you will have to regenerate the OBEs everytime.
Good luck!
-Steve
--
You received this message because you are subscribed to the Google Groups "pylcp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
pylcp+un...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/pylcp/105180c6-4b2e-4529-832c-0e8cca3aac98n%40googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.