Apart from the inner product ⟨u∣v⟩, which is a complex number, we can also form the outer product∣u⟩⟨v∣, which is a linear map (operator) on H (or on H⋆, depending how you look at it).
This is what physicists like (and what mathematicians dislike!) about Dirac notation: a certain degree of healthy ambiguity.
The result of ∣u⟩⟨v∣ acting on a ket ∣x⟩ is ∣u⟩⟨v∣x⟩, i.e. the vector ∣u⟩ multiplied by the complex number ⟨v∣x⟩.
Similarly, the result of ∣u⟩⟨v∣ acting on a bra ⟨y∣ is ⟨y∣u⟩⟨v∣, i.e. the linear functional ⟨v∣ multiplied by the complex number ⟨y∣u⟩.
The product of two maps, A=∣a⟩⟨b∣ followed by B=∣c⟩⟨d∣, is a linear map BA, which can be written in Dirac notation as
BA=∣c⟩⟨d∣a⟩⟨b∣=⟨d∣a⟩∣c⟩⟨b∣
i.e. the inner product (complex number) ⟨d∣a⟩ times the outer product (linear map) ∣c⟩⟨b∣.
Any operator on H can be expressed as a sum of outer products. Given an orthonormal basis {∣ei⟩}i=1,…,n, any operator which maps the basis vectors ∣ei⟩ to vectors ∣fi⟩ can be written as ∑i=1n∣fi⟩⟨ei∣.
If the vectors {∣fi⟩}also form an orthonormal basis then the operator simply “rotates” one orthonormal basis into another.
These are unitary operators which preserve the inner product.
In particular, if each ∣ei⟩ is mapped to ∣ei⟩, then we obtain the identity operator:
i∑∣ei⟩⟨ei∣=1.
This relation holds for any orthonormal basis, and it is one of the most ubiquitous and useful formulas in quantum theory, known as completeness.17
For example, for any vector ∣v⟩ and for any orthonormal basis {∣ei⟩}, we have
∣v⟩=1∣v⟩=i∑∣ei⟩⟨ei∣∣v⟩=i∑∣ei⟩⟨ei∣v⟩=i∑vi∣ei⟩
where vi=⟨ei∣v⟩ are the components of ∣v⟩.
Finally, note that calculating the adjoint of an outer product boils down to just swapping the order:
(∣a⟩⟨b∣)†=∣b⟩⟨a∣.
Not to be confused with “completeness” in the sense of Hilbert spaces.↩︎