gen_pauli_x
¶
Produces a generalized Pauli-X operator matrix.
gen_pauli_x
¶
Produce a dim-by-dim gen_pauli_x matrix 1.
Returns the gen_pauli_x matrix of dimension dim described in 1.
The gen_pauli_x matrix generates the following dim-by-dim matrix:
\[
\Sigma_{1, d} = \begin{pmatrix}
0 & 0 & 0 & \ldots & 0 & 1 \\
1 & 0 & 0 & \ldots & 0 & 0 \\
0 & 1 & 0 & \ldots & 0 & 0 \\
0 & 0 & 1 & \ldots & 0 & 0 \\
\vdots & \vdots & \vdots & \ddots & \vdots & \vdots \\
0 & 0 & 0 & \ldots & 1 & 0
\end{pmatrix}
\]
The gen_pauli_x matrix is primarily used in the construction of the generalized Pauli operators.
Parameters:
-
dim(int) –Dimension of the matrix.
Returns:
-
ndarray–dim-by-dimgen_pauli_x matrix.
Examples:
The gen_pauli_x matrix generated from \(d = 3\) yields the following matrix:
\[
\Sigma_{1, 3} =
\begin{pmatrix}
0 & 0 & 1 \\
1 & 0 & 0 \\
0 & 1 & 0
\end{pmatrix}
\]
References
1 Wikipedia. Generalizations of {P}auli matrices. link.