Part 0 · Toolkit — 0.1

Arrows & Vectors

Quantum states are written as arrows — that is the whole secret of the notation. Before a single qubit appears, let us make sure an arrow holds no mystery: what it is, how to read it as numbers, and how to add and stretch one. This is the gentlest page in the course; everything later leans on it.

↩ before you start · this is page one, so almost nothing
·You can read a number line: 3 is three steps right, −2 is two steps left.
·You recognise a right angle (a square corner), and you have met a² + b² = c² for right triangles — that one returns at the end.
·That is genuinely all. No trigonometry, no calculus.
🔑 symbol decoder · every new mark, in plain words
vthe name of a whole arrow (a "vector"). One letter standing for a length-and-direction. [ a, b ]that arrow written as two numbers stacked in a bracket: how far across, then how far up. These are its components. |v|"the length of v" — how long the arrow is, ignoring which way it points. 2·v"scale v" — stretch the arrow without turning it. A plain number used this way is called a scalar. tip‑to‑tailhow two arrows add: start the second where the first one ends.
feel

An arrow knows two things, and only two

Picture a single arrow drawn on the floor. It tells you exactly two things and nothing else: how long it is, and which way it points. Move it across the room without turning or resizing it and it is still the same arrow. That is all a vector is — a length and a direction.

which way how long
🗺️ everyday picture

A pirate's treasure map says "walk 3 paces east, then 4 paces north." That instruction is a vector: it has a length (how far the treasure ends up from you) and a direction (which way to face). It does not matter where you start digging from — the same "3 east, 4 north" always points to the same spot relative to you. Slide it anywhere; it is the same arrow.

recapA vector is just a length plus a direction — an arrow you can slide around freely.
see

A pair of numbers is just its shadow

To turn an arrow into numbers, stand it at an origin and shine two lights — one from the side, one from above. The shadows it casts on the two walls are its components: the first number says how far across, the second how far up. Write them as a stacked list and you have the vector. (The treasure map's "3 east, 4 north" becomes simply [3, 4].)

▸ componentsarrow → [a, b]
a = across b = up
the vector
[
ab
]
recapThe two numbers in [a, b] are the arrow's shadows: across, then up.
play

Build, stretch and add arrows

Grab the teal tip and drag it anywhere — the components and length update as you move. Add a second amber arrow and the two combine tip‑to‑tail: walk along the first, then the second, and the green arrow is where you end up.

▸ vector playgrounddrag the tips
v[ {{ va }}, {{ vb }} ]
|v| length{{ vlen }}
angle{{ vang }}°
w[ {{ wa }}, {{ wb }} ]
v + w[ {{ sa }}, {{ sb }} ]
to add: components just add. across+across, up+up.
recapStretching multiplies both components; adding two arrows just adds them slot-by-slot.
math

Length is just Pythagoras

The two components and the arrow form a right triangle: the components are the legs, the arrow is the hypotenuse. So the length is the square root of the squared components — the only formula you need to carry forward.

3 4 5
|v| = √( a² + b² )
for v = [3, 4] :
|v| = √( 9 + 16 ) = √25 = 5
worked example · one more, slowly
1.take v = [6, 8]. square each component:  6² = 36,  8² = 64
2.add them:  36 + 64 = 100
3.take the square root:  √100 = 10  — so |v| = 10

Keep this picture. When a qubit is written α|0⟩ + β|1⟩, the α and β are exactly these components — and demanding the arrow have length 1 is what makes the probabilities add up.

recapLength = √(across² + up²). Square, add, square-root.
⚠ common misconceptions

"A vector is a point — a dot on the map." Not quite. It is the trip, not the destination: a length and direction you can start from anywhere. Two people standing in different spots can both follow "3 east, 4 north" — same vector, different endpoints.

"To add arrows, add their lengths." No — you add them tip‑to‑tail, component by component. An arrow of length 3 plus one of length 4 can total 5 (if they sit at a right angle), not 7. Length is not something you can just add up.

✓ you can now
read any arrow as a pair of numbers [across, up], and draw the arrow back from the numbers
stretch an arrow (scale it) and add two arrows tip‑to‑tail
find an arrow's length with √(a² + b²) — the rule that defines a legal quantum state
← home next · 0.2 Spinning Arrows