An orthonormal basis combines three properties. The vectors span the space, each has length one, and different vectors have zero inner product. In bra–ket notation this is , where the Kronecker delta is one for equal labels and zero otherwise.
These properties make it easy to read a coefficient out of an expansion. If = in the computational basis, multiplying by gives . The term disappears because . Projecting with gives by the same reasoning.
Measuring in that basis gives probabilities and . Because the basis is complete, their sum equals the state's squared norm. Other orthonormal bases can describe the same state using different coefficients.
A two-vector basis with overlap different from zero can still span a two-dimensional space. Its overlaps with a state do not directly give the expansion coefficients. Orthonormality is the property that allows you to read the coefficients from those overlaps.