Overview
The Dirac notation expresses a vector as (see inner product below for motivation)
{% \vec{v} = |v \rangle %}
When there is a
basis set of vectors,
{% v_1,v_2,...,v_n %} ,
it is common to write {% v_i %} as {% |i \rangle %}.
Then, any vector can be expressed as a sum over the basis vectors.
{% |v \rangle \; = \sum_i \; |i \rangle %}
Inner Products
The motivation for the Dirac notation comes from the inner product. The inner product between two vectors {% v_1 %} and {% v_2 %} is
{% \langle v_1 | v_2 \rangle %}
In the Dirac notation, a vector {% v_2 %} becomes {% |v_2 \rangle %} (often called a ket), and there exists a function
associated with {% v_1 %},
labeled {% \langle v_1 | %} (often called a bra) which when applied to the ket, returns the value of the inner product
between {% v_1 %} and {% v_2 %} (known as the bracket).
{% \langle v_1 | ( |v_2 \rangle ) = \langle v_1 | v_2 \rangle %}