QuantumUtils / quantum-utils-mathematica

QuantumUtils for Mathematica is a software library for quantum information scientists.
Other
76 stars 18 forks source link

Grape optimization #17

Closed MichalKononenko closed 7 years ago

MichalKononenko commented 7 years ago

Here's how I understand it

The propagator for any unit time is piecewise continuous. That means that we can express it as a product of matrix exponentials. So instead of evaluating all the matrix exponentials individually, I summed the Hamiltonians and then did the matrix exponential.

Please break this. This is probably way too good to be true, but it works.

MichalKononenko commented 7 years ago

I just realized this really shouldn't be merged until we get a fuller optimization up and running.

ihincks commented 7 years ago

This is indeed too good to be true; it will break whenever the Hamiltonian does not commute with itself at different time steps. Generally, exp(A+B) != exp(A)exp(B) except when [A,B]=0.