tensorly.mps_tensor
.mps_to_unfolded

mps_to_unfolded
(factors, mode)[source] Returns the unfolding matrix of a tensor given in MPS (or TensorTrain) format
Reassembles a full tensor from ‘factors’ and returns its unfolding matrix with mode given by ‘mode’
Parameters: factors: list of 3Darrays
MPS factors
mode: int
unfolding matrix to be computed along this mode
Returns: 2D array
unfolding matrix at mode given by ‘mode’