Skip to main content

+=

Symbol of ComplexMPS.

(ComplexMPS lhs += const ComplexMPS rhs) -> ComplexMPS​

In-place addition of two Matrix Product States (MPS) with Complex values.

Adds the right-hand side MPS to the left-hand side MPS, modifying the left operand in-place.

Parameters​

  • lhs: Left-hand side value.
  • rhs: The right-hand side Matrix Product State to add.

Returns​

Reference to the modified MPS.