Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Inner products and Dirac notation

An inner product maps two vectors to a complex number and supplies norms, orthogonality and transition amplitudes.

Also called bra-ket notation, Dirac notation

Edition released Coverage: Overview · Technical · Research
On this page

Definition and convention

For column vectors |u> and |v>, the inner product is <u|v>=u-dagger v=sum_j u_j* v_j. This encyclopedia uses the physics convention: conjugate-linear in the first argument and linear in the second. The bra <u| is the adjoint of the ket |u>. The squared norm is <u|u>, and orthogonal vectors have zero inner product.

An outer product |u><v| is an operator, not a scalar. The order and dimensions distinguish it from <v|u>. Dirac notation is useful because it makes these roles visible without fixing a coordinate basis.

Fully solved example

Let |u>=(1,i)/sqrt(2) and |v>=(1,-i)/sqrt(2). Then <u|=(1,-i)/sqrt(2), and <u|v>=[1+(-i)(-i)]/2=0. Omitting conjugation would incorrectly give one. Both vectors are normalized and represent opposite Y eigenstates.

The projector |u><u| is [[1,-i],[i,1]]/2. Squaring it gives itself. Acting on |u> returns |u>, while acting on |v> gives zero. The same pair therefore demonstrates scalar overlap, operator construction and orthogonal projection.

Mathematical consequences and limits

Cauchy-Schwarz gives |<u|v>|<=||u|| ||v||. For normalized pure states it ensures overlap fidelity lies between zero and one. The triangle inequality and completeness turn an inner-product space into the geometry used for quantum state descriptions.

A nonorthogonal basis requires a Gram matrix when translating coordinate coefficients into inner products. Simply summing coefficient products assumes an orthonormal basis. Infinite-dimensional spaces also require attention to convergence and operator domains.

Coordinates in a nonorthogonal basis need a metric

Choose e₁ = |0⟩ and e₂ = |+⟩ as a basis of the qubit vector space. They are linearly independent but not orthogonal. Let S have these vectors as columns, so a coefficient column c represents the physical ket Sc. Inner products become ⟨Sc|Sd⟩ = c†Gd, where G = S†S = [[1,1/√2],[1/√2,1]].

The identity operator in coefficient space is still the identity matrix, but the physical inner product is no longer the ordinary dot product of coefficients. For example, |1⟩ has coordinates c = (−1,√2). Its ordinary coefficient norm squared is three. The correct expression is c†Gc = 1. The off-diagonal Gram terms subtract the overlap that an ordinary coefficient norm would count incorrectly.

Positive definiteness of G follows from c†Gc = ‖Sc‖² and invertibility of S. If the proposed vectors become linearly dependent, G becomes singular and unique coordinates cease to exist. A small Gram eigenvalue indicates that a substantial coefficient combination represents a small physical vector. This is why nearly parallel basis vectors can make coordinate calculations sensitive even when the underlying state is well behaved.

The dual basis extracts coefficients rather than overlaps

The dual vectors e¹ = (1,−1) and e² = (0,√2), written in the computational basis, satisfy ⟨eⁱ|eⱼ⟩ = δᵢⱼ. Therefore cᵢ = ⟨eⁱ|ψ⟩. Ordinary overlaps with the original basis vectors instead form the column S†|ψ⟩ = Gc. The coefficient and overlap columns coincide only for an orthonormal basis.

The resolution I = |e₁⟩⟨e¹|+|e₂⟩⟨e²| follows by applying its right-hand side to every basis vector. Neither term is required to be Hermitian or positive. This resolution is consequently not a two-outcome POVM. Algebraic reconstruction of vectors and assignment of outcome probabilities impose different constraints on their constituent operators.

Consider |ψ⟩ = (|e₁⟩+i|e₂⟩)/√2. Its two coefficient magnitudes squared sum to one in this special example, and the imaginary cross terms cancel in c†Gc. In computational coordinates it is (1/√2+i/2,i/2), giving probabilities 3/4 and 1/4. The numbers |c₁|² and |c₂|² are not the probabilities of measuring a hypothetical orthogonal basis consisting of e₁ and e₂; no such orthogonal basis exists.

Dirac products have dimensions as well as symbols

An outer product can map between different spaces. Let |u⟩ = (1,i,0)/√2 belong to a three-dimensional output space and |v⟩ = (1,−1)/√2 to a two-dimensional input space. The dyad |u⟩⟨v| is the three-by-two matrix [[1,−1],[i,−i],[0,0]]/2. It sends |v⟩ to |u⟩ and annihilates the input vector orthogonal to |v⟩.

By contrast, ⟨u|v⟩ is not defined without an additional identification or map between these different spaces. Merely placing a bra next to a ket does not guarantee compatible dimensions. When dimensions do match, a product of dyads reduces as (|u⟩⟨v|)(|x⟩⟨y|) = ⟨v|x⟩|u⟩⟨y|. The middle inner product is a scalar, while the surviving outer product retains the appropriate input and output spaces.

For a square dyad, tr(|u⟩⟨v|) = ⟨v|u⟩. Expanding the trace in any orthonormal basis gives a sum of products of coordinates, which collapses by completeness. For the rectangular dyad above, no ordinary matrix trace is defined. Its singular value is one because both participating vectors are normalized, despite its not being a square observable.

Tensor products preserve inner products factor by factor

For compatible single-system vectors, the composite inner product obeys ⟨u⊗v|x⊗y⟩ = ⟨u|x⟩⟨v|y⟩. Conjugation is already included in each bra, so no extra conjugation is inserted between the two scalar factors. Take u = |0⟩, x = |+⟩, v = (|0⟩+i|1⟩)/√2, and y = |+⟩. Their composite overlap is (1−i)/(2√2), with squared magnitude one-quarter. The same probability is obtained by multiplying the single-factor squared overlaps, one-half and one-half. This factorization applies to product vectors. A general entangled ket must first be expanded as a sum of such products, and cross terms between those summands remain in the resulting inner product. Dropping those cross terms would replace a coherent ket calculation with a different mixed-state calculation.

Conjugation reverses the matrix element

For every compatible operator A, the scalar identity ⟨u|A|v⟩* = ⟨v|A†|u⟩ follows by conjugating and transposing the entire product. The adjoint cannot be omitted unless A is Hermitian. Likewise, interchanging u and v without conjugation generally changes the complex amplitude.

Take A = [[0,i],[2,1]], |u⟩ = (1,i)/√2, and |v⟩ = (1,1)/√2. Multiplication gives A|v⟩ = (i,3)/√2 and ⟨u|A|v⟩ = −i. Using A† on the reversed matrix element gives +i, exactly its conjugate. The transition probabilities obtained from these two amplitudes agree, but the amplitudes themselves are different complex numbers.

The matrix S maps coefficients to physical vectors, so G governs the inner product on coefficient vectors even when the destination coordinates use the identity metric. The rectangular dyad has a two-dimensional input and a three-dimensional output. Coefficients and matrix elements give measurement probabilities only after the appropriate state, basis, and measurement rule are specified.

Sources

  • John Watrous · · Textbook material · cs.uwaterloo.ca
    Verification scope

    The Theory of Quantum Information, Chapter 1: Mathematical preliminaries
    John Watrous · · Textbook material · cs.uwaterloo.ca

    Citation identity checked ·

    Background reference; this record does not claim a full independent peer review of the encyclopedia. Original exposition and newly constructed calculations are not copied from the source.

    The Theory of Quantum Information: Chapter 1, Mathematical preliminaries
    John Watrous · · Manuscript · Author manuscript · cs.uwaterloo.ca

    Selected text checked ·

    Chapter introduction, finite-dimensional linear-algebra definitions and Caratheodory theorem were inspected. The author explicitly describes the chapter as review material, not a primary source for all mathematical results.

    Selected passages and metadata were checked; this does not certify every sentence in the encyclopedia, constitute comprehensive literature review, or establish external peer review. Original worked examples are separately recomputed.

  • Casey Rodriguez (course instructor; MIT course notes) · · Lecture or course notes · ocw.mit.edu
    Verification scope

    Selected text checked ·

    Full-text completeness definition, finite-dimensional and l2/L2 examples, parallelogram law, countable dense subsets, polynomial density on bounded intervals and Bessel inequality inspected.

    The lecture uses an inner product linear in its first slot; encyclopedia formulas use the physics convention linear in the ket. The Taylor-polynomial counterexample, occupation tails and error calculations are original additions and separately checked.