One small hill I had to climb involved the object I’ve been using as the header image in these posts. It’s called the **Bloch sphere**, and it depicts a two-level quantum system. It’s heavily used in quantum computing because qubits typically are two-level systems.

So is **quantum spin**, which I wrote about last time. The sphere idea dates back to 1892 when Henri Poincaré defined the Poincaré sphere to describe light polarization (which is the quantum spin of photons).

All in all, it’s a handy device for visualizing these quantum states.

Any sphere is a three-dimensional object and therefore has an **X**, **Y**, and **Z**, axis. What’s important in this case is that each axis intersects the surface of the sphere at two antipodal points (opposites sides of the sphere). Three axes gives us six points on the sphere.

Even more important is that the *surface* of the Bloch sphere is the set of all *pure* quantum states of the system. (The interior of the sphere is the set of all *mixed* quantum states. For our purposes, only the pure states matter.)

As is typical in geometry, we take the sphere to have a radius of 1 (to simplify the math). There is a unit vector — the quantum state of the system — that moves around inside the sphere, either as the wave-function evolves over time or due to a measurement.

Note that in the former case, the vector moves smoothly and, per the wave-function, completely predictably. It is the latter case that gives quantum physicists the fits — measurement causes the vector to jump to an eigenstate, the dreaded “collapse” of the wave-function.

**§**

Let’s start with a basic tour of the territory. Below is a larger version of the header image I’ve been using:

Recall some important points from the Quantum Spin post:

Firstly, a spin or qubit measurement has two outcomes (eigenstates), which we call |**0**〉 and |**1**〉 These form the north and south poles (so to speak) of the sphere. This polar axis (red) is canonically defined to be the Z-axis.

A vital point here is that antipodal vectors, such as |**0**〉 and |**1**〉 *are orthogonal states!* Normally in geometry, orthogonal means two vectors (or even just lines) with a 90° angle, but in the Bloch sphere we define orthogonal to mean two vectors with a 180° angle.

Remember that we define the |**0**〉 and |**1**〉 vectors as:

For vectors to be orthogonal, their inner product must be zero, and sure enough:

Secondly, we use these two eigenstates as an eigenbasis that spans all possible states of our system. All other states are superpositions of these basis states.

In particular, we define for the **X-axis** (blue):

And:

For the **Y-axis** (purple), we have:

And:

Canonically, the purple Y-axis is aligned with the particle’s motion, The Z-axis and X-axis are perpendicular to it.

Putting that all together:

*Figure 2* visualizes these six eigenstates by showing the state vector in each of them. On the left, |**0**〉 and |**1**〉 (top and bottom); in the middle, |**+**〉 and |**–**〉 and on the right, |**+ i**〉 and |

**–**〉

*i*If we want, we can be more explicit by labeling them (respectively): |**Z+**〉 |**Z-**〉 and |**X+**〉 |**X-**〉 and |**Y+**〉 |**Y-**〉 but the first versions are the more commonly seen.

Note that another common notation, especially when dealing with spin on just the Z-axis is to use |**+**〉 and |**–**〉 for |**0**〉 and |**1**〉 because |**+**〉 and |**–**〉 are more reflective of spin measurements (which have eigenvalues of plus and minus *hbar-over-two* — the plus and minus being the up and down spin states respectively).

The |**0**〉 and |**1**〉 notation is more common in quantum computing because of the similarity to classic bits, **0** and **1**. (I also think it’s helpful in differentiating between states and adding or subtracting.)

**§**

Here’s another look at the Bloch sphere with the superpositions called out:

These superpositions should look familiar from the quantum spin post. The Bloch sphere gives us a visualization of those superpositions.

Note that that quantum state vector can touch any point on the sphere’s surface. Remember that the surface of the sphere is the set of all possible pure (normalized) quantum states available to the system.

Where it points at any given time depends on the system and what’s affecting it. For instance, if we make a measurement of spin on the Z-axis, the vector jumps (“collapses”) to either the |**0**〉 or |**1**〉 eigenstates (one of the two states shown on the left in *Figure 2*).

Now let’s talk about those two angles, *theta* (θ) and *phi* (Φ).

**§**

First consider the general form of a superposition implied by the {|0〉 |1〉} basis:

Where the coefficients ** c** are complex numbers. If we write that out explicitly:

Where ** a** and

**are real numbers. This implies four degrees of freedom, but quantum mechanics requires they be normalized such that:**

*b*Because these coefficients are probability amplitudes, and their norm squared must sum to 1. That puts restrictions on their allowed values. For instance, if one is larger, the other has to be smaller. This removes one degree of freedom.

We can then look for a suitable different coordinate system with only three degrees of freedom. A useful choice is the Hopf coordinate system where:

Plugging the Hopf coordinates into the general superposition gives us:

Note that:

So we can extract the global phase, *omega* (ω), like this:

Because global phase isn’t physically detectable, we can ignore it, leaving:

And now we’re dealing with only two degrees of freedom, the angles *theta* (θ) and *phi* (Φ).

As *Figure 1* and *Figure 3* show, *theta* is the angle relative to the |**0**〉 state (the +Z-axis), and *phi* is the angle relative to the |**+**〉 state (the +X-axis).

[Note that, in the Hopf coordinate system, *theta* is restricted to the range 0°–180° while *phi* has the full circular range 0°–360°. Dividing *theta* by two effectively reduces its range to 0°–90° which contributes to making |**0**〉 and |**1**〉 orthogonal states.]

**§**

I sneaked a couple of fastballs over the plate regarding global phase and the Hopf coordinates, so let’s dig into that a little.

Most references to the Hoph coordinate system define the coefficients using three distinct angles:

Note there are two angles *phi* (Φ), one for each coefficient. But above it’s written as:

This way of writing it is what allows us to factor out one of the exponentials. If we have two distinct values, call them ** x** and

**, we can always write them as**

*y***and**

*x***, where**

*x*+*n***. (Note that**

*n*=*y*–*x***greater than**

*x***means**

*y***is a negative number, which is fine.)**

*n*To illustrate, if ** x**=45 and

**=120, then**

*y***=75, so**

*y*–*x***and**

*x***can be written as 45 and 45+75. This makes**

*y***common to both so we can factor it out (because, in this case,**

*x***and**

*x***are exponentials).**

*y*Therefore the second term can be rewritten:

Which allows us to factor out the first exponential:

Note that a superposition is a linear sum of the contributing states, which means it is also a state. For any given *single* state:

The exponential term is the global phase, and it is not something we can measure or detect. Global phase has no physical meaning, and therefore we can just ignore it.

However, the *relative* phase between states, and is extremely relevant.

The takeaway here is that, given any two states:

We can always use the ** n=y–x** trick to give us:

And then we can factor out and discard the global phase and consider only the relative phase, Φ_{2}-Φ_{1}, between states.

**§ §**

To finish, let’s consider a few examples of the Bloch angles *theta* and *phi* to see what we get. For instance, if θ=0°:

Because cos(0)=1 and sin(0)=0. As you can see, it doesn’t much matter what *phi* is. Now suppose θ=180° (remember it gets divided by two, so its effective value is 90°):

Because cos(90)=0 and sin(90)=1. Again *phi* doesn’t matter, but in this case it’s because it has become a global phase.

These two states are both degenerate states in terms of *phi*. The situation is exactly similar to being at the North or South Pole on Earth. Your longitude has no meaning there.

Now suppose θ=90° and Φ=0° (again keeping mind θ/2):

Because ** e**, or any value, to the power of zero is just one. The result should be familiar as the |

**X+**〉 superposition.

I’ll leave the other three as exercises for the dedicated reader.

**§ §**

In closing, the Bloch sphere is important in quantum computing, because qbits are two-state systems. For example, the IBM Quantum Computer Experience site uses them to visualize how qubits evolve as you work with them.

The Block sphere idea can be extended to systems with more levels, but it becomes an multi-dimensional object we can’t visualize.

What’s probably the most important aspect of this is that classical bits have a single degree of freedom and only two values. A visualization of them would include only the polar |**0**〉 and |**1**〉 states with no spherical surface between them. (In fact, classical computers take measures to insure this.)

But qubits can have an infinite range of values between those states, and that is what makes quantum computer so different and, for some applications, so powerful.

Stay spherical, my friends! Go forth and spread beauty and light.

∇

March 15th, 2021 at 10:48 am

It’s possible the n=y-x trick is still a little confusing. Here are all the steps…

Given:

Where r

_{1}and r_{2}are real numbers. Then:Which is the same as:

And therefore:

Because:

Which lets us factor out the first exponential:

And because it’s a global phase, we can discard it:

(The real numbers r

_{1}and r_{2}are the normalization constants to insure the probability amplitudes have norms squared that sum to 1.)March 15th, 2021 at 11:08 am

Astute readers might wonder, if θ/2 is a factor in making |

0⟩ and |1⟩ orthogonal, why isn’t Φ also divided by 2 to participate in making the the eigenvectors for the other axes orthogonal?It’s because those eigenvectors are

superpositionsof the (orthogonal) {|0⟩, |1⟩} basis vectors.We can do the math to prove that |

+⟩ and |–⟩ are orthogonal. Start with the definition of those superpositions:And:

Now calculate the inner product:

The inner product of ⟨

+|–⟩ is essentially the same, the minus sign just ends up in the column vector rather than the row vector.Calculating the inner product of |

+⟩ and |i–⟩ is left as an exercise for the reader.iMarch 23rd, 2021 at 8:04 pm

[…] basically a ket denotes a quantum state. For example, in two-level quantum systems (see: Bloch Sphere and Quantum Spin) we have the canonical […]