mm.physics.gaussian.fidelity¶
- mrmustard.physics.gaussian.fidelity(mu1, cov1, mu2, cov2)[source]¶
Returns the fidelity of two gaussian states.
Reference: arXiv:2102.05748, equations 95-99. Note that we compute the square of equation 98.
- Parameters:
mu1 (Vector) – the means vector of state 1
mu2 (Vector) – the means vector of state 2
cov1 (Matrix) – the covariance matrix of state 1
cov1 – the covariance matrix of state 2
- Returns:
the fidelity
- Return type:
float
code/api/mrmustard.physics.gaussian.fidelity
Download Python script
Download Notebook
View on GitHub