RobustnessCoherence

RobustnessCoherence is a function that computes the robustness of coherence of a quantum state $\rho$, defined as follows :


 * $$C_{R}(\rho) := \min_{\tau}\left\{s \geq 0 \, \Big| \, \frac{\rho + s\tau}{1+s} \in \mathcal{I}\right\},$$

where the minimization is over all density matrices $\tau$ and $\mathcal{I}$ is the set of incoherent density matrices (i.e., the set of density matrices that are diagonal in the computational basis).

Syntax

 * ROC = RobustnessCoherence(RHO)

Argument descriptions

 * RHO: A state (either pure or mixed) to have its robustness of coherence computed.

Pure states
If $|v\rangle$ is a pure state then its robustness of coherence and ℓ1-norm of coherence coincide:

Can be used within CVX
The robustness of coherence is a convex function and can be used in the same way as any other convex function within CVX. Thus you can minimize the robustness of coherence or use the robustness of coherence in constraints of CVX optimization problems. For example, the following code minimizes the robustness of coherence over all density matrices that are within a trace distance of $1/2$ from the maximally coherent state $|v\rangle = (1,1,1,1,1)/\sqrt{5}$: