mm.physics.triples.displacement_map_s_parametrized_Abc¶
- mrmustard.physics.triples.displacement_map_s_parametrized_Abc(s, n_modes)[source]¶
The
(A, b, c)
triple of a multi-modes
-parametrized displacement map. :math:D_s(vec{gamma}^*, vec{gamma}) = e^{frac{s}{2}|vec{gamma}|^2} D(vec{gamma}^*, vec{gamma}) = e^{frac{s}{2}|vec{gamma}|^2} e^{frac{1}{2}|vec{z}|^2} e^{vec{z}^*vec{gamma} - vec{z} vec{gamma}^*}.
The indices of the final triple correspond to the variables \((\gamma_1^*, \gamma_2^*, ..., z_1, z_2, ..., \gamma_1, \gamma_2, ..., z_1^*, z_2^*, ...)\) of the Bargmann function of the s-parametrized displacement map, and correspond to
out_bra, in_bra, out_ket, in_ket
wires.- Parameters:
s (
int
) – The phase space parametern_modes (
int
) – the number of modes for this map.
- 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 multi-modes
-parametrized dispalcement map \(D_s(\gamma)\).