mm.physics.triples.displaced_squeezed_vacuum_state_Abc

mrmustard.physics.triples.displaced_squeezed_vacuum_state_Abc(x, y=0, r=0, phi=0)[source]

The (A, b, c) triple of a tensor product of displazed squeezed vacuum states.

The number of modes depends on the length of the input parameters.

If some of the input parameters have length 1, they are tiled so that their length matches that of the other ones. For example, passing r=[1,2,3] and phi=1 is equivalent to passing r=[1,2,3] and phi=[1,1,1].

Parameters:
  • r (Union[float, Iterable[float]]) – The squeezing magnitudes.

  • phi (Union[float, Iterable[float]]) – The squeezing angles.

  • x (Union[float, Iterable[float]]) – The real parts of the displacements, in units of \(\sqrt{\hbar}\).

  • y (Union[float, Iterable[float]]) – The imaginary parts of the displacements, in units of \(\sqrt{\hbar}\).

Return type:

Union[ndarray[Tuple[int, int], Union[TypeVar(R, float16, float32, float64), TypeVar(C, complex64, complex128), TypeVar(Z, int16, int32, int64), TypeVar(N, uint16, uint32, uint64)]], ndarray[Tuple[int], Union[TypeVar(R, float16, float32, float64), TypeVar(C, complex64, complex128), TypeVar(Z, int16, int32, int64), TypeVar(N, uint16, uint32, uint64)]], TypeVar(R, float16, float32, float64), TypeVar(C, complex64, complex128), TypeVar(Z, int16, int32, int64), TypeVar(N, uint16, uint32, uint64)]

Returns:

The (A, b, c) triple of the squeezed vacuum states.