tlquantum.tt_sum.tt_sum

tlquantum.tt_sum.tt_sum(t1, t2)[source]

Sums two TT tensors in decomposed form

Parameters:
t1tt-tensor
t2tt-tensor
Returns:
tt-tensor sum of t1 and t2

Notes

The solution can be easily seen by writing the element-wise expression. The sum of two third order cores A and B becomes a new core:

| A(i)  0  |
|  0   B(i)|
In the code, we first form the two columns which we then concatenate::
A(i) | | 0 |
0 | | B(i)|