IsHermPreserving

From QETLAB
Revision as of 16:24, 21 January 2013 by Nathaniel (talk | contribs) (Created page with "{{Function |name=IsHermPreserving |desc=Determines whether or not a superoperator is Hermiticity preserving |rel=IsCP |upd=January 4, 2013 |v=1.00}} <tt>'''IsHermP...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
IsHermPreserving
Determines whether or not a superoperator is Hermiticity preserving

Other toolboxes required none
Related functions IsCP

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 triangleq \frac{1}{\sqrt{2}}\begin{bmatrix}1 & 1 \\ -1 & 1\end{bmatrix}$.

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

ans =

     1