IsHermPreserving

 Other toolboxes required IsHermPreserving Determines whether or not a superoperator is Hermiticity preserving none IsCP Superoperators

IsHermPreserving is a function that determines whether or not a given superoperator is Hermiticity preserving.

Syntax

• HP = IsHermPreserving(PHI)
• HP = IsHermPreserving(PHI,TOL)

Argument descriptions

• PHI: A superoperator. Should be provided as either a Choi matrix, or as a cell with either 1 or 2 columns (see the tutorial page for more details about specifying superoperators within QETLAB).
• TOL (optional, default eps^(3/4)): The numerical tolerance used.

Examples

The following code verifies that the map $\Phi$ defined by $\Phi(X) = X - UXU^*$ is Hermiticity preserving, where $U = \frac{1}{\sqrt{2}}\begin{bmatrix}1 & 1 \\ -1 & 1\end{bmatrix}$.

>> U = [1 1;-1 1]/sqrt(2);
>> Phi = {eye(2),eye(2); U,-U};
>> IsHermPreserving(Phi)

ans =

1

Source code

Click on "expand" to the right to view the MATLAB source code for this function.