Ttclass/ranks.m

From Spinach Documentation Wiki
Revision as of 15:04, 5 April 2026 by Kuprov (talk | contribs) (Sync syntax/arguments/outputs with current Spinach source)
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.