TraceNorm: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{Function |name=TraceNorm |desc=Computes the trace norm of an operator |req=kpNorm |rel=KyFanNorm<br />SchattenNorm |upd=December 1, 2012 |v=1.00}} <tt>'''Tra..." |
No edit summary |
||
| Line 2: | Line 2: | ||
|name=TraceNorm | |name=TraceNorm | ||
|desc=Computes the [[trace norm]] of an operator | |desc=Computes the [[trace norm]] of an operator | ||
| | |rel=[[kpNorm]]<br />[[KyFanNorm]]<br />[[SchattenNorm]] | ||
|cat=[[List of functions#Norms|Norms]] | |||
|upd=December 1, 2012 | |upd=December 1, 2012 | ||
|v= | |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. | ||
| Line 17: | Line 17: | ||
===Trace norm of a density matrix=== | ===Trace norm of a density matrix=== | ||
Density matrices all have trace norm equal to 1: | Density matrices all have trace norm equal to 1: | ||
< | <syntaxhighlight> | ||
>> rho = | >> rho = RandomDensityMatrix(100); | ||
>> TraceNorm(rho) | >> TraceNorm(rho) | ||
| Line 24: | Line 24: | ||
1.0000 | 1.0000 | ||
</ | </syntaxhighlight> | ||
{{SourceCode|name=TraceNorm}} | |||
Revision as of 17:14, 22 September 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.0000Source code
Click here to view this function's source code on github.