Maths and linear algebra

Expect short hand calculations. The aim is fluency with a handful of objects: vectors, matrices, tensor products and eigen-decompositions.

14 questions. Reviewed December 2026. Answers are model answers to adapt, not scripts to memorise.

What interviewers test

  • Hand calculation speed
  • Tensor product bookkeeping
  • Operator properties

How to answer well

  • Write matrices out; do not try to hold them in your head.
  • For tensor products, order qubits consistently and say which is first.
  • State properties (Hermitian, unitary) with their consequences.

1 · Beginner

What is the tensor product of two qubit states?

It builds the joint state of two systems: (a|0⟩ + b|1⟩) ⊗ (c|0⟩ + d|1⟩) = ac|00⟩ + ad|01⟩ + bc|10⟩ + bd|11⟩. Dimensions multiply, so n qubits need 2ⁿ amplitudes. A joint state that cannot be factored this way is entangled.

Likely follow-up: Is (|00⟩ + |11⟩)/√2 a product state? Prove it.

Go deeper: The math of a qubit

2 · Beginner

What is the difference between a Hermitian and a unitary matrix?

A Hermitian matrix equals its conjugate transpose and has real eigenvalues; observables are Hermitian. A unitary matrix has its conjugate transpose as its inverse, preserves lengths, and has eigenvalues of magnitude one; gates are unitary. Some matrices, such as the Paulis, are both.

Likely follow-up: Which of H, X, S is Hermitian?

3 · Beginner

What are bra-ket notation and the inner product?

|ψ⟩ is a column vector, ⟨ψ| its conjugate transpose, and ⟨φ|ψ⟩ the inner product, a complex number. |⟨φ|ψ⟩|² is the probability of finding the system in |φ⟩ when it is in |ψ⟩. States are orthogonal when the inner product is zero.

Likely follow-up: What is ⟨+|−⟩?

4 · Intermediate

Find the eigenvalues and eigenvectors of X.

X = [[0,1],[1,0]]. Solving det(X − λI) = λ² − 1 = 0 gives λ = ±1. The eigenvector for +1 is (|0⟩ + |1⟩)/√2 = |+⟩, and for −1 it is (|0⟩ − |1⟩)/√2 = |−⟩. So measuring in the X basis means projecting onto |±⟩.

Likely follow-up: What are the eigenvectors of Y?

5 · Intermediate

What is the expectation value of an observable?

⟨O⟩ = ⟨ψ|O|ψ⟩, the average of measurement results over many repeated preparations. For Z on α|0⟩ + β|1⟩ it equals |α|² − |β|². Variational algorithms estimate such expectations from shots.

Likely follow-up: What is ⟨X⟩ for |+⟩?

6 · Intermediate

Compute the state after H⊗H on |00⟩.

Each H gives (|0⟩ + |1⟩)/√2, so the joint state is (|00⟩ + |01⟩ + |10⟩ + |11⟩)/2, a uniform superposition with probability ¼ each. In general H⊗n on |0…0⟩ gives the uniform superposition over all 2ⁿ strings, the first step in many algorithms.

Likely follow-up: What does H⊗n do to |s⟩ for a general string s?

7 · Intermediate

What is the trace and partial trace?

The trace sums diagonal entries. The partial trace over subsystem B of a joint density matrix gives the reduced state of A, which describes everything measurable on A alone. For a Bell pair the reduced state is I/2.

Likely follow-up: Compute the reduced state of (|00⟩ + |01⟩)/√2 on qubit 1.

8 · Advanced

What is the spectral theorem and why does it matter here?

A normal operator (Hermitian and unitary matrices included) is diagonalisable in an orthonormal eigenbasis. For an observable, the eigenvalues are the possible measurement results and the eigenvectors the corresponding states; for a Hamiltonian, the lowest eigenvalue is the ground-state energy, which VQE estimates.

Likely follow-up: What does this say about a unitary’s eigenvalues?

9 · Advanced

What is the commutator, and what does it tell you?

[A,B] = AB − BA. Operators that commute can be measured simultaneously with definite results; those that do not obey an uncertainty relation. For Paulis, [X,Y] = 2iZ. Commutation also determines which Pauli terms of a Hamiltonian can share measurement settings.

Likely follow-up: State the generalised uncertainty relation.

Go deeper: Uncertainty principle

10 · Advanced

What is the Hilbert–Schmidt (or Frobenius) view of 2×2 operators?

Any 2×2 matrix can be expanded as a combination of I, X, Y and Z, with coefficients Tr(σM)/2. A density matrix therefore is ρ = (I + r·σ)/2 with Bloch vector r, which is why the Bloch picture works for mixed states too.

Likely follow-up: What constraint does positivity put on r?

11 · Beginner

What is a unit vector and why must states be normalised?

A vector of length one. Total probability must be one, so |α|² + |β|² = 1 for a qubit. Unitary gates preserve length, which keeps states normalised throughout a circuit.

Likely follow-up: Normalise (3|0⟩ + 4i|1⟩).

12 · Intermediate

What is the outer product and how does it build projectors?

|ψ⟩⟨ψ| is a matrix. For a normalised |ψ⟩ it is a projector onto that state, equal to its own square. Density matrices of pure states are exactly this, and measurement projectors in a basis are |k⟩⟨k|.

Likely follow-up: Write |+⟩⟨+| as a matrix.

13 · Intermediate

Show that H = (X + Z)/√2.

X + Z = [[1,1],[1,−1]], and dividing by √2 gives the Hadamard matrix. So H is a rotation of π about the axis halfway between X and Z on the Bloch sphere, which explains why it swaps the X and Z bases.

Likely follow-up: What is H² and why?

14 · Advanced

What is the singular value decomposition and where does it appear?

Any matrix factors as UΣV†, with unitary U and V and non-negative diagonal Σ. Applied to the coefficient matrix of a bipartite pure state it gives the Schmidt decomposition, and tensor-network simulators truncate small singular values to compress states.

Likely follow-up: What do truncated singular values cost in accuracy?

Keep studying