trace
full name: tenpy.linalg.np_conserved.trace
parent module:
tenpy.linalg.np_conserved
type: function
- tenpy.linalg.np_conserved.trace(a, leg1=0, leg2=1)[source]
Trace of a, summing over leg1 and leg2.
Requires that the contracted legs are contractible (i.e. have opposite charges). Labels are inherited from a.