mm.physics.fock.wigner_to_fock_U

mrmustard.physics.fock.wigner_to_fock_U(X, d, shape)[source]

Returns the Fock representation of a Gaussian unitary transformation. The index order is out_l, in_l, where in_l is to be contracted with the indices of a ket, or with the left indices of a density matrix.

Parameters:
  • X – the X matrix

  • d – the d vector

  • shape – the shape of the tensor

Returns:

the fock representation of the unitary transformation

Return type:

Tensor