mm.physics.triples.squeezing_gate_Abc¶
- mrmustard.physics.triples.squeezing_gate_Abc(r, delta=0)[source]¶
The
(A, b, c)
triple of a tensor product of squeezing gates.The number of modes depends on the length of the input parameters.
If one of the input parameters has length
1
, it is tiled so that its length matches that of the other one. For example, passingr=[1,2,3]
anddelta=1
is equivalent to passingr=[1,2,3]
anddelta=[1,1,1]
.- Parameters:
r (
Union
[float
,Iterable
[float
]]) – The squeezing magnitudes.delta (
Union
[float
,Iterable
[float
]]) – The squeezing angles.
- 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 squeezing gates.