mm.physics.fock.fidelity
-
mrmustard.physics.fock.fidelity(state_a, state_b, a_ket, b_ket)[source]
Computes the fidelity between two states in Fock representation.
- Return type:
Union
[TypeVar
(R
, float16
, float32
, float64
), TypeVar
(C
, complex64
, complex128
), TypeVar
(Z
, int16
, int32
, int64
), TypeVar
(N
, uint16
, uint32
, uint64
)]
code/api/mrmustard.physics.fock.fidelity