toqito.channels.reduction
- toqito.channels.reduction(dim, k=1)[source]
Produce the reduction map or reduction channel.
If
k = 1, this returns the Choi matrix of the reduction map which is a positive map ondim-by-dimmatrices. For a different value ofk, this yields the Choi matrix of the map defined by:\[R(X) = k * \text{Tr}(X) * \mathbb{I} - X,\]where \(\mathbb{I}\) is the identity matrix. This map is \(k\)-positive.
Examples
Using
toqito, we can generate the \(3\)-dimensional (or standard) reduction map as follows.>>> from toqito.channels import reduction >>> reduction(3) [[ 0., 0., 0., 0., -1., 0., 0., 0., -1.], [ 0., 1., 0., 0., 0., 0., 0., 0., 0.], [ 0., 0., 1., 0., 0., 0., 0., 0., 0.], [ 0., 0., 0., 1., 0., 0., 0., 0., 0.], [-1., 0., 0., 0., 0., 0., 0., 0., -1.], [ 0., 0., 0., 0., 0., 1., 0., 0., 0.], [ 0., 0., 0., 0., 0., 0., 1., 0., 0.], [ 0., 0., 0., 0., 0., 0., 0., 1., 0.], [-1., 0., 0., 0., -1., 0., 0., 0., 0.]])
- Parameters:
dim – A positive integer (the dimension of the reduction map).
k – If this positive integer is provided, the script will instead return the Choi matrix of the following linear map: Phi(X) := K * Tr(X)I - X.
- Returns:
The reduction map.