Reading the State Vector Output
When you run a circuit in the simulator, you get back a table with one row per basis state. Each row shows three numbers: an amplitude, a probability, and a phase. Knowing what each column means lets you read the output confidently rather than just stare at numbers.
Amplitudes
The state vector of an -qubit system is a list of complex numbers called amplitudes, one for every possible classical bit string. For a single qubit the two amplitudes are labeled by and :
The simulator displays and either as decimal numbers (when they happen to be real) or as rectangular or polar complex numbers. The entire set of amplitudes completely describes everything you could ever know about the qubit — there is no hidden extra information.
Probabilities
The Born rule converts amplitudes to observable probabilities. The probability of measuring basis state is
the squared absolute value of the corresponding amplitude. Because all outcomes are mutually exclusive and exhaustive, the probabilities must sum to one:
This is why you will often see the simulator report that the amplitudes are "normalised." For example, the equal-superposition state has , so both outcomes are equally likely.
Phase
The phase of an amplitude is the angle . Phase has no direct effect on individual measurement probabilities (only appears in the Born rule), but it controls how amplitudes interfere with each other when gates are applied later. The simulator usually displays the phase in degrees or radians alongside the magnitude .
Putting it together
When you read a state vector table, the workflow is straightforward:
- Find the basis state of interest in the left column.
- Read off its amplitude in the next column.
- Square the magnitude to get the probability.
- Note the phase angle if you care about how this state will interfere with future gates.
A circuit that does nothing (the identity) leaves the qubit in with amplitude , probability , and phase . Apply a Hadamard gate and both amplitudes become , both probabilities become , and both phases are . Apply a gate afterward and the amplitude of picks up a phase of (it becomes ) while its probability stays — a concrete illustration that phase matters for interference even though it is invisible in a single measurement.
Try it
The state has amplitude for . Use the Born rule to compute the probability of measuring and return it.
Sign in on the full site to ask questions and join the discussion.