How power is achieved: qubits
Warning
The following is suited for everyone with a very basic knowledge of discrete probability.
What magic do qubits know that classical bits don’t? The spell is called $\textbf{superposition}$. Here we try not to go in deeper detail of quantum mechanics as we are not physicists and don’t want to offend an entire category. If you want, go ask your local quantum physicist. Instead, we give a glimpse of what superposition is by intuition.
$\textbf{QUESTION 1}$ what’s the probability of the 1 bit to be 1? What’s the probability of the 0 bit to be 0? What’s the probability of the 0 bit to be 1? And the probability of the 1 bit to be 0?
You read well, it is simple as it seems. Answers are 1, 1, 0, 0. But follow us now. Let’s denote the 0 bit as $\ket{0}$ and the 1 bit as $\ket{1}$, but keep denoting the probabilities as numbers without any kind of weird clothes on. It is now straightforward to see that
$$ \ket{1} = \textcolor{red}{1} \cdot \ket{1} + \textcolor{red}{0} \cdot \ket{0} \\ \ket{0} = \textcolor{red}{1} \cdot \ket{0} + \textcolor{red}{0} \cdot \ket{1} $$As you see, the $\textcolor{red}{red}$ numbers are exactly the probabilities said before. Therefore, we just described the bits as linear combinations of two possible $\textbf{states}$ they may assume ($\ket{0}$ and $\ket{1}$) with the probabilities to assume them as coefficients. Don’t be fooled by the fancy notation, this is no more than a circular argument to represent things as themselves, but in a way that is convenient for what we will introduce later. From now on we refer to these linear combinations as the “state” of the bit, which can be either $\ket{0}$ or $\ket{1}$ as you expect.
$\textbf{QUESTION 2}$ can a bit NOT be in either $\ket{0}$ or $\ket{1}$ states?
Short Answer
Long Answer
With the risk of causing physicists and computer scientists a pain in the head out of rage, we now introduce $\textbf{qubits}$ as a way to encode information in order to finally answer “yes” to the question “can a QUbit not be in either $\ket{0}$ or $\ket{1}$ states?”. For now, just take a qubit as an entity with this power, without wondering how is it possible to achieve it (it suffices to think of them as “quantum stuff”). Let’s see an example: we have a qubit in state $\ket{\Phi}$ such that
$$ \ket{\Phi} = \frac{1}{\sqrt{2}}\ket{0} + \frac{1}{\sqrt{2}}\ket{1} $$and note that
$$ \sqrt{\left(\frac{1}{\sqrt{2}}\right)^2 + \left(\frac{1}{\sqrt{2}}\right)^2} = 1. $$This strongly resembles a discrete probability distribution, to the point we actually say that, as in the classical case, our qubit is observed to be $\ket{0}$ with probability $\left(\frac{1}{\sqrt{2}}\right)^2 = \frac{1}{2}$ and $\ket{1}$ with the same probability. This is somewhat similar to having a uniform distribution on the discrete set ${\ket{0}, \ket{1}}$, don’t you think? This is a simple example of superposition: our qubit is neither in the state $\ket{0}$ nor $\ket{1}$; we only know the probability of it to be in one of those states when we $\textbf{observe}$ it.
Warning
To “observe” a qubit means to check whether it is $\ket{1}$ or $\ket{0}$ through a physical process called $\textbf{measurement}$. Before you measure, don’t be tempted to think the qubit is already in the $\ket{1}$ or $\ket{0}$ states; this is the core of superposition: the qubit is said to be in a state of superposition between $\ket{0}$ and $\ket{1}$ (weighted with probabilities) but measurement actively makes its state collapse on one or another (with according probability). Measurement actively changes the intrinsecally probabilistic state in a deterministic one, i.e., one we can actually see, if you want.
The cat experiment
In general, any state can be described as
$$\ket{\Phi} = \alpha\ket{0} + \beta\ket{1}$$with $\alpha, \beta \in \mathbb{C}$ such that $|\alpha|^2 + |\beta|^2 =1$. The latter are usually called “$\textbf{amplitudes}$” of the state.
And what do we gain from this? How do we use an information encoded such as this?