Beginner Path
This path assumes no prior quantum knowledge. It gives you the linear algebra, complex numbers, probability, and physics you need, then introduces qubits and the standard gate set. By the end you will be able to read quantum state notation and build a simple entangling circuit.
Work through the sections in order. Each one is short on purpose — the aim is to give you enough vocabulary to start experimenting, not to be a full textbook.
Linear Algebra
Quantum states are vectors and operations on them are matrices, so linear algebra is the language of the field.
Vectors. A column vector in looks like
Inner product. For two vectors and , the inner product (denoted in Dirac notation) is
where is the complex conjugate. A vector is normalized when . Two vectors are orthogonal when their inner product is .
Matrices. A matrix maps vectors to vectors. The matrices we care about most are unitary (, where is the conjugate transpose) because they preserve length, and Hermitian () because they represent measurable quantities (observables).
Eigenvalues and eigenvectors. If , then is an eigenvector with eigenvalue . For Hermitian matrices the eigenvalues are real and represent the possible outcomes of a measurement. This idea returns when we discuss measurement and observables.
Complex Numbers
A complex number is with . Its modulus is and its conjugate is , so .
The most useful form for quantum computing is the polar / Euler form:
The angle is a phase. Phases are central to quantum computing: two states can have the same probabilities yet differ by a relative phase, and that difference is what interference exploits.
Probability
Measuring a quantum system yields random outcomes, so you need basic probability.
- A probability distribution assigns non-negative numbers that sum to .
- The expectation value of an observable with outcomes and probabilities is .
In quantum mechanics probabilities are computed from amplitudes (complex numbers) by taking the squared modulus — this is the Born rule below. The key difference from classical probability is that amplitudes can cancel out, producing interference.
Quantum Mechanics Basics
Three ideas carry most of the weight.
Superposition. A quantum system can exist in a linear combination of basis states. A qubit can be in , , or any superposition at the same time, until measured.
Measurement. Measurement is not passive. When you measure a qubit in the computational basis, it collapses to either or , and after that it stays in that state.
Born rule. The probability of an outcome is the squared modulus of its amplitude. For :
That normalization condition is just the requirement that the probabilities sum to one.
Qubits
A qubit is the quantum analogue of a bit. Its state is a normalized vector in :
The Bloch sphere. Because of normalization and the irrelevance of global phase, any pure qubit state can be written with two real angles:
Here and are spherical coordinates on a unit sphere — the Bloch sphere. The north pole is , the south pole is , and points on the equator are equal superpositions distinguished by their phase . Single-qubit gates are rotations of this sphere.
Quantum Gates
Gates are unitary matrices acting on qubit states. Here are the essentials.
Pauli gates.
is the quantum NOT (bit flip), flips the relative phase, and does both.
Hadamard. Creates superposition:
Phase gates.
applies a quarter turn of phase and an eighth turn; together with they let you approximate any single-qubit gate.
CNOT. A two-qubit gate that flips the target if the control is :
CNOT is how we create entanglement between qubits.
Building a Bell state. A Bell state is a maximally entangled two-qubit state. Apply to the first qubit, then a CNOT:
from qiskit import QuantumCircuit
from qiskit.quantum_info import Statevector
qc = QuantumCircuit(2)
qc.h(0) # put qubit 0 into superposition
qc.cx(0, 1) # entangle: CNOT with control 0, target 1
state = Statevector.from_instruction(qc)
print(state) # (|00> + |11>) / sqrt(2)
The resulting state is
Measuring one qubit instantly determines the other — neither is or on its own. That correlation, with no classical analogue, is the heart of what makes quantum computing powerful.
What's next
You now have the foundations: math, physics, qubits, and gates. The next step is to combine gates into full circuits and meet your first real algorithms. Continue to the Intermediate Path, and try running circuits yourself in the Hands-on Labs.