Skip to content

virtual_port_spec

virtual_port_spec(
num_modes: int = 1,
classification: str = 'optical',
impedance: complex | photonforge.Interpolator = 50,
) -> photonforge.PortSpec

Template to generate a virtual PortSpec.

Virtual port specs have no path profiles and can be used to help with schematic-driven design before any layout is created.

Args

  • num_modes: Number of modes supported by the port.
  • classification: One of "optical" or "electrical".
  • impedance: Complex impedance as a single or frequency-dependent interpolated value (in ohms).

Returns

Virtual port specification with no path profiles.