mm.physics.fock.quadrature_distribution

mrmustard.physics.fock.quadrature_distribution(state, quadrature_angle=0.0, x=None)[source]

Given the ket or density matrix of a single-mode state, it generates the probability density distribution \(\tr [ \rho |x_\phi><x_\phi| ]\) where rho is the density matrix of the state and |x_phi> the quadrature eigenvector with angle phi equal to quadrature_angle.

Parameters:
  • state (Tensor) – single mode state ket or density matrix

  • quadrature_angle (float) – angle of the quadrature basis vector

  • x (Vector) – points at which the quadrature distribution is evaluated

Returns:

coordinates at which the pdf is evaluated and the probability distribution

Return type:

tuple(Vector, Vector)