4.2.5 The uncertainty principle

For the last phenomenon that we want to discuss, we will only need a single quantum bit. Recall the rules for measuring a single quantum bit from Eq. 2.6, as in the following picture:

[Uncaptioned image]

Given a quantum state |ψ=ψ0|0+ψ1|1\left|\psi\right\rangle=\psi_{0}\left|0\right\rangle+\psi_{1}\left|1\right\rangle, we obtain the two possible outcomes with probabilities

p0=ψ02,p1=ψ12.p_{0}=\psi_{0}^{2},\qquad p_{1}=\psi_{1}^{2}. (4.19)

What are the deterministic states for which we get one of the outcomes with certainty? These are states for which one probability is 100% and the other is 0%. In other words, states where one amplitude is ±1\pm 1 and the other is zero. Up to possibly an overall minus sign, which we know from 2.7 is irrelevant, there are only two such states:

|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}, (4.20)

i.e., the basis states. These are the only states for which we can predict the measurement outcome perfectly well, so we will say that there is no uncertainty in the measurement outcome.

What happens if we first perform an operation on the qubit and then perform a measurement? For example, suppose that we first apply a Hadamard operation and then a measurement, as in the following picture:

[Uncaptioned image]

Here, the only states for which we are completely certain about the measurement outcome are

|+=12(11),|=12(11)\left|+\right\rangle=\frac{1}{\sqrt{2}}\begin{pmatrix}1\\ 1\end{pmatrix},\qquad\left|-\right\rangle=\frac{1}{\sqrt{2}}\begin{pmatrix}1\\ -1\end{pmatrix} (4.21)

(up to overall sign). This is because the Hadamard operation maps |+\left|+\right\rangle, |\left|-\right\rangle back to the basis states |0\left|0\right\rangle, |1\left|1\right\rangle (you showed this in 4.5); and the latter states are precisely the states with complete certainty about the final measurement, as we discussed above. We can also see this by computing the probabilities of the two measurement outcomes

q0=(ψ0+ψ1)22,q1=(ψ0ψ1)22.q_{0}=\frac{(\psi_{0}+\psi_{1})^{2}}{2},\qquad q_{1}=\frac{(\psi_{0}-\psi_{1})% ^{2}}{2}. (4.22)

If q1=0q_{1}=0 then the state is |+\left|+\right\rangle, while if q0=0q_{0}=0 then the state is |\left|-\right\rangle (up to overall sign).

These are all calculations that we have seen several times – but there is an interesting observation that we have not made before. Since no state appears in both Eqs. 4.20 and 4.21, this means that, for every state, at least one of the two procedures will have some uncertainty in the measurement outcome. This result is nothing but the famous Heisenberg uncertainty principle!

Can we make this observation more quantitative? We first need a way to quantify the uncertainty or ‘randomness’ given by a probability distribution p=(p0p1)p=\bigl{(}\begin{smallmatrix}p_{0}\\ p_{1}\end{smallmatrix}\bigr{)}. The following function is a good choice:

uncertainty(p)=p0(1p0)=p0p1.\displaystyle\operatorname{uncertainty}(p)=p_{0}(1-p_{0})=p_{0}p_{1}.

It maps values to [0,1/4][0,1/4], is minimal if one of the outcomes is zero (i.e., if p0=0p_{0}=0 or p0=1p_{0}=1) and it is maximal if both outcomes are equally likely (i.e., if p0=p1=1/2p_{0}=p_{1}=1/2). Here is a plot which confirms these properties:

Now suppose that we start with a state |ψ\left|\psi\right\rangle and perform either of the two procedures described above. That is, we either measure the state directly or we first apply a Hadamard operation and then measure. The corresponding uncertainties are uncertainty(p)\operatorname{uncertainty}(p) and uncertainty(q)\operatorname{uncertainty}(q), where the distributions p=(p0p1)p=\bigl{(}\begin{smallmatrix}p_{0}\\ p_{1}\end{smallmatrix}\bigr{)} and q=(q0q1)q=\bigl{(}\begin{smallmatrix}q_{0}\\ q_{1}\end{smallmatrix}\bigr{)} are given in Eqs. 4.19 and 4.22 above. Then:

uncertainty(p)+uncertainty(q)>0.\displaystyle\operatorname{uncertainty}(p)+\operatorname{uncertainty}(q)>0.

Indeed, this inequality means precisely that there exists no state for which both uncertainties are simultaneously zero. In the following homework problem, you will show a stronger result:

Homework 4.4 (Uncertainty tradeoff).

Show that, for every qubit state |ψ\left|\psi\right\rangle:

uncertainty(p)+uncertainty(q)=14.\operatorname{uncertainty}(p)+\operatorname{uncertainty}(q)=\frac{1}{4}. (4.23)

Moreover, find a qubit state |ψ\left|\psi\right\rangle with uncertainty(p)=uncertainty(q)\operatorname{uncertainty}(p)=\operatorname{uncertainty}(q).

Bonus question: Construct this state using Quirky, and confirm that uncertainty(p)=uncertainty(q)\operatorname{uncertainty}(p)=\operatorname{uncertainty}(q) by using Quirky.

Hack.

Using Eqs. 4.19 and 4.22 and the fact that ψ02+ψ12=1\psi_{0}^{2}+\psi_{1}^{2}=1, we confirm the equality:

uncertainty(p)+uncertainty(q)\displaystyle\operatorname{uncertainty}(p)+\operatorname{uncertainty}(q) =ψ02ψ12+(ψ0+ψ1)22(ψ0ψ1)22\displaystyle=\psi_{0}^{2}\psi_{1}^{2}+\frac{(\psi_{0}+\psi_{1})^{2}}{2}\frac{% (\psi_{0}-\psi_{1})^{2}}{2}
=ψ02ψ12+(ψ02+2ψ0ψ1+ψ12)(ψ022ψ0ψ1+ψ12)4\displaystyle=\psi_{0}^{2}\psi_{1}^{2}+\frac{(\psi_{0}^{2}+2\psi_{0}\psi_{1}+% \psi_{1}^{2})(\psi_{0}^{2}-2\psi_{0}\psi_{1}+\psi_{1}^{2})}{4}
=ψ02ψ12+(1+2ψ0ψ1)(12ψ0ψ1)4\displaystyle=\psi_{0}^{2}\psi_{1}^{2}+\frac{(1+2\psi_{0}\psi_{1})(1-2\psi_{0}% \psi_{1})}{4}
=ψ02ψ12+14ψ02ψ124=14.\displaystyle=\psi_{0}^{2}\psi_{1}^{2}+\frac{1-4\psi^{2}_{0}\psi^{2}_{1}}{4}=% \frac{1}{4}.

Alternatively, you could also parametrize the qubit state by |ψ(θ)\left|\psi(\theta)\right\rangle and compute that

uncertainty(p)\displaystyle\operatorname{uncertainty}(p) =sin2(θ)cos2(θ)=14sin2(2θ),\displaystyle=\sin^{2}(\theta)\cos^{2}(\theta)=\frac{1}{4}\sin^{2}(2\theta),
uncertainty(q)\displaystyle\operatorname{uncertainty}(q) ==14cos2(2θ),\displaystyle=\dots=\frac{1}{4}\cos^{2}(2\theta),

which again shows that uncertainty(p)+uncertainty(q)=14\operatorname{uncertainty}(p)+\operatorname{uncertainty}(q)=\frac{1}{4}.

For the second part of the problem, an intutive guess is that |ψ(π/8)\left|\psi(\pi/8)\right\rangle should work, since it lies right in the middle of the two states |0=|ψ(0)\left|0\right\rangle=\left|\psi(0)\right\rangle and |+=|ψ(π/4)\left|+\right\rangle=\left|\psi(\pi/4)\right\rangle. Indeed:

uncertainty(p)=14sin2(π/4)=1412=18,\displaystyle\operatorname{uncertainty}(p)=\frac{1}{4}\sin^{2}(\pi/4)=\frac{1}% {4}\cdot\frac{1}{2}=\frac{1}{8},

so also uncertainty(q)=14uncertainty(p)=18\operatorname{uncertainty}(q)=\frac{1}{4}-\operatorname{uncertainty}(p)=\frac{% 1}{8}.

We can test this as follows using Quirky:

[Uncaptioned image]

The picture confirms that p1=q1p_{1}=q_{1}, hence also uncertainty(p)=uncertainty(q)\operatorname{uncertainty}(p)=\operatorname{uncertainty}(q).

The formula that you just proved in 4.4 is quite remarkable: it shows that there is a simple tradeoff between the uncertainties of the two procedures. In particular, if one procedure has zero uncertainty then the other produces a uniformly random outcome! 1313 13 We can also see this directly. E.g., if we directly measure |+\left|+\right\rangle (a state that has zero uncertainty for the second procedure) without first doing a Hadamard, we get outcomes 0 and 11 with equal probability.