Quantum Computing for Beginners, Without the Physics Degree
I learned quantum computing the way I learn most things: by getting my hands dirty before the theory stuck. I didn't start with a physics degree — I started with Qiskit and a bunch of broken circuits. This post is the version of that journey I'd hand to a fellow programmer: a mental model you can actually use, followed by code you can run on real hardware today for free.
If you can write Python, you can write quantum circuits. The math is genuinely fascinating, but Qiskit and friends abstract enough of it that you can build things immediately and pick up the theory along the way — which is exactly what we did for Quantum Genesis.
Bits: what you already know
Your laptop runs on bits. Each bit is 0 or 1, and everything your computer does — rendering this page, playing audio, running code — is billions of 0s and 1s shuffled around very fast. A byte is 8 bits and holds 256 values (2^8). A 64-bit processor handles 64 bits at a time. It's deterministic and predictable: set a variable to 42 and it stays 42 until you change it.
Quantum computing throws out a few of those assumptions, so this baseline matters.
Qubits: bits with superpowers
A qubit is the quantum version of a classical bit. When you measure it you get 0 or 1, just like before. But before you look, a qubit can sit in a state that is neither purely 0 nor purely 1.
A useful mental image:
- Classical bit: a coin on a table. It's heads or tails, and you can see which.
- Qubit: a coin spinning in the air. It's not heads and it's not tails — it's in some spinning state that will become heads or tails when it lands.
That spinning coin has a tendency — maybe tilted toward heads. Physicists call that tendency the qubit's state, and you can manipulate it with quantum gates before the coin lands (before measurement).
A key reframe for programmers: a qubit is not a random number generator. It's closer to a variable holding a probability distribution instead of a fixed value. You transform that distribution with operations before "reading" it.
Superposition: being 0 and 1 at once
Skip the Schrodinger's cat analogy — it's confusing and honestly inaccurate. Use a programming analogy instead. Imagine a variable holding a weighted list of possible values rather than a single one:
# Classical (Python)
x = 0 # x is definitely 0
# Quantum (conceptual)
x = {0: 70.7%, 1: 70.7%} # x is 0 with ~50% probability
# AND 1 with ~50% probability
# (The percentages are amplitudes, not
# simple probabilities — more on this later)
When a qubit is in superposition it genuinely has no definite value until measured — it's not "secretly 0 or 1 and we don't know which." And here's why that matters: quantum operations act on all possible values at once. Three qubits in superposition represent all 8 combinations (000 through 111) simultaneously. Ten qubits, 1,024. One hundred qubits, more combinations than atoms in the observable universe.
This isn't the same as "trying all possibilities at once" — that's a common misconception. But it does let clever algorithms find answers faster than classical ones by exploiting interference between those possibilities.
How do you create superposition?
With a Hadamard gate (H). Every qubit starts as |0⟩ (definitely 0). Apply H and it becomes an equal superposition:
from qiskit import QuantumCircuit
qc = QuantumCircuit(1)
qc.h(0) # Hadamard gate: |0⟩ → (|0⟩ + |1⟩)/√2
qc.measure_all()
# Run this 1000 times:
# ~500 times you get 0
# ~500 times you get 1
# The exact split is random — genuinely random

Measurement: the quantum coin toss
When you measure a qubit, the superposition collapses to a definite value — 0 or 1 — chosen probabilistically. Equal superposition is a fair coin flip; a state tilted 90/10 toward |1⟩ gives 1 about 90% of the time.
Three facts that matter:
- It's irreversible. Once measured, the superposition is gone. You can't "un-measure" a qubit.
- It's truly random. Not pseudo-random like
Math.random(). There's no hidden variable deciding the outcome — this is proven by quantum mechanics and tested experimentally (Bell's theorem). The randomness is fundamental. - It affects entangled qubits. If two qubits are entangled, measuring one instantly determines the other's outcome.
This is exactly what we exploit for Quantum Genesis: each piece's visual parameters come from measuring qubits on real hardware. The measurements are fundamentally random — no algorithm, no seed, no way to predict or reproduce the exact results.
Why run a circuit multiple times?
Because measurement is probabilistic, one run gives one sample. Running 4,096 times (a common default called "shots") gives you a distribution — the probability of each outcome, which reflects the quantum state before measurement.
# Running 4096 shots on IBM Quantum:
# Results might be:
# {'00': 2040, '01': 12, '10': 8, '11': 2036}
#
# This tells us: states 00 and 11 are highly probable (~50% each)
# States 01 and 10 are extremely rare (~0.3% each)
# This pattern means the qubits are ENTANGLED
Entanglement: spooky but useful
Einstein called it "spooky action at a distance," and it is genuinely strange. Take two qubits and apply H + CNOT to entangle them. Now they're correlated in a way with no classical equivalent:
- Measure qubit A and get 0 → qubit B is guaranteed 0.
- Measure A and get 1 → qubit B is guaranteed 1.
- The result of A is random (50/50), but B always matches.
This holds even if you separate the qubits by miles. Measuring A doesn't "send a signal" to B — the correlation was established when they entangled.
# Classical (impossible to truly replicate):
import random
outcome = random.choice([0, 1]) # Decided at creation
a = outcome # a and b are just copies
b = outcome
# Quantum entanglement:
# The outcome ISN'T decided until you look at a (or b)
# But when you do look, the other one MUST match
# This is NOT pre-determined — it's decided at measurement
# Bell's theorem proves no "hidden variable" can explain this
Entanglement lets quantum algorithms bake correlations between qubits that encode information about the problem. When you measure, those correlations bias results toward useful answers — that's the secret sauce behind Shor's (factoring) and Grover's (searching).
Quantum gates: programming qubits
Just as classical logic gates (AND, OR, NOT) transform bits, quantum gates transform qubits. A few to know:
X gate (NOT) — flips a qubit: |0⟩ → |1⟩, |1⟩ → |0⟩. Identical to classical NOT.
H gate (Hadamard) — puts a qubit into superposition. The "make it quantum" button. Without H gates, a quantum computer is just an expensive classical one.
CNOT gate (Controlled-NOT) — a two-qubit gate: if the control qubit is |1⟩, flip the target; if |0⟩, do nothing. Combined with H, this creates entanglement.
Technically H + CNOT + a rotation gate form a universal set — any quantum computation can be built from just those.
from qiskit import QuantumCircuit
# The fundamental quantum circuit:
qc = QuantumCircuit(2)
qc.h(0) # Superposition
qc.cx(0, 1) # Entanglement (CNOT)
qc.measure_all()
# This creates a "Bell state" — the simplest entangled state
# Results: ~50% "00", ~50% "11", ~0% "01", ~0% "10"

Circuits: programs for a quantum machine
A quantum circuit specifies: how many qubits, which gates in what order, and which qubits to measure at the end. It runs left to right; each horizontal line is a qubit, gates are symbols on the lines, measurement is a meter at the end.
# A circuit that uses 4 qubits:
qc = QuantumCircuit(4, 4)
# Put all 4 in superposition
for i in range(4):
qc.h(i)
# Chain of CNOTs
for i in range(3):
qc.cx(i, i + 1)
# Measure all 4
qc.measure(range(4), range(4))
print(qc.draw())
# ┌───┐ ┌─┐
# q_0: ┤ H ├──■─────────────┤M├───
# ├───┤┌─┴─┐ └╥┘┌─┐
# q_1: ┤ H ├┤ X ├──■─────────╫─┤M├
# ├───┤└───┘┌─┴─┐ ║ └╥┘┌─┐
# q_2: ┤ H ├────┤ X ├──■─────╫──╫─┤M├
# ├───┤ └───┘┌─┴─┐ ║ ║ └╥┘┌─┐
# q_3: ┤ H ├────────┤ X ├───╫──╫──╫─┤M├
# └───┘ └───┘ ║ ║ ║ └╥┘
This circuit can produce any 4-bit string from 0000 to 1111 — and, perhaps surprisingly, all 16 are equally likely. Because every qubit got a Hadamard first, the CNOTs only reshuffle outcomes that were already equally likely, so no entanglement is created. Put the H on qubit 0 only and the same chain builds a 4-qubit GHZ state instead: only 0000 or 1111.
Think of circuits like functions: qubits initialized to |0⟩ (you don't set initial values), gates as your algorithm, and measurement as the output. The output is probabilistic, so you run it many times and analyze the distribution.
What quantum computers are good at
They're not faster at everything — just at problems where superposition and entanglement give a structural edge:
Cryptography (Shor's algorithm) — factoring large numbers. Classical takes exponential time; quantum takes polynomial. That would threaten RSA — but needs thousands of stable qubits, and we have hundreds of noisy ones.
Search (Grover's algorithm) — searching N unsorted items: classical is N steps, quantum is sqrt(N). For a billion items that's a billion vs ~31,623. Significant, not exponential.
Simulation — simulating quantum systems (molecules, materials). Classical struggles because N quantum particles need 2^N states tracked; an N-qubit quantum computer simulates N particles directly. This is what Feynman originally proposed quantum computers for.
Optimization — large search spaces (logistics, portfolios, ML). Algorithms like QAOA (Quantum Approximate Optimization Algorithm) look promising but are still maturing.
True randomness — genuinely random numbers from quantum measurement. This one works today with no huge qubit count. It's what we use for Quantum Genesis.
What they are NOT good at
A few misconceptions worth killing:
"Faster at everything." No. For web servers, databases, word processing, games, classical wins and will keep winning. Quantum solves specific mathematical structures faster, not general computation.
"Trying all possibilities at once." Misleading. Superposition represents multiple states, but you extract one outcome per measurement. The art of a quantum algorithm is using interference to amplify correct answers and cancel wrong ones.
"Will replace classical computers." No — they'll complement them. Real applications have a classical machine orchestrating quantum circuits for specific sub-problems. Your laptop isn't going anywhere.
"Ready for production." Not for most applications yet. Today's 100–1000 qubit machines are in the "NISQ era" (Noisy Intermediate-Scale Quantum) — errors accumulate quickly. Useful for research, randomness, and small optimization problems. Not yet for breaking encryption or simulating complex molecules.
Where hardware stands (2026)
| Company | Qubits | Access | Notes |
|---|---|---|---|
| IBM Quantum | 156 (ibm_fez) | Free (limited) + paid | Best ecosystem, Qiskit SDK |
| IBM Quantum | 133 (ibm_torino) | Free (limited) + paid | Heron processor |
| Origin Quantum | 180 (WK_C180) | Cloud API | Chinese hardware, pyqpanda3 SDK |
| 105 (Willow) | Research only | Below-threshold error correction (2024) | |
| IonQ | 100 (Tempo, trapped ion) | Sold to KISTI; check current access | Different qubit technology |
| Quantinuum | 98 (Helios) | Quantinuum cloud | Fully connected, 99.92% two-qubit fidelity |
We used two of these for Quantum Genesis: Origin Quantum's WK_C180 (180 qubits) for pieces #1–18 via the pyqpanda3 SDK, and IBM's ibm_fez and ibm_torino (156 and 133 qubits) for pieces #19–100 via Qiskit. Both are reachable by anyone with an internet connection, and IBM's free tier includes real processors.
Get started today, free
Step 1 — account. Sign up at quantum.cloud.ibm.com. The free tier includes access to real quantum processors with a monthly limit.
Step 2 — install Qiskit.
pip install qiskit qiskit-ibm-runtime
Step 3 — write your first circuit on real hardware.
from qiskit import QuantumCircuit
from qiskit_ibm_runtime import QiskitRuntimeService, SamplerV2
# Connect to IBM Quantum
service = QiskitRuntimeService(
channel="ibm_quantum_platform",
token="YOUR_API_TOKEN"
)
# Choose a real quantum computer
backend = service.least_busy(operational=True, simulator=False)
print(f"Running on: {backend.name}")
# Build a circuit
qc = QuantumCircuit(2)
qc.h(0) # Superposition
qc.cx(0, 1) # Entanglement
qc.measure_all()
# Transpile for the specific hardware
from qiskit.transpiler.preset_passmanagers import generate_preset_pass_manager
pm = generate_preset_pass_manager(backend=backend, optimization_level=1)
circuit = pm.run(qc)
# Run on real quantum hardware
sampler = SamplerV2(backend)
job = sampler.run([circuit], shots=4096)
result = job.result()
# Get the counts
counts = result[0].data.meas.get_counts() # measure_all() names the register 'meas'
print(counts)
# Example output: {'00': 2011, '11': 2027, '01': 31, '10': 27}
# Entangled! Almost always 00 or 11; the rare 01/10 are hardware noise
Step 4 — experiment. Add more qubits, try different gates, run different backends. Compare simulator results to real hardware — the noise is the interesting part.
Step 5 — build something. We built generative art from measurements. You could do a quantum random number generator, a key-distribution demo, or explore variational algorithms. The space grows with every qubit.

Useful places to keep going:
- IBM Quantum Learning — free courses, basics to advanced.
- Qiskit Documentation — SDK reference and tutorials.
- Quantum Country — spaced-repetition essay format, great for retention.
- 3Blue1Brown — visual math that helps with quantum concepts.
The next logical step from "I ran a circuit" is doing something with the result — and turning a measurement into a repeatable seed is exactly the tricky part. That's the subject of the SHA-256 for developers post.
Comments
Post a Comment