toqito.channels.realignment
- toqito.channels.realignment(input_mat, dim=None)[source]
Compute the realignment of a bipartite operator [LAS08].
Gives the realignment of the matrix
input_mat, where it is assumed that the number of rows and columns ofinput_matare both perfect squares and both subsystems have equal dimension. The realignment is defined by mapping the operator \(|ij \rangle \langle kl |\) to \(|ik \rangle \langle jl |\) and extending linearly.If
input_matis non-square, different row and column dimensions can be specified by putting the row dimensions in the first row ofdimand the column dimensions in the second row ofdim.Examples
The standard realignment map
Using
toqito, we can generate the standard realignment map as follows. When viewed as a map on block matrices, the realignment map takes each block of the original matrix and makes its vectorization the rows of the realignment matrix. This is illustrated by the following small example:>>> from toqito.channels import realignment >>> import numpy as np >>> test_input_mat = np.array( >>> [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]] >>> ) >>> realignment(test_input_mat) [[ 1 2 5 6] [ 3 4 7 8] [ 9 10 13 14] [11 12 15 16]]
References
[LAS08]Lupo, Cosmo, Paolo, Aniello, and Scardicchio, Antonello. “Bipartite quantum systems: on the realignment criterion and beyond.” Journal of Physics A: Mathematical and Theoretical 41.41 (2008): 415301. https://arxiv.org/abs/0802.2019
- Parameters:
input_mat – The input matrix.
dim – Default has all equal dimensions.
- Raises:
ValueError – If dimension of matrix is invalid.
- Returns:
The realignment map matrix.