1
$\begingroup$

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?

$\endgroup$
2
  • $\begingroup$ hey, let it qutip calculate the fidelity, you can also calculate your own fidelity. just take the final result by the comment result.evo_full_final (if I remember well, this is the final unitary) and then calculate your fidelity function $\endgroup$ Commented Jan 18, 2023 at 0:52
  • $\begingroup$ @quest Thanks! That makes sense. $\endgroup$ Commented Jan 18, 2023 at 1:04

1 Answer 1

1
$\begingroup$

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

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.