Difference between revisions of "Ttclass/ranks.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Sync syntax/arguments/outputs with current Spinach source)
(Sync syntax/arguments/outputs with current Spinach source)
Line 1: Line 1:
 
Returns the bond dimensions of a tensor train. Syntax:
 
Returns the bond dimensions of a tensor train. Syntax:
 +
  
  

Revision as of 15:12, 5 April 2026

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.