virtual_port_spec

photonforge.virtual_port_spec(num_modes=1, classification='optical')[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".

Returns:

Virtual port specification with no path profiles.

Return type:

PortSpec