SyTen

◆ operator+=()

State & syten::MPS::State::operator+= ( State const &  other)

Adds another state to this state as \( |\psi \rangle \to |\psi\rangle + |\textrm{other}\rangle\).

Parameters
otherthe added state
Returns
a handle to *this after addition.

MPS can be added using a tensor addition for each physical index, which is implemented below. The state can then usually be truncated very easily, but this is not done in the function itself.