coupler#

coupler(*, coupling: float = 0.5, loss: float = 0.0, phi: float = 1.5707963267948966) Dict[Tuple[str, str], jaxtyping.Complex[Array, '...']][source]#

A simple ideal coupler model.

Ports are arranged as follows:

o2 ---\        /--- o3
       --------
       --------
o0 ---/        \--- o1
Parameters
  • coupling (float) – Power coupling coefficient (default 0.5).

  • loss (float) – Loss in dB (default 0.0). Positive values indicate loss.

  • phi (float) – Phase shift of the reflected signal (default jnp.pi/2).

Returns

sdict – A dictionary of scattering matrices.

Return type

sax.SDict