mm.physics.bargmann.cayley

mrmustard.physics.bargmann.cayley(X, c)[source]

Returns the Cayley transform of a matrix: \(cay(X) = (X - cI)(X + cI)^{-1}\)

Parameters:
  • c (float) – the parameter of the Cayley transform

  • X (Tensor) – a matrix

Returns:

the Cayley transform of X

Return type:

Tensor