infidelity

forest.benchmarking.distance_measures.infidelity(rho: numpy.ndarray, sigma: numpy.ndarray, tol: float = 1000) → float

Computes the infidelity, \(1 - F(\rho, \sigma)\), between two quantum states rho and sigma where \(F(\rho, \sigma)\) is the fidelity.

Parameters:
  • rho – Is a dim by dim positive matrix with unit trace.
  • sigma – Is a dim by dim positive matrix with unit trace.
  • tol – Tolerance in machine epsilons for np.real_if_close.
Returns:

Infidelity which is a scalar.