|q⟩ Bad Qubits

beginner · Physics · Math Foundations: Linear Algebra

The Adjoint (Dagger)

The adjoint of a matrix MM, written M†M^\dagger and read "M dagger," is obtained in two steps:

  1. Transpose: swap rows and columns to get MTM^T.
  2. Complex conjugate: replace every entry zz with its conjugate z∗z^*.

Applied together, the (i,j)(i,j) entry of the adjoint is

(M†)ij=Mji‾.\left(M^\dagger\right)_{ij} = \overline{M_{ji}}.

For a 2×22 \times 2 example, if

M=(abcd),M = \begin{pmatrix} a & b \\ c & d \end{pmatrix},

then

M†=(a∗c∗b∗d∗).M^\dagger = \begin{pmatrix} a^* & c^* \\ b^* & d^* \end{pmatrix}.

A worked example

Take the matrix

M=(1+2i30−1+i).M = \begin{pmatrix} 1+2i & 3 \\ 0 & -1+i \end{pmatrix}.

Step 1 — transpose. Swap off-diagonal entries:

MT=(1+2i03−1+i).M^T = \begin{pmatrix} 1+2i & 0 \\ 3 & -1+i \end{pmatrix}.

Step 2 — complex conjugate. For each entry replace ii with −i-i:

M†=(1−2i03−1−i).M^\dagger = \begin{pmatrix} 1-2i & 0 \\ 3 & -1-i \end{pmatrix}.

You can verify the entries one by one: M00‾=1+2i‾=1−2i\overline{M_{00}} = \overline{1+2i} = 1-2i; M10‾=0‾=0\overline{M_{10}} = \overline{0} = 0; M01‾=3‾=3\overline{M_{01}} = \overline{3} = 3; M11‾=−1+i‾=−1−i\overline{M_{11}} = \overline{-1+i} = -1-i.

Why it matters in quantum mechanics

In quantum mechanics every observable is represented by a Hermitian operator satisfying M†=MM^\dagger = M, and every time-evolution operator is unitary satisfying M†M=IM^\dagger M = I. Both conditions are stated directly in terms of the adjoint, so computing M†M^\dagger correctly is a prerequisite for almost every quantum-mechanical calculation.

The adjoint also generalises the complex conjugate of a scalar: if M=(z)M = (z) is a 1×11 \times 1 matrix, then M†=(z∗)M^\dagger = (z^*). This is why bra vectors ⟨ψ∣\langle\psi| in Dirac notation are the adjoint of ket vectors ∣ψ⟩|\psi\rangle.

Try it

This is a numerical exercise — your code should return a number. Work out M†M^\dagger for the matrix above, then return the real part of its (0,1)(0,1) entry (zero-indexed: row 0, column 1).

Run your code to see the quantum state.

Sign in on the full site to ask questions and join the discussion.