I want to do some quick GRAPE calculations in Python. The qutip implementation is handy but I can't modify the fidelity function. However, I need to use my own fidelity function to evaluate fidelity. Are there other options or ways to use customize fidelity measure with qutip?
1 Answer
I ended up modifying qutip for this purpose and it was kind of painful. There are several classes that need to be modified. You can check my repo for that version. https://github.com/PiggsBoson/qutip
result.evo_full_final
(if I remember well, this is the final unitary) and then calculate your fidelity function $\endgroup$