k›ketwise.
FUNDAMENTALS / 05 / STATES

Read a statevector

Connect amplitudes, probabilities, and normalization.

Intuition

A statevector lists amplitudes in a fixed basis order. Square each amplitude's magnitude to get the probability of that basis outcome.

Amplitudes may be negative or complex; probabilities cannot. Normalization makes the probabilities sum to one. H on |0⟩ produces two amplitudes of 1/√2, not two amplitudes of 1/2.

The mathematics

∣ψ⟩=α∣0⟩+β∣1⟩,∣α∣2+∣β∣2=1|\psi\rangle=\alpha|0\rangle+\beta|1\rangle,\quad |\alpha|^2+|\beta|^2=1
Look a little deeper

For a complex amplitude a+ib, its squared magnitude is a²+b². Complex numbers let us describe phase as well as probability. The computational basis alone does not reveal relative phase.

Use it

Prepare |+⟩ using one gate. Inspect the two amplitudes and their probabilities.

This exercise uses the same server-side state and circuit checks as its linked practice problem.

Build your circuit

Click a gate to append it, or drag it onto a wire. CX uses the selected control; SWAP uses it as the second operand. Basis order: |qₙ … q₀⟩.

q0

Returned logical circuit · before transpilation · q0 on top

0 / 32 gates · terminal measurement of all qubits

Connect to code

from qiskit.quantum_info import Statevector
state = Statevector.from_instruction(qc)

These operations go inside a circuit-building program. Practice problems provide a complete solve() template.

Solve the linked Qiskit problem →

Check your understanding

An amplitude of 1/√2 gives what probability?

First complete the circuit exercise successfully.