1

I am using QuTip to simulate a quantum gate, and I want to calculate the average fidelity of the gate. I have the Hamiltonian, the interaction time, and Liouvillian modeling the decoherence. Is there any easy way that I can get average fidelity from above objects? If there is not, then how to do it? Thank you!

user26199
  • 11
  • 1

1 Answers1

1

Since you know which quantum gate you want to implement, you can use the following function: average_gate_fidelity average_gate_fidelity. You need to provide your target unitary (i.e., the gate you want to implement) and your superoperator. Alternatively, you can use the Qiskit version of the function, which accepts the unitary you have implemented and your target unitary qiskit version. Since you can easily convert one matrix type to the other, it doesn't really matter which library you are using, as long as you specify the matrix types carefully (e.g., Qobj or Superoperator, etc.).

quest
  • 704
  • 4
  • 11