Skip to content

abstract.adder

adder(
*, scale: float = 1.0, weight0: float = 1.0, weight1: float = 1.0
) -> photonforge.Component

Abstract electrical adder: linearly combine 2 inputs.

Based on ExpressionTimeStepper.

Args

  • scale: Output scaling factor.
  • weight0: Weight applied to the signal from the first port.
  • weight1: Weight applied to the signal from the second port.