The single-qubit operators Pauli matrices\(X\), \(Y\), and \(Z\), the Hadamard gate\(H\), the phase gate\(S\), and the \(\pi/8\) gate\(T\) are given by the following matrices.
\[
X \equiv \left[\begin{array}{cc}
0 & 1 \\
1 & 0
\end{array}\right], \quad
Y \equiv \left[\begin{array}{cc}
0 & -i \\
i & 0
\end{array}\right], \quad
Z \equiv \left[\begin{array}{cc}
1 & 0 \\
0 & -1
\end{array}\right].
\]
The real pair \((\theta, \varphi)\) defines a point on a unit three-dimensional sphere, known as the Bloch sphere representation.
This is useful for visualizing the state of a single qubit and reasoning about single-qubit operations, but there is no simple analogous picture for multiple qubits.
Figure 4.2.1 : Bloch sphere representation .
Example 4.2.3 : Eigenvectors of the Pauli matrices in the bloch sphere
In Example 2.1.27, we computed the eigenvectors of the Pauli matrices.
Here are the normalized eigenvectors and their Bloch-sphere points.
\[
\exp(i A x)=\left(\sum_{k=0}^{\infty}(-1)^k \frac{x^{2 k}}{(2 k)!}\right) I
+i\left(\sum_{k=0}^{\infty}(-1)^k \frac{x^{2 k+1}}{(2 k+1)!}\right) A.
\]
By the standard power series definitions, the first sum is \(\cos (x)\) and the second sum is \(\sin (x)\).
Hence
\[
\exp(i A x)=\cos (x) I+i \sin (x) A.
\]
Definition 4.2.5 : Rotation operator
The Pauli matrices give rise to three unitary families called rotation operators.
Using Lemma 4.2.4, The \(x\)-, \(y\)-, and \(z\)-axis rotations by angle \(\theta\) are defined as
Since \(\hat n\) is unit, \(\hat n\cdot\hat n=1\).
Hence \((\hat n\cdot\vec{\sigma})^2=I\).
Definition 4.2.7 : General rotation operator
If \(\hat{n}=(n_{x}, n_{y}, n_{z})\) is a real unit vector in three dimensions, then we define the general rotation operator by a rotation by \(\theta\) about the \(\hat{n}\) axis as
where \(\vec{\sigma}\) denotes the three component vector \((X, Y, Z)\) of Pauli matrices.
Theorem 4.2.8 : Bloch sphere interpretation of rotations
\(R_{\hat{n}}(\theta)\) acts on Bloch vectors as a geometric rotation.
If a single-qubit state has Bloch vector \(\vec{\lambda}\), then after applying \(R_{\hat{n}}(\theta)\) its Bloch vector is the rotated vector
where \(R_{\mathrm{B}}(\theta,\hat{n})\) is the ordinary rotation of \(\mathbb{R}^{3}\) by angle \(\theta\) about the axis \(\hat{n}\).
Equivalently, this geometric fact explains the factor of two in the definition of \(R_{\hat{n}}(\theta)\).
Proof
A pure state with Bloch vector \(\vec{\lambda}\) has density operator
the matrix \(R_{\mathrm{B}}(\theta,\hat{n})\) is orthogonal with determinant one and represents a rigid rotation of angle \(\theta\) around \(\hat{n}\).
Therefore
Theorem 4.2.12 : Decomposition with non-parallel axes
Suppose \(\hat m\) and \(\hat n\) are non-parallel real unit vectors in three dimensions.
For any single-qubit unitary \(U\), there exist real numbers \(\alpha\), \(\beta\), \(\gamma\), and \(\delta\) such that
Since \(\hat m\) and \(\hat n\) are non-parallel, they span a two-dimensional plane in \(\mathbb R^3\).
Choose an orthonormal basis \(\{\hat n,\hat m',\hat k\}\) such that \(\hat m'\) lies in the plane spanned by \(\hat m\) and \(\hat n\), and \(\hat m'\) is perpendicular to \(\hat n\).
By the Bloch-sphere interpretation of single-qubit rotations, there exists a single-qubit unitary \(V\) whose Bloch-sphere action sends the \(z\)-axis to \(\hat n\) and the \(y\)-axis to \(\hat m'\).
Equivalently,
\[
V R_z(\theta) V^\dagger = R_{\hat n}(\theta),
\qquad
V R_y(\theta) V^\dagger = R_{\hat m'}(\theta)
\]
for all real \(\theta\).
Now define
\[
U' = V^\dagger U V.
\]
By Theorem 4.2.11, there exist real numbers \(\alpha,\beta,\gamma,\delta\) such that
It remains to replace the middle axis \(\hat m'\) by the given axis \(\hat m\).
Since \(\hat m'\) and \(\hat m\) are both unit vectors in the plane spanned by \(\hat n\) and \(\hat m\), and both are perpendicular to \(\hat n\), there exists an angle \(\eta\) such that rotation about \(\hat n\) by angle \(\eta\) sends \(\hat m'\) to \(\hat m\).
Hence
Using \(R_{y}(\theta)=\cos\frac{\theta}{2}I-\sin\frac{\theta}{2} iY\),
\[
X R_{y}(\theta) X
=X\left(\cos\frac{\theta}{2}I-\sin\frac{\theta}{2} iY\right)X
=\cos\frac{\theta}{2}I-\sin\frac{\theta}{2} i(XYX)
=\cos\frac{\theta}{2}I+\sin\frac{\theta}{2} iY
=R_y(-\theta).
\]
Theorem 4.2.14 : Corollary 4.2
Suppose \(U\) is a unitary gate on a single qubit.
Then there exist unitary operators \(A, B, C\) on a single qubit such that \(A B C=I\) and \(U=e^{i \alpha} A X B X C\), where \(\alpha\) is some overall phase factor.
Proof
In the notation of Theorem 4.2.11, set \(A \equiv R_{z}(\beta) R_{y}(\gamma / 2)\), \(B \equiv R_{y}(-\gamma / 2) R_{z}(-(\delta+\beta) / 2)\) and \(C \equiv R_{z}((\delta-\beta) / 2)\).
Note that
\[
A B C=R_{z}(\beta) R_{y}\left(\frac{\gamma}{2}\right) R_{y}\left(-\frac{\gamma}{2}\right) R_{z}\left(-\frac{\delta+\beta}{2}\right) R_{z}\left(\frac{\delta-\beta}{2}\right)=I
\]
Since \(X^{2}=I\), and using Theorem 4.2.13, we see that
\[
X B X=X R_{y}\left(-\frac{\gamma}{2}\right) X X R_{z}\left(-\frac{\delta+\beta}{2}\right) X=R_{y}\left(\frac{\gamma}{2}\right) R_{z}\left(\frac{\delta+\beta}{2}\right)
\]
Thus
\[
\begin{align*}
A X B X C &=R_{z}(\beta) R_{y}\left(\frac{\gamma}{2}\right) R_{y}\left(\frac{\gamma}{2}\right) R_{z}\left(\frac{\delta+\beta}{2}\right) R_{z}\left(\frac{\delta-\beta}{2}\right) \\
&=R_{z}(\beta) R_{y}(\gamma) R_{z}(\delta)
\end{align*}
\]
Therefore \(U=e^{i \alpha} A X B X C\) and \(A B C=I\), as required.
Theorem 4.2.15 : Circuit identities
Let \(X\), \(Y\), \(Z\), \(H\), and \(T\) be the single-qubit gates.
Then
\[
H X H=Z ; H Y H=-Y ; H Z H=X.
\]
In addition,
\[
H T H=e^{i \pi / 8} R_{x}(\pi / 4),
\]
up to a global phase.
Proof
Use matrix multiplication and identities of the Pauli and Hadamard operators.