Introduction
In the words of Richard Feynman: "Nature isn't classical, dammit, and if you want to make a simulation of nature, you'd better make it quantum mechanical." (Simulating Physics with Computers, 1982)
I was reading through quantum computing when I stumbled upon why we need it. Before, I thought of it as just a technology to understand reality using "quantum", whatever that meant to me. Now, after reading articles and doing research, I get Feynman's point: nature itself is quantum, so to simulate it properly, we need a computer that follows the same rules. I found a way to break it down for beginners, and this article is my way to remind myself of what I understand.
Bits? No, Qubits
First, we need to understand the fundamental element that makes computing possible: 1s and 0s, the language of the machine itself. We call them bits. We use bits to turn complex ideas, languages and thoughts into something a computer can understand and a processor can act upon.
In classical computing, a bit is literally 1 or 0. We use logic gates to build simple logic. For example, an AND gate only outputs 1 when both inputs are 1:
- 1 AND 1 = 1
- 1 AND 0 = 0
Think of it like: sunny (1) AND weekend (1) = go to the beach (1). If either one is 0, no beach. Similarly, we can combine more logic gates to create more complex logic to represent ideas.
Quantum computing is different because the bits are qubits. To picture a qubit, think of a simple coin toss. When flipped, there are 2 outcomes that can become reality: heads (1) or tails (0). One coin has 2 possible outcomes. If we flip 2 coins, there are 2^2 = 4 possible outcomes. With n coins, there are 2^n. That growth is exponential.
Qubits work the same way in terms of counting: n qubits are described by 2^n possibilities. 1 qubit → 2, 2 qubits → 4, 3 qubits → 8, and so on.
But here's where the coin analogy breaks. A coin hidden under your hand is already heads or tails, and you just don't know which. A qubit isn't secretly one or the other. Until it's measured, it doesn't have a definite value at all.
The Math Behind It
We use a vector to represent a qubit's state:
|ψ⟩ = α|0⟩ + β|1⟩
or written as a column: [α, β]
- α is the amplitude for 0
- β is the amplitude for 1
The event hasn't happened yet, so the possibility is split between the two. To find the probability of each outcome, we take the absolute square of its amplitude:
- Probability of 0 = |α|²
- Probability of 1 = |β|²
and they always add up to 1: |α|² + |β|² = 1.
Here's the weird part: probabilities can never be negative, but amplitudes can. That means amplitudes can cancel each other out, pushing an outcome away from happening, or add up to make it more likely. Regular probabilities can't do that, and this is a big part of what makes quantum computing powerful.
One thing to keep in mind: even though n qubits are described by 2^n possibilities, when you measure them you only get n ordinary bits back. You can't read out all the possibilities at once.
Measurement
When we measure a quantum system, we collapse it into one fixed outcome. Before measurement, the qubit didn't have a definite value of 0 or 1. Once we measure it, we get one result, say 1, and if we measure again right away, we'll get 1 again with 100% certainty. The superposition is gone, and what's left behaves like a normal classical bit.
Conclusion
This article was my way of checking what I've learned so far: what a qubit is, how amplitudes give us probabilities, and what measurement does. It also scratched my itch to write again, because I miss writing articles.
Next, I'll be writing about superposition, the history of quantum computing (including Shor's algorithm and quantum supremacy), and entanglement. An article on LLMs (text generators) is also coming soon.
Thank you, and have a lovely day.
