fidelity

fidelity(state1, state2)

Calculates the fidelity between the two input states.

Parameters:
  • state1, state2 : ndarray

    Input arrays to calculate the fidelity between. Can be pure states or density matrices.

Returns:
  • val : float

    The calculated fidelity.


Contact

In case you have any further questions about the Python code, you should direct them to Scott Turro or Joey Shallat.