sf.physics.fidelity

mrmustard.physics.fidelity(A, B)[source]

Calculates the fidelity between two quantum states.

Parameters:
Returns:

The fidelity between the two states.

Return type:

float