One idea, 4 fields

Matrix Multiplication Linear Maps

The unifying principle

A linear map T:RnRmT: \mathbb{R}^n \to \mathbb{R}^m is fully determined by what it does to the basis vectors e1,,ene_1, \dots, e_n. Because TT respects addition and scaling,

T(x)=T ⁣(jxjej)=jxjT(ej).T(x) = T\!\left(\sum_j x_j e_j\right) = \sum_j x_j\, T(e_j).

Collect the images T(ej)T(e_j) as columns of a matrix AA, and the whole map becomes one product:

(Ax)i=j=1nAijxj.(Ax)_i = \sum_{j=1}^{n} A_{ij}\, x_j.

The single fact "composition = multiplication, associative but not commutative" is what unifies everything below.

How it shows up in each field

Maths — linear algebra

The map is the object. A change of basis PP conjugates a transform: A=P1APA' = P^{-1}AP. Eigenvectors Av=λvAv = \lambda v are directions the map only stretches, never rotates.

AI-ML — neural layers

A dense layer is h=σ(Wx+b)h = \sigma(Wx + b). The linear part WxWx is exactly a transformation of the feature vector; the nonlinearity σ\sigma bends space between transforms so stacked linear maps don't collapse into one (W2W1W_2W_1).

Hardware — quantum gates & signal processing

A quantum gate is a unitary matrix UU (UU=IU^\dagger U = I) acting on a state vector; it's a rotation in complex Hilbert space, preserving ψ=1\|\psi\|=1.

Coding/CS — graphics & GPU computation

A GPU is a matrix-multiply engine. 3D graphics chains transforms via homogeneous 4×44\times4 matrices: p=PVMp\mathbf{p}' = P \cdot V \cdot M \cdot \mathbf{p} (model → view → projection). GPUs realize C=ABC = AB as tiled dot-products so that thousands of output entries compute in parallel.

Why this bridge matters

  • Composition intuition transfers everywhere. "Stacking transforms = multiplying matrices, and order matters" explains why quantum circuits, graphics pipelines, and deep networks all read right-to-left and are non-commutative.
  • Eigen-thinking unlocks ML and dynamics. Understanding eigenvalues as stretch factors explains vanishing/exploding gradients (spectral radius of WW), PCA, and stability of iterated maps.
  • Unitarity is a design principle. Quantum's norm-preservation motivates orthogonal/unitary weight initialization in RNNs to avoid gradient decay.
  • The hardware lesson feeds back to math. GPUs make matmul the cheap operation, so ML architectures are literally shaped by "express it as C=ABC=AB." Knowing the compute cost is O(n3)O(n^3) (or O(mnk)O(mnk)) tells you why attention is expensive and why low-rank factorizations AUVA \approx UV^\top pay off.

Connections

  • 01 Linear Maps & Change of Basis
  • 02 Eigenvalues & Spectral Decomposition
  • 07 Neural Network Layers & Attention
  • 11 Quantum Gates & Unitary Evolution
  • 14 3D Graphics Transform Pipeline
  • 18 GPU Kernels & Tensor Cores

#bridge

eigenvalues → gradient stability

unitarity → orthogonal init

C=AB cost shapes design

rotations = unitaries

Matrix = Transformation of Vectors
(composition = multiplication)

Maths
change of basis, eigenvectors

AI-ML
Wx layers, attention QKV

Hardware
unitary quantum gates

Coding/CS
graphics MVP, GPU matmul

Connected notes