Closed justin-phillips closed 2 years ago
This is weird. The temporary workaround is to use the QuantumOptics.jl samebases macro like this:
@samebases _, ρt = timeevolution.master_dynamic(tspan, ρᵢ_22, (t, ρ) -> (h(t, ρ), [J], [J], [γ]))
I'll try to figure out what's going on. @marwahaha it looks like this has something to do with IonInstance
.
Actually, it's still broken. Sorry about that. We might need to revert back to 0.3 @marwahaha
Thanks for letting me know. I'll take a look this week.
Now after https://github.com/HaeffnerLab/IonSim.jl/releases/tag/v0.4.2 it seems to be working.
Nice it got fixed. @jbroz11 could you add a test (perhaps the one that demonstrated the issue) documenting this behavior?
This would have been caught by any of the test_dynamics tests, so we should be good when that's back up and running.
I would like to apologize in advance if my formatting is not convenient here - I am new to dropping issues here on github and hope that the readability is okay. If you need any more information please let me know!
I had some simple simulations which ran fine for IonSim@0.3.3, but after the update to IonSim@0.4.0, they no longer run.
I have also tried running the examples on the website for IonSim@0.4.0 and they throw an error identical to the one I receive running my code. Reverting to IonSim@0.3.3 fixes the issue for both my own code and for the website examples.
The error QuantumOpticsBase.IncompatibleBases() is thrown on the line
in the following example code. I have many simple simulations like this one which all throw the same error upon the line involving timeevolution.master_dynamic but which involve different numbers of lasers and ions, and different energy levels, laser parameters, etc.
Here is my (cumbersome) stacktrace: