mm.physics.trace_distance

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

Calculates the trace distance between two quantum states.

Parameters:
Returns:

the trace distance between the two states

Return type:

float