TensorSum

TensorSum is a function that computes a vector or operator from its tensor decomposition. It acts as an inverse of the OperatorSchmidtDecomposition and SchmidtDecomposition functions, but also works for multipartite decompositions.

Syntax

 * TS = TensorSum(A1,A2,...)
 * TS = TensorSum(S,A1,A2,...)

Argument descriptions

 * A1,A2,...: Either matrices or cells containing matrices (and they should all be the same: either all matrices or all cells). If they are matrices, then the k-th column of each Ai will be tensored together for all k, and then the sum over k will be taken at the end. If they are cells, then the k-th element of each Ai will be tensored together for all k, and then the sum over k will be taken at the end.
 * S</tt> (optional, default [1,1,...,1]</tt>): A vector of weights (such as Schmidt coefficients) that will be applied when summing the terms at the end of the computation.

Inverse of SchmidtDecomposition</tt>
This function acts as an inverse of the SchmidtDecomposition</tt> function:

Inverse of OperatorSchmidtDecomposition</tt>
This function also acts as an inverse of the OperatorSchmidtDecomposition</tt> function: