TraceNorm
| 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.