Quantum Information Processing: Foundations - Part 2
Introduction Previously, we had a brief introduction to the idea of geometrically visualizing a q u b i t qubit q u bi t 's quantum state in a 3D sphere called the Bloch Sphere ( Bloch, F., 1946 ) — named after…
Previously, we had a
brief introduction
to the idea of geometrically visualizing a qubit's quantum state in a 3D sphere called the Bloch Sphere (Bloch, F., 1946) — named after Felix Bloch, the Swiss-American physicist. Being able to represent an arbitrary qubit state in space visually simplifies its complexity, and the Bloch Sphere does this. We will go a bit mathematical (with a touch of physics) in this part, primarily to bring into perspective how some expressions came about. Then, we'll pick some problems in (Rieffel, E. G. & Polak, W. H., 2014) and work through solving them step-by-step to solidify our understanding better.
Prerequisite
Quantum computing relies on mathematical (and, briefly in this article, physics) principles, but you can learn the essentials without being a math whiz. A working knowledge of high school math will equip you to understand the applications and fundamental ideas. Familiarity with the Python programming language will help you understand qiskit and/or cirq code.
Qubit Visualization on the Bloch sphere
Consider the Bloch sphere below:
Figure 1: Bloch Sphere showing the major measurement basis and angles.
where:
∣0⟩ represents the z-axis;
∣+⟩ is the x-axis;
∣i⟩ depicts the y-axis;
∣ψ⟩ is an arbitrary state on the sphere;
θ is the angle the state makes with z-axis; and
ϕ, the azimuthal angle, is the angle that the state's projection makes with the x-axis.
This arbitrary state can be expressed, verbosely, using the state function:
∣ψ⟩=eiγ(cos2θ∣0⟩+eiϕsin2θ∣1⟩)
However, eiγ, regarded as a global phase, does not pose observable effects to the measurement obtained with or without its presence (Glendinning, I., 2005). This is because when a unitary operator, say U, operates on ∣ψ⟩, its ket-side remains unchanged whereas its bra-side negates it (due to complex conjugation), which effectively eliminates eiγ (UV Physics., 2023):
⟨eiγψ∣U∣eiγψ⟩=eiγ⋅e−iγ⟨ψ∣U∣ψ⟩=⟨ψ∣U∣ψ⟩
Effectively, the Bloch state function can be simplified to:
∣ψ⟩=cos2θ∣0⟩+eiϕsin2θ∣1⟩
How did they come about (1)? A curious mind would like to know. The following subsection unravels it!
Note:Physics Territory
We are delving into some concepts in Physics, such as Spin Angular Momentum. Reader's discretion is advised.
Derivation of Bloch Sphere state function
I will skip some details here for brevity. If you need a more detailed coverage and preliminaries, I recommend taking a look at (UV Physics., 2023; Zettili, N., 2009).
Figure 2: Spherical representation of an arbitrary position vector in space.
Recall that the cartesian coordinates (x, y, z) of a position vector r relate to its polar coordinates (r, θ, ϕ) in the following fashion (Zettili, N., 2009):
x=rsinθcosϕ,y=rsinθsinϕ,z=rcosθ(p1)
Now, for a unit position vector n^ (shown in the diagram above), these coordinates become:
x=sinθcosϕ,y=sinθsinϕ,z=cosθ(p2)
since r=1 (hence the word unit).
Measuring the angular spin operator S in n^ direction produces an operator, say A^ which is:
A^=S⋅n^=Sx⋅nx+Sy⋅ny+Sz⋅nz(p3)
From (Zettili, N., 2009), the Pauli matrice — σx,σy,σz — are defined as:
σx=(0110),σy=(0i−i0),σz=(100−1)(p4)
For a spin-21 particle, the spin operators are 2x2 matrices which relate to Pauli matrices by 2ℏ so that:
Sx=2ℏ⋅σx,Sy=2ℏ⋅σy,Sz=2ℏ⋅σz(p5)
where ℏ is the reduced Plank constant equalling 2πh.
Substituting (p2), (p4) and (p5) into (p3), we have:
Now, we need to obtain the eigenvector of this since its eigenvalue, λ, is ±2ℏ (UV Physics., 2023; Zettili, N., 2009) (this value remains the same irrespective of direction). To do this, we use the eigenvalue equation (Zettili, N., 2009):
A^ψ±=λψ±
Since we are trying to obtain values for ψ±, the unknown, we are at liberty to choose any symbol to represent it as long as it tallies with the dimension of A^. So,
If we eliminate fractions, the recommended practices with eigenvector, we have:
ψ±=(acos2θa⋅sin2θeiϕ)
When we eliminate the common terms, a, it becomes:
ψ±=(cos2θsin2θeiϕ)
Linearly transforming the vector, we have:
ψ=cos2θ∣0⟩+eiϕsin2θ∣1⟩
which represents the qubit state on the Bloch sphere.
Worked examples
Q1:
Give the set of all values θ for which the following pairs of states are equivalent:
a. ∣1⟩and21(∣+⟩+eiθ∣−⟩)
b. 21(∣i⟩+eiθ∣−i⟩)and21(∣−i⟩+e−iθ∣i⟩)
c. 21∣0⟩−23∣1⟩andeiθ(21∣0⟩−23∣1⟩)
Solution
(a) Given:
∣1⟩,21(∣+⟩+eiθ∣−⟩)
To solve this problem, we need to ensure that both states are in the same measurement basis. The first state is in the computational basis while the second is in Hadamard basis. It will be simpler to have both in the computational basis (or, if you want, Hadamard basis). We will transform the state in the Hadamard basis to computational basis in this solution.
From previous article, we know that:
∣+⟩=21(∣0⟩+∣1⟩),∣−⟩=21(∣0⟩−∣1⟩)
Therefore, substitute these into the second state:
Now, we can compare both states since we want angles with which they are equivalent:
∣1⟩≡21+eiθ∣0⟩+21−eiθ∣1⟩
Here, we see that for both states to be equivalent, the coefficient of ∣0⟩, in the left hand side, must be 0 and that of ∣1⟩ must be 1. So, going by the second option:
Looking at this equation, we can identify that it's complex where cosθ and −1 are real while sinθ and 0 are imaginary. An important property of complex numbers is that:
For two complex numbers to be equal, their real and imaginary parts must be equal.
So,
cosθ=−1,sinθ=0
Let's take a look at a sample sine and cosine graph.
Figure 3: Cosine and Sine graph for various angles plotted together
For the two states to be strictly equal, both conditions must be met simultaneously:
sinθ=0andcosθ=1
The values of θ for which sinθ=0 are θ=nπ, and the values of θ for which cosθ=1 are θ=2πn, where n is an integer (n∈Z).
For both conditions to be true, θ must be an integer multiple of 2π.
θ=2πn,where n∈Z
If we restrict n to non-negative integers (K∈{0,1,2,...}), the solution is:
θ=2πn,where n∈N
(c) Given:
∣ψ1⟩=21∣0⟩−23∣1⟩,∣ψ2⟩=eiθ(21∣0⟩−23∣1⟩)
Directly, we can deduce that:
∣ψ2⟩=eiθ∣ψ1⟩
This is regarded as global phase equivalence (Viamontes, G. F. et al., 2007). This is the case since both states only differ in phase. It means that for all values θ, both states remain the same.
Q2:
What are θ and ϕ for each of the states ∣+⟩, ∣−⟩, ∣i⟩, and ∣−i⟩?
Solution
Before going into specifics, let's lay out some foundations.
We can recall that a single qubit state in the computational basis is of the form:
∣ψ⟩=α∣0⟩+β∣1⟩
It has this Bloch sphere state function:
∣ψ⟩=cos2θ∣0⟩+eiϕsin2θ∣1⟩
Equating both, we have:
α∣0⟩+β∣1⟩=cos2θ∣0⟩+eiϕsin2θ∣1⟩
For both sides to be equal, it means:
cos2θ=α,andeiϕsin2θ=β(f1)
where θ∈[0,π] and ϕ∈[0,2π].
Now to the specifics.
(i) ∣+⟩ can be expressed in computational basis as:
∣+⟩ will be represented on the Bloch sphere with θ=2π,ϕ=0.
With this, I will leave those of ∣−⟩, ∣i⟩, and ∣−i⟩ as exercise. It'll be fun!
Note:Hint
In all, θ=2π while ϕ varies.
Outro
Enjoyed this article? I'm a Software Engineer and Technical Writer actively seeking new opportunities to impact and learn, particularly in areas related to web security, finance, healthcare, and education. If you think my expertise aligns with your team's needs, let's chat! You can find me on
LinkedIn
and
X
. I am also an
email
away.