Skip to content

s_to_z_matrix

s_to_z_matrix(s_matrix, impedances=50.0)

Convert an S-matrix (scattering matrix) to a Z-matrix (impedance matrix).

Uses the travelling-wave S-parameter convention (inverse of z_to_s_matrix).

Note

The |v_0|/v_0 phase correction factor from the full travelling-wave definition is omitted. This is exact for lossless reference media and an excellent approximation for low-loss ports.

Args

  • s_matrix (SMatrix): The scattering matrix to convert.
  • impedances (complex | float | dict[str, complex | float]): Reference impedance(s). If a single number, all terminals use the same impedance. If a dict, maps terminal names to their reference impedances. Defaults to 50.0.

Returns

ZMatrix: The converted impedance matrix.