detect_qtotal¶
full name: tenpy.linalg.np_conserved.detect_qtotal
parent module:
tenpy.linalg.np_conserved
type: function
-
tenpy.linalg.np_conserved.
detect_qtotal
(flat_array, legcharges, cutoff=None)[source]¶ Returns the total charge (w.r.t legs) of first non-zero sector found in flat_array.
- Parameters
- Returns
qtotal – The total charge fo the first non-zero (i.e. > cutoff) charge block.
- Return type
charge
See also
detect_legcharge()
detects the charges of one missing LegCharge if qtotal is known.
detect_grid_outer_legcharge()
similar functionality if the flat array is given by a ‘grid’.