ttclass/rand.m

From Spinach Documentation Wiki
Revision as of 15:50, 5 April 2026 by Kuprov (talk | contribs) (Restore pre-bulk-edit wiki content)
Jump to: navigation, search


Generates tensor train matrix with random entries, same physical index topology at the tensor train supplied, and specified TT-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