Gaussian¶
Returns the fidelity of two gaussian states. |
|
Returns the photon number means vector given a Wigner covariance matrix and a means vector. |
|
Returns the purity of the state with the given covariance matrix. |
|
Returns the sympletic eigenspectrum of a covariance matrix. |
|
Returns the Von Neumann entropy. |
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.
number_means¶
purity¶
symplectic_eigenvals¶
von_neumann_entropy¶
- mrmustard.physics.gaussian.von_neumann_entropy(cov)[source]¶
Returns the Von Neumann entropy.
For a pure state, we expect the Von Neumann entropy to be 0.
Reference: (https://arxiv.org/pdf/1110.3234.pdf), Equations 46-47.
- Parameters:
cov (Matrix) – the covariance matrix
- Returns:
the Von Neumann entropy
- Return type:
float
code/physics/gaussian
Download Python script
Download Notebook
View on GitHub