TraceNorm: Difference between revisions

From QETLAB
Jump to navigation Jump to search
No edit summary
Updated function so that it plays well with CVX variables
Line 4: Line 4:
|rel=[[kpNorm]]<br />[[KyFanNorm]]<br />[[SchattenNorm]]
|rel=[[kpNorm]]<br />[[KyFanNorm]]<br />[[SchattenNorm]]
|cat=[[List of functions#Norms|Norms]]
|cat=[[List of functions#Norms|Norms]]
|upd=December 1, 2012
|upd=October 22, 2014
|v=0.50}}
|v=0.50}}
<tt>'''TraceNorm'''</tt> is a [[List of functions|function]] that computes the [[trace norm]] of an operator (i.e., the sum of its singular values). It works with both full and sparse matrices.
<tt>'''TraceNorm'''</tt> is a [[List of functions|function]] that computes the [[trace norm]] of an operator (i.e., the sum of its singular values). It works with both full and sparse matrices.

Revision as of 20:58, 22 October 2014

TraceNorm
Computes the trace norm of an operator

Other toolboxes required none
Related functions kpNorm
KyFanNorm
SchattenNorm
Function category Norms

TraceNorm is a function that computes the trace norm of an operator (i.e., the sum of its singular values). It works with both full and sparse matrices.

Syntax

  • NRM = TraceNorm(X)

Argument descriptions

  • X: An operator to have its trace norm computed.

Examples

Trace norm of a density matrix

Density matrices all have trace norm equal to 1:

>> rho = RandomDensityMatrix(100);
>> TraceNorm(rho)

ans =

    1.0000

Source code

Click here to view this function's source code on github.