mm.physics.fock.wigner_to_fock_Choi

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

Returns the Fock representation of a Gaussian Choi matrix. The order of choi indices is \([\mathrm{out}_l, \mathrm{in}_l, \mathrm{out}_r, \mathrm{in}_r]\) where \(\mathrm{in}_l\) and \(\mathrm{in}_r\) are to be contracted with the left and right indices of a density matrix.

Parameters:
  • X – the X matrix

  • Y – the Y matrix

  • d – the d vector

  • shape – the shape of the tensor

Returns:

the fock representation of the Choi matrix

Return type:

Tensor