Basic Functions

These functions are common, general use calculations one needs to do.

Linear Algebraic Operations

OperatorMonotoneCorrelationTools.returntocompunitaryFunction
returntocompunitary(A)

Given A in the computational basis, this returns the unitary U such that it takes the eigenbasis of A to the computational basis. This is for taking matrices written in the eigenbasis of A back to the computational basis.

source

Channel Operations

OperatorMonotoneCorrelationTools.choitokrausFunction
choitokraus(choi,dA,dB)

Converts a Choi operator of a linear map to its Kraus representation. The identity relies on the vec mapping in the computational bases: $vec:\vert j \rangle_{B} \langle i \vert_{A} \to \langle i \vert_{A} \langle j \vert _{B}$. This is equivalent to stacking columns of the matrix on top of each other, which is the vec mapping for Julia.

source