Code covered by the BSD License  

Highlights from
QUBIT4MATLAB V4.0

from QUBIT4MATLAB V4.0 by Geza Toth
MATLAB package for quantum information science and quantum mechanics.

t=trnorm(A)
% trnorm   Tracenorm of a matrix

function t=trnorm(A)
   t=trace((A*A')^0.5);
   % Get rid of small imaginary part due to the mysteries of MATLAB
   t=real(t);

Contact us at files@mathworks.com