To better prepare ourselves to explore the capabilities and limitations of quantum circuits, we now introduce some additional mathematical concepts — namely the inner product between vectors (and its connection to the Euclidean norm), the notions of orthogonality and orthonormality for sets of vectors, and projection matrices, which will allow us to introduce a handy generalization of standard basis measurements.
Recall that when we use the Dirac notation to refer to an arbitrary column vector as a ket, such as
∣ψ⟩=α1α2⋮αn,
the corresponding bra vector is the conjugate transpose of this vector:
⟨ψ∣=(∣ψ⟩)†=(α1α2⋯αn).(1)
Alternatively, if we have some classical state set Σ in mind, and we express a column vector as a ket,
such as
∣ψ⟩=a∈Σ∑αa∣a⟩,
then the corresponding row (or bra) vector is the conjugate transpose
⟨ψ∣=a∈Σ∑αa⟨a∣.(2)
We also have that the product of a bra vector and a ket vector, viewed as matrices either having a single row or a single column, results in a scalar.
Specifically, if we have two column vectors
∣ψ⟩=α1α2⋮αnand∣ϕ⟩=β1β2⋮βn,
so that the row vector ⟨ψ∣ is as in equation (1), then