mm.physics.triples.attenuator_Abc

mrmustard.physics.triples.attenuator_Abc(eta)[source]

The (A, b, c) triple of of a tensor product of atternuators.

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

Parameters:

eta (Union[float, Iterable[float]]) – The values of the transmissivities.

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 attenuator channels.

Raises:

ValueError – If eta is larger than 1 or smaller than 0.