adder

photonforge.abstract.adder(*, scale=1.0, weight0=1.0, weight1=1.0)[source]

Abstract electrical adder: linearly combine 2 inputs.

Based on photonforge.ExpressionTimeStepper.

Parameters:
  • scale (float) – Output scaling factor.

  • weight0 (float) – Weight applied to the signal from the first port.

  • weight1 (float) – Weight applied to the signal from the second port.

Return type:

Component