virtual_port_spec¶
- photonforge.virtual_port_spec(num_modes=1, classification='optical', impedance=50)[source]¶
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.
- Parameters:
num_modes (int) – Number of modes supported by the port.
classification (str) – One of
"optical"or"electrical".impedance (complex | Interpolator) – Complex impedance as a single or frequency-dependent interpolated value (in ohms).
- Returns:
Virtual port specification with no path profiles.
- Return type: