2.1.1 Probabilities versus amplitudes

Quantum bits are very similar to probabilistic bits. There are only two major differences:

  1. 1.

    probabilities are replaced by amplitudes (which can also be negative),

  2. 2.

    amplitudes are squared during the measurement (while probabilities are not).

We will explain these differences in more detail shortly, but let us first describe the possible states of a qubit. Recall how we used the two sides of a coin to denote the two possible deterministic states of a probabilistic bit (see Fig. 1.1)? In quantum computing, these two states are commonly denoted by |0\left|0\right\rangle and |1\left|1\right\rangle to distinguish them from the classical bits [0][0] and [1][1]. Just like with probabilistic bits, a general qubit state |ψ\left|\psi\right\rangle is then a linear combination or superposition of these two deterministic states:

|ψ=ψ0|0+ψ1|1.\left|\psi\right\rangle=\psi_{0}\left|0\right\rangle+\psi_{1}\left|1\right\rangle. (2.1)

Here, the greek letter ψ\psi (pronounce “psi”) is the name of the qubit state (just like we named the probabilistic bit pp). The brackets |\left|\cdot\right\rangle form a so-called “ket” that indicates that we are dealing with a quantum state. For comparison, recall from Eq. 1.7 that an arbitrary probabilistic bit pp can be written as

p=p0[0]+p1[1].p=p_{0}[0]+p_{1}[1]. (2.2)

Note that Eq. 2.1 looks identical to this, except the probabilities p0p_{0} and p1p_{1} are replaced by the amplitudes ψ0\psi_{0} and ψ1\psi_{1}, and the classical notation [0][0] and [1][1] is replaced by the quantum notation |0\left|0\right\rangle and |1\left|1\right\rangle! However, there is one major difference: while the probabilities in Eq. 2.2 are subject to

p0,p10andp0+p1=1,p_{0},p_{1}\geq 0\qquad\text{and}\qquad p_{0}+p_{1}=1, (2.3)

the amplitudes are subject to

ψ02+ψ12=1.\psi_{0}^{2}+\psi_{1}^{2}=1. (2.4)

In particular, this implies ψ021\psi_{0}^{2}\leq 1 and ψ121\psi_{1}^{2}\leq 1, and hence ψ0,ψ1[1,1]\psi_{0},\psi_{1}\in[-1,1]. In contrast, the constraints from Eq. 2.3 on probabilities imply that p0,p1[0,1]p_{0},p_{1}\in[0,1]. The crucial difference is that amplitudes are actually allowed to be negative while probabilities are not!99 9 In fact, amplitudes are even allowed to be so-called complex numbers. We will not need them in this course, but you’re encouraged to browse the web to learn more about this.

Just like with probabilistic bits, it is convenient to represent qubit states by vectors. In complete analogy with Eq. 1.6, we represent the deterministic qubit states |0\left|0\right\rangle and |1\left|1\right\rangle by the two basis vectors:

|0=(10),|1=(01).\left|0\right\rangle=\begin{pmatrix}1\\ 0\end{pmatrix},\qquad\left|1\right\rangle=\begin{pmatrix}0\\ 1\end{pmatrix}.

A general quantum state |ψ\left|\psi\right\rangle from Eq. 2.1 is then represented as

|ψ=ψ0(10)+ψ1(01)=(ψ0ψ1).\left|\psi\right\rangle=\psi_{0}\begin{pmatrix}1\\ 0\end{pmatrix}+\psi_{1}\begin{pmatrix}0\\ 1\end{pmatrix}=\begin{pmatrix}\psi_{0}\\ \psi_{1}\end{pmatrix}.