Ranks.m

From Spinach Documentation Wiki
Jump to: navigation, search

Returns the bond dimensions of a tensor train. Syntax:

                   ttranks=ranks(ttrain)

The output is (ncores+1) by (ntrains) array. The first and the last elements for each train are 1.