ttclass/rand.m

From Spinach Documentation Wiki
Revision as of 15:13, 5 April 2026 by Kuprov (talk | contribs) (Normalise remaining wiki page to current Spinach source header)
Jump to: navigation, search


Generates a tensor train representation of a matrix with random tensor train cores, same physical index topology at the tensor train supplied, and user-specified bond ranks.

Syntax

tt=rand(tt,ttrank)

Arguments

tt     - a tensor train object
   ttrank - bond rank, a positive integer

Outputs

tt     - a tensor train object
d.savostyanov@soton.ac.uk
ilya.kuprov@weizmann.ac.il