Skip to content
Tech Interview Prep
Technical interview guide

Qubits, Superposition & Quantum State Representation

How a qubit's state differs from a classical bit: superposition, the Bloch sphere, and bra-ket notation for describing quantum states.

Minutes to read
3
Practice MCQs
25
Interview Q&A
25
Edition
v3
Editorial status
Reviewed

Scope: IBM Quantum information and Qiskit current documentation; OpenQASM 3; QuTiP 5.4; Preskill notes; no-cloning and tomography source literature reviewed 2026-09-04.

Overview

Curated: · Written: · Reviewed:

Qubits, Superposition & Quantum State Representation

In one line

A qubit state is a normalized complex vector α|0⟩ + β|1⟩ written in a stated basis. Reach for this description when you must predict measurement statistics, decide whether two states are the same, or size a simulator.

Key definitions

  • Amplitude: a complex coefficient. Its squared magnitude is a probability; its phase is not.
  • Normalization: |α|² + |β|² = 1, so the outcome probabilities sum to one.
  • Global phase: a common factor e^{iφ} on every amplitude. It never changes a measurement probability.
  • Relative phase: the phase of one amplitude against another. Interference depends on it.
  • Inner product ⟨φ|ψ⟩: conjugates the bra. The probability of outcome φ is |⟨φ|ψ⟩|².
  • Bloch sphere: pure single-qubit states as points on a unit sphere, after dropping normalization and global phase.

Formulas and complexity

∣ψ⟩=α∣0⟩+β∣1⟩,∣α∣2+∣β∣2=1|\psi\rangle = \alpha|0\rangle + \beta|1\rangle,\qquad |\alpha|^2 + |\beta|^2 = 1 P(k)=∣⟨k∣ψ⟩∣2,∑kP(k)=1 because ⟨ψ∣ψ⟩=1P(k) = |\langle k|\psi\rangle|^2,\qquad \sum_k P(k) = 1 \text{ because } \langle\psi|\psi\rangle = 1 cos⁡θ2∣0⟩+eiφsin⁡θ2∣1⟩(Bloch form)\cos\tfrac{\theta}{2}|0\rangle + e^{i\varphi}\sin\tfrac{\theta}{2}|1\rangle \quad\text{(Bloch form)} statevector: 2n amplitudesdensity matrix: 4n entries\text{statevector: } 2^n \text{ amplitudes} \qquad \text{density matrix: } 4^n \text{ entries}

Quote these: 21 qubits in complex64 is 2^21 × 8 bytes = 16 MiB. A 30-qubit statevector in complex128 is 17.2 GB. A 17-qubit density matrix in complex128 costs the same 275 GB as a 34-qubit statevector.

How it works

Fix the basis first. The state is then a vector of complex amplitudes. Gates are unitaries that rotate that vector and shift relative phases. Measuring in a basis returns one outcome with probability |amplitude|², and the state becomes that basis vector. Interference is what cancels amplitudes for wrong answers before measurement.

Worked check: start from (1/2)|0⟩ + (√3/2)|1⟩, apply H, apply a phase of π/3 to the |1⟩ amplitude, then apply H again. The probability of reading 0 is 3/8. Work it through the amplitudes, not the counts.

Prepare state in a stated basis Unitary gate such as H Relative phase change on the 1 amplitude Second gate such as H Measure in Z basis Outcome k with probability amplitude squared

When to use and when not to

SituationRepresentationWhy
Ideal pure circuit, n up to about 30Statevector, 2^n amplitudesExact amplitudes; memory is the limit
Noise, mixed preparation, subsystem reductionDensity matrix, 4^n entriesPractical to about 15 qubits on the same hardware
Clifford-only circuitStabilizerPolynomial cost; fails on any T gate
One qubit, teaching or visualizationBloch sphereTwo angles; cannot show entanglement
Entangled multi-qubit stateNo single Bloch sphereThe joint state does not factor

Traps interviewers probe

  1. Calling 50/50 counts a fair coin. Counts in one basis cannot separate |+⟩ from an equal mixture of |0⟩ and |1⟩. Fix: name the second basis that does, the X basis, where |+⟩ reads 0 every time.
  2. Treating global phase as observable. Fix: compare |⟨ψ1|ψ2⟩|² with 1 inside a stated tolerance, not elementwise with np.allclose.
  3. Dropping the conjugate. A plain dot product gives complex or negative probabilities. Fix: use the adjoint or vdot, and test with an imaginary amplitude.
  4. Silent bit reversal. Qiskit's statevector index is little-endian, so q0 is the rightmost bit of the key. Fix: test an asymmetric state, such as X on one qubit of three, against hand-computed indices.
  5. Saying no-cloning forbids CNOT. CNOT copies basis states only. On α|0⟩ + β|1⟩ it produces entanglement, not a copy.

Interview tips

Open with: "A qubit is a normalized complex vector over a stated basis. Squared magnitudes give the outcome probabilities, and relative phase is what interference uses."

Follow-ups to expect:

  • Are two states that both measure 50/50 the same? Not necessarily. Name the basis that separates them.
  • Why is global phase unobservable? It cancels in |e^{iφ}c|².
  • Derive the measurement rule. P(φ) = |⟨φ|ψ⟩|², and orthonormal bases make these sum to one.
  • Can you draw an entangled pair on the Bloch sphere? No. The joint state does not factor.
  • Why no exponential parallelism? Measurement returns n bits, so algorithms must arrange interference that cancels wrong answers.

30-second outline:

  1. Define the state: normalized complex amplitudes over a named basis.
  2. State the measurement rule: outcome probability is the squared magnitude of the overlap.
  3. Give the phase point: 50/50 in one basis does not identify the state; relative phase shows up in a second basis.
  4. Close with the cost: 2^n amplitudes, so the simulator choice depends on what the circuit's structure allows.

Feedback on this overview

Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.