← Back to Lecture 2
One-page summary · CSC3132

Lecture 2: Complex linear algebra

Laid out to fit one A4 page. Good for copying into handwritten notes: rewriting it from memory, then checking, is better than reading it.

Vectors and Dirac notation

  • Ket = column vector: ∣v⟩=(v1v2)\ket{v} = \begin{pmatrix}v_1\\v_2\end{pmatrix}
  • Bra = conjugate transpose (row): ⟨v∣=(vˉ1, vˉ2)\bra{v} = (\bar v_1,\ \bar v_2)
  • ⟨a|b⟩=aˉ1b1+aˉ2b2\braket{a}{b} = \bar a_1 b_1 + \bar a_2 b_2 (a number); ∣a⟩⟨b∣\ket a\bra b is a matrix
  • Norm ∥v∥=⟨v|v⟩\|v\| = \sqrt{\braket{v}{v}}; unit vector v^=v/∥v∥\hat v = v/\|v\|

Matrices

  • (AB)ij=∑kAikBkj(AB)_{ij} = \sum_k A_{ik}B_{kj}; needs cols(A) = rows(B); m×nm\times n times n×pn\times p gives m×pm\times p
  • Usually AB≠BAAB \ne BA; addition is element-wise and commutative
  • Trace = sum of diagonal; eigenvector: A∣v⟩=a∣v⟩A\ket v = a\ket v

Complex numbers

  • z=a+biz = a + bi, i2=−1i^2 = -1; Re z=a\mathrm{Re}\,z = a, Im z=b\mathrm{Im}\,z = b (a real number)
  • zˉ=a−bi\bar z = a - bi; zzˉ=a2+b2=∣z∣2z\bar z = a^2 + b^2 = |z|^2; ∣z∣=a2+b2|z| = \sqrt{a^2+b^2}
  • Divide: wz=wzˉ∣z∣2\dfrac{w}{z} = \dfrac{w\bar z}{|z|^2}

Polar form and phase

  • eiθ=cos⁡θ+isin⁡θe^{i\theta} = \cos\theta + i\sin\theta; z=reiθz = re^{i\theta}, r=∣z∣r = |z|, θ=arg⁡z\theta = \arg z
  • Multiply: lengths multiply, angles add: r1eiθ1r2eiθ2=r1r2ei(θ1+θ2)r_1e^{i\theta_1}r_2e^{i\theta_2} = r_1r_2e^{i(\theta_1+\theta_2)}
  • ∣eiθ∣=1|e^{i\theta}| = 1: a phase factor never changes a size
  • Watch the quadrant when using tan⁡−1(b/a)\tan^{-1}(b/a)