-
I have a problem with a lossy intermediate state that I usually represent with a non-hermitian hamiltonian. I don't know if this problem warrants the full complexity of optimization of a dissipative gate as described in this example, but I would like to minimize the population in the lossy state throughout the optimization. I have tried creating a non-Hermitian Hamiltonian, but this resulted in errors from the optimizer, so I assume it's not compatible. Is it best to just use a Liouvillian approach? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
No, that’s the best way to do it, and it absolutely should be supported |
Beta Was this translation helpful? Give feedback.
-
Here is a typical result. If I omit the imaginary elements from the diagonal of the Hamiltonian (i.e. if it is hermitian) then the problem converges.
|
Beta Was this translation helpful? Give feedback.
Ok, so your time propagation is unstable, which means there's something wrong with your Hamiltonian.
Are you using the
:newton
propagation method for the Hermitian case as well? If you're not specifying it explicitly, then you're probably using the default:cheby
, not:newton
. Make sure you can successfully run a propagation withmethod=:newton
for the Hermitian case.In general, before you start doing any optimal control, it's important to have a good understanding of the time propagation first, both in terms of physical behavior and numerical stability. You should analyze the dynamics of your Hamiltonian with a range of reasonable control fields.
How big are the imaginary elements? They…