-
Symbol of Operator.
(const Operator lhs - const Operator rhs) -> Operator
Subtracts one operator from another. Returns a generic Operator for basic subtractions, ComplexOperatorSum when explicitly working with complex coefficients.
Parameters
- lhs: Left-hand side value.
- rhs: The operator being subtracted (subtrahend).
Returns
An Operator (generic) or ComplexOperatorSum representing the difference.
Example
var diff1 = X(0) - Y(0) // Operator - Operator → Operator (generic)
var diff2 = 2.0*X(0) - Y(0) // RealOperatorSum - Operator → RealOperatorSum
var diff3 = X(0) - (2+1i)*Y(1) // Operator - ComplexOperatorSum → ComplexOperatorSum