Bra–ket notation

Bra–ket notation, also called Dirac notation, is a notation for linear algebra and linear operators on complex vector spaces together with their dual space both in the finite-dimensional and infinite-dimensional case. It is specifically designed to ease the types of calculations that frequently come up in quantum mechanics. Its use in quantum mechanics is quite widespread.

Bra–ket notation was created by Paul Dirac in his 1939 publication A New Notation for Quantum Mechanics. The notation was introduced as an easier way to write quantum mechanical expressions. The name comes from the English word "bracket".

Quantum mechanics
In quantum mechanics, bra–ket notation is used ubiquitously to denote quantum states. The notation uses angle brackets, $\langle$ and $\rangle$, and a vertical bar $, to construct "bras" and "kets".

A ket is of the form $$|v \rangle$$. Mathematically it denotes a vector, $$\boldsymbol v$$, in an abstract (complex) vector space $$V$$, and physically it represents a state of some quantum system.

A bra is of the form $$\langle f|$$. Mathematically it denotes a linear form $$f:V \to \Complex$$, i.e. a linear map that maps each vector in $$V$$ to a number in the complex plane $$\Complex$$. Letting the linear functional $$ \langle f|$$ act on a vector $$|v\rangle$$ is written as $$\langle f | v\rangle \in \Complex$$.

Assume that on $$V$$ there exists an inner product $$(\cdot,\cdot)$$ with antilinear first argument, which makes $$V$$ an inner product space. Then with this inner product each vector $$\boldsymbol \phi \equiv |\phi\rangle$$ can be identified with a corresponding linear form, by placing the vector in the anti-linear first slot of the inner product: $$(\boldsymbol\phi,\cdot) \equiv \langle\phi|$$. The correspondence between these notations is then $$(\boldsymbol\phi, \boldsymbol\psi) \equiv \langle\phi|\psi\rangle$$. The linear form $$\langle\phi|$$ is a covector to $$|\phi\rangle$$, and the set of all covectors forms a subspace of the dual vector space $$ V^\vee$$, to the initial vector space $$V$$. The purpose of this linear form $$\langle\phi|$$ can now be understood in terms of making projections onto the state $$\boldsymbol \phi,$$ to find how linearly dependent two states are, etc.

For the vector space $$\Complex^n$$, kets can be identified with column vectors, and bras with row vectors. Combinations of bras, kets, and linear operators are interpreted using matrix multiplication. If $$\Complex^n$$ has the standard Hermitian inner product $$(\boldsymbol v, \boldsymbol w) = v^\dagger w$$, under this identification, the identification of kets and bras and vice versa provided by the inner product is taking the Hermitian conjugate (denoted $$ \dagger$$).

It is common to suppress the vector or linear form from the bra–ket notation and only use a label inside the typography for the bra or ket. For example, the spin operator $$\hat \sigma_z$$ on a two-dimensional space $$\Delta$$ of spinors has eigenvalues $\pm \frac{1}{2}$ with eigenspinors $$\boldsymbol \psi_+,\boldsymbol \psi_- \in \Delta$$. In bra–ket notation, this is typically denoted as $$\boldsymbol \psi_+ = |+\rangle$$, and $$\boldsymbol \psi_- = |-\rangle$$. As above, kets and bras with the same label are interpreted as kets and bras corresponding to each other using the inner product. In particular, when also identified with row and column vectors, kets and bras with the same label are identified with Hermitian conjugate column and row vectors.

Bra–ket notation was effectively established in 1939 by Paul Dirac; it is thus also known as Dirac notation, despite the notation having a precursor in Hermann Grassmann's use of $$[\phi{\mid}\psi]$$ for inner products nearly 100 years earlier.

Vectors vs kets
In mathematics, the term "vector" is used for an element of any vector space. In physics, however, the term "vector" tends to refer almost exclusively to quantities like displacement or velocity, which have components that relate directly to the three dimensions of space, or relativistically, to the four of spacetime. Such vectors are typically denoted with over arrows ($$\vec r$$), boldface ($$\mathbf{p}$$) or indices ($$v^\mu$$).

In quantum mechanics, a quantum state is typically represented as an element of a complex Hilbert space, for example, the infinite-dimensional vector space of all possible wavefunctions (square integrable functions mapping each point of 3D space to a complex number) or some more abstract Hilbert space constructed more algebraically. To distinguish this type of vector from those described above, it is common and useful in physics to denote an element $$\phi$$ of an abstract complex vector space as a ket $$|\phi\rangle$$, to refer to it as a "ket" rather than as a vector, and to pronounce it "ket-$$\phi$$" or "ket-A" for $|A\rangle$.

Symbols, letters, numbers, or even words—whatever serves as a convenient label—can be used as the label inside a ket, with the $$|\ \rangle$$ making clear that the label indicates a vector in vector space. In other words, the symbol "$|A\rangle$" has a recognizable mathematical meaning as to the kind of variable being represented, while just the "$A$" by itself does not. For example, $|1\rangle + |2\rangle$ is not necessarily equal to $|3\rangle$. Nevertheless, for convenience, there is usually some logical scheme behind the labels inside kets, such as the common practice of labeling energy eigenkets in quantum mechanics through a listing of their quantum numbers. At its simplest, the label inside the ket is the eigenvalue of a physical operator, such as $$\hat x$$, $$\hat p$$, $$\hat L_z$$, etc.

Notation
Since kets are just vectors in a Hermitian vector space, they can be manipulated using the usual rules of linear algebra. For example:


 * $$\begin{align}

\end{align}$$
 * A \rangle &= |B\rangle + |C\rangle \\
 * C \rangle &= (-1+2i)|D \rangle \\
 * D \rangle &= \int_{-\infty}^{\infty} e^{-x^2} |x\rangle \, \mathrm{d}x \,.

Note how the last line above involves infinitely many different kets, one for each real number $x$.

Since the ket is an element of a vector space, a bra $$\langle A|$$ is an element of its dual space, i.e. a bra is a linear functional which is a linear map from the vector space to the complex numbers. Thus, it is useful to think of kets and bras as being elements of different vector spaces (see below however) with both being different useful concepts.

A bra $$\langle\phi|$$ and a ket $$ |\psi\rangle$$ (i.e. a functional and a vector), can be combined to an operator $$|\psi\rangle\langle\phi|$$ of rank one with outer product


 * $$|\psi\rangle\langle\phi| \colon |\xi\rangle \mapsto |\psi\rangle\langle\phi|\xi\rangle ~.$$

Inner product and bra–ket identification on Hilbert space
The bra–ket notation is particularly useful in Hilbert spaces which have an inner product that allows Hermitian conjugation and identifying a vector with a continuous linear functional, i.e. a ket with a bra, and vice versa (see Riesz representation theorem). The inner product on Hilbert space $$(\, \ )$$ (with the first argument anti linear as preferred by physicists) is fully equivalent to an (anti-linear) identification between the space of kets and that of bras in the bra ket notation: for a vector ket $$\phi = |\phi\rangle $$ define a functional (i.e. bra) $$f_\phi = \langle\phi|$$ by


 * $$(\phi,\psi) = (|\phi\rangle, |\psi\rangle) =: f_\phi(\psi) = \langle\phi| \, \bigl(|\psi\rangle\bigr) =: \langle\phi{\mid}\psi\rangle $$

Bras and kets as row and column vectors
In the simple case where we consider the vector space $$\Complex^n$$, a ket can be identified with a column vector, and a bra as a row vector. If moreover we use the standard Hermitian inner product on $$\Complex^n$$, the bra corresponding to a ket, in particular a bra $\langlem|$ and a ket $|m\rangle$ with the same label are conjugate transpose. Moreover, conventions are set up in such a way that writing bras, kets, and linear operators next to each other simply imply matrix multiplication. In particular the outer product $$|\psi\rangle\langle\phi| $$ of a column and a row vector ket and bra can be identified with matrix multiplication (column vector times row vector equals matrix).

For a finite-dimensional vector space, using a fixed orthonormal basis, the inner product can be written as a matrix multiplication of a row vector with a column vector: $$ \langle A | B \rangle \doteq A_1^* B_1 + A_2^* B_2 + \cdots + A_N^* B_N = \begin{pmatrix} A_1^* & A_2^* & \cdots & A_N^* \end{pmatrix} \begin{pmatrix} B_1 \\ B_2 \\ \vdots \\ B_N \end{pmatrix}$$ Based on this, the bras and kets can be defined as: $$\begin{align} \langle A | &\doteq \begin{pmatrix} A_1^* & A_2^* & \cdots & A_N^* \end{pmatrix} \\ \end{align}$$ and then it is understood that a bra next to a ket implies matrix multiplication.
 * B \rangle &\doteq \begin{pmatrix} B_1 \\ B_2 \\ \vdots \\ B_N \end{pmatrix}

The conjugate transpose (also called Hermitian conjugate) of a bra is the corresponding ket and vice versa: $$\langle A |^\dagger = |A \rangle, \quad |A \rangle^\dagger = \langle A |$$ because if one starts with the bra $$\begin{pmatrix} A_1^* & A_2^* & \cdots & A_N^* \end{pmatrix} \,,$$ then performs a complex conjugation, and then a matrix transpose, one ends up with the ket $$\begin{pmatrix} A_1 \\ A_2 \\ \vdots \\ A_N \end{pmatrix}$$

Writing elements of a finite dimensional (or mutatis mutandis, countably infinite) vector space as a column vector of numbers requires picking a basis. Picking a basis is not always helpful because quantum mechanics calculations involve frequently switching between different bases (e.g. position basis, momentum basis, energy eigenbasis), and one can write something like "$|m\rangle$" without committing to any particular basis. In situations involving two different important basis vectors, the basis vectors can be taken in the notation explicitly and here will be referred simply as "$|−\rangle$" and "$|+\rangle$".

Non-normalizable states and non-Hilbert spaces
Bra–ket notation can be used even if the vector space is not a Hilbert space.

In quantum mechanics, it is common practice to write down kets which have infinite norm, i.e. non-normalizable wavefunctions. Examples include states whose wavefunctions are Dirac delta functions or infinite plane waves. These do not, technically, belong to the Hilbert space itself. However, the definition of "Hilbert space" can be broadened to accommodate these states (see the Gelfand–Naimark–Segal construction or rigged Hilbert spaces). The bra–ket notation continues to work in an analogous way in this broader context.

Banach spaces are a different generalization of Hilbert spaces. In a Banach space $\mathcal{B}$, the vectors may be notated by kets and the continuous linear functionals by bras. Over any vector space without topology, we may also notate the vectors by kets and the linear functionals by bras. In these more general contexts, the bracket does not have the meaning of an inner product, because the Riesz representation theorem does not apply.

Usage in quantum mechanics
The mathematical structure of quantum mechanics is based in large part on linear algebra:
 * Wave functions and other quantum states can be represented as vectors in a complex Hilbert space. (The exact structure of this Hilbert space depends on the situation.) In bra–ket notation, for example, an electron might be in the "state" $|ψ\rangle$. (Technically, the quantum states are rays of vectors in the Hilbert space, as $c|ψ\rangle$ corresponds to the same state for any nonzero complex number $c$.)
 * Quantum superpositions can be described as vector sums of the constituent states. For example, an electron in the state $1⁄√2|1\rangle + i⁄√2|2\rangle$ is in a quantum superposition of the states $|1\rangle$ and $|2\rangle$.
 * Measurements are associated with linear operators (called observables) on the Hilbert space of quantum states.
 * Dynamics are also described by linear operators on the Hilbert space. For example, in the Schrödinger picture, there is a linear time evolution operator $U$ with the property that if an electron is in state $|ψ\rangle$ right now, at a later time it will be in the state $U|ψ\rangle$, the same $U$ for every possible $|ψ\rangle$.
 * Wave function normalization is scaling a wave function so that its norm is 1.

Since virtually every calculation in quantum mechanics involves vectors and linear operators, it can involve, and often does involve, bra–ket notation. A few examples follow:

Spinless position–space wave function
The Hilbert space of a spin-0 point particle is spanned by a "position basis" $k$, where the label $x$ extends over the set of all points in position space. This label is the eigenvalue of the position operator acting on such a basis state, $$ \hat{\mathbf{r}}|\mathbf{r}\rangle = \mathbf{r}|\mathbf{r}\rangle $$. Since there are an uncountably infinite number of vector components in the basis, this is an uncountably infinite-dimensional Hilbert space. The dimensions of the Hilbert space (usually infinite) and position space (usually 1, 2 or 3) are not to be conflated.

Starting from any ket $A_{k}$ in this Hilbert space, one may define a complex scalar function of $|A\rangle = Σ_{k} A_{k} |e_{k}\rangle$, known as a wavefunction, $$\Psi(\mathbf{r}) \ \stackrel{\text{def}}{=}\ \lang \mathbf{r}|\Psi\rang \,.$$

On the left-hand side, $k$ is a function mapping any point in space to a complex number; on the right-hand side, $$\left|\Psi\right\rangle = \int d^3\mathbf{r} \, \Psi(\mathbf{r}) \left|\mathbf{r}\right\rangle$$ is a ket consisting of a superposition of kets with relative coefficients specified by that function.

It is then customary to define linear operators acting on wavefunctions in terms of linear operators acting on kets, by $$\hat A(\mathbf{r}) ~ \Psi(\mathbf{r}) \ \stackrel{\text{def}}{=}\ \lang \mathbf{r}|\hat A|\Psi\rang \,.$$

For instance, the momentum operator $$\hat \mathbf {p}$$ has the following coordinate representation, $$\hat{\mathbf{p} } (\mathbf{r}) ~ \Psi(\mathbf{r}) \ \stackrel{\text{def}}{=}\ \lang \mathbf{r} |\hat \mathbf{p}|\Psi\rang = - i \hbar \nabla \Psi(\mathbf{r}) \,.$$

One occasionally even encounters an expression such as, though this is something of an abuse of notation. The differential operator must be understood to be an abstract operator, acting on kets, that has the effect of differentiating wavefunctions once the expression is projected onto the position basis, $$\nabla \lang\mathbf{r}|\Psi\rang \,,$$ even though, in the momentum basis, this operator amounts to a mere multiplication operator (by $|e_{k}\rangle$). That is, to say, $$ \langle \mathbf{r} |\hat \mathbf{p} = - i \hbar \nabla \langle \mathbf{r}| ~,$$ or $$ \hat \mathbf{p} = \int d^3 \mathbf{r} ~| \mathbf{r}\rangle ( - i \hbar \nabla) \langle \mathbf{r}| ~.$$

Overlap of states
In quantum mechanics the expression $ψ(x)$ is typically interpreted as the probability amplitude for the state $|ψ\rangle = ∫ dx ψ(x)|x\rangle$ to collapse into the state $x$. Mathematically, this means the coefficient for the projection of $|x\rangle$ onto ${ |r\rangle }$. It is also described as the projection of state $r$ onto state $|Ψ\rangle$.

Changing basis for a spin-1/2 particle
A stationary spin-1⁄2 particle has a two-dimensional Hilbert space. One orthonormal basis is: $$|{\uparrow}_z \rangle \,, \; |{\downarrow}_z \rangle$$ where $r$ is the state with a definite value of the spin operator $Ψ(r)$ equal to +1⁄2 and $iħp$ is the state with a definite value of the spin operator $⟨φ$ equal to −1⁄2.

Since these are a basis, any quantum state of the particle can be expressed as a linear combination (i.e., quantum superposition) of these two states: $$|\psi \rangle = a_{\psi} |{\uparrow}_z \rangle + b_{\psi} |{\downarrow}_z \rangle$$ where $ψ$ and $φ$ are complex numbers.

A different basis for the same Hilbert space is: $$|{\uparrow}_x \rangle \,, \; |{\downarrow}_x \rangle$$ defined in terms of $ψ$ rather than $φ$.

Again, any state of the particle can be expressed as a linear combination of these two: $$|\psi \rangle = c_{\psi} |{\uparrow}_x \rangle + d_{\psi} |{\downarrow}_x \rangle$$

In vector form, you might write $$|\psi\rangle \doteq \begin{pmatrix} a_\psi \\ b_\psi \end{pmatrix} \quad \text{or} \quad |\psi\rangle \doteq \begin{pmatrix} c_\psi \\ d_\psi \end{pmatrix} $$ depending on which basis you are using. In other words, the "coordinates" of a vector depend on the basis used.

There is a mathematical relationship between $$a_\psi$$, $$b_\psi$$, $$c_\psi$$ and $$d_\psi$$; see change of basis.

Pitfalls and ambiguous uses
There are some conventions and uses of notation that may be confusing or ambiguous for the non-initiated or early student.

Separation of inner product and vectors
A cause for confusion is that the notation does not separate the inner-product operation from the notation for a (bra) vector. If a (dual space) bra-vector is constructed as a linear combination of other bra-vectors (for instance when expressing it in some basis) the notation creates some ambiguity and hides mathematical details. We can compare bra–ket notation to using bold for vectors, such as $$\boldsymbol \psi$$, and $$(\cdot,\cdot)$$ for the inner product. Consider the following dual space bra-vector in the basis $$\{|e_n\rangle\}$$: $$\langle\psi| = \sum_n \langle e_n| \psi_n$$

It has to be determined by convention if the complex numbers $$\{\psi_n\}$$ are inside or outside of the inner product, and each convention gives different results.

$$\langle\psi| \equiv (\boldsymbol\psi, \cdot ) = \sum_n (\boldsymbol e_n, \cdot ) \, \psi_n$$ $$\langle\psi| \equiv (\boldsymbol\psi, \cdot ) = \sum_n (\boldsymbol e_n \psi_n, \cdot ) = \sum_n (\boldsymbol e_n, \cdot ) \, \psi_n^*$$

Reuse of symbols
It is common to use the same symbol for labels and constants. For example, $$\hat \alpha |\alpha\rangle = \alpha |\alpha \rangle$$, where the symbol $$\alpha$$ is used simultaneously as the name of the operator $$\hat \alpha$$, its eigenvector $$|\alpha\rangle$$ and the associated eigenvalue $$\alpha$$. Sometimes the hat is also dropped for operators, and one can see notation such as $$A |a\rangle = a |a \rangle$$.

Hermitian conjugate of kets
It is common to see the usage $$|\psi\rangle^\dagger = \langle\psi|$$, where the dagger ($$\dagger$$) corresponds to the Hermitian conjugate. This is however not correct in a technical sense, since the ket, $$|\psi\rangle$$, represents a vector in a complex Hilbert-space $$\mathcal{H}$$, and the bra, $$\langle\psi|$$, is a linear functional on vectors in $$\mathcal{H}$$. In other words, $$|\psi\rangle$$ is just a vector, while $$\langle\psi|$$ is the combination of a vector and an inner product.

Operations inside bras and kets
This is done for a fast notation of scaling vectors. For instance, if the vector $$|\alpha \rangle$$ is scaled by $$1/\sqrt{2}$$, it may be denoted $$|\alpha/\sqrt{2} \rangle$$. This can be ambiguous since $$\alpha$$ is simply a label for a state, and not a mathematical object on which operations can be performed. This usage is more common when denoting vectors as tensor products, where part of the labels are moved outside the designed slot, e.g. $$|\alpha \rangle = |\alpha/\sqrt{2} \rangle_1 \otimes |\alpha/\sqrt{2} \rangle_2$$.

Linear operators acting on kets
A linear operator is a map that inputs a ket and outputs a ket. (In order to be called "linear", it is required to have certain properties.) In other words, if $$\hat A$$ is a linear operator and $$|\psi\rangle$$ is a ket-vector, then $$\hat A |\psi\rangle$$ is another ket-vector.

In an $$N$$-dimensional Hilbert space, we can impose a basis on the space and represent $$|\psi\rangle$$ in terms of its coordinates as a $$N \times 1$$ column vector. Using the same basis for $$\hat A$$, it is represented by an $$N \times N$$ complex matrix. The ket-vector $$\hat A |\psi\rangle$$ can now be computed by matrix multiplication.

Linear operators are ubiquitous in the theory of quantum mechanics. For example, observable physical quantities are represented by self-adjoint operators, such as energy or momentum, whereas transformative processes are represented by unitary linear operators such as rotation or the progression of time.

Linear operators acting on bras
Operators can also be viewed as acting on bras from the right hand side. Specifically, if $ψ$ is a linear operator and $φ$ is a bra, then $|↑_{z}\rangle$ is another bra defined by the rule $$\bigl(\langle\phi|\boldsymbol{A}\bigr) |\psi\rangle = \langle\phi| \bigl(\boldsymbol{A}|\psi\rangle\bigr) \,,$$ (in other words, a function composition). This expression is commonly written as (cf. energy inner product) $$\langle\phi| \boldsymbol{A} |\psi\rangle \,.$$

In an $S_{z}$-dimensional Hilbert space, $|↓_{z}\rangle$ can be written as a $S_{z}$ row vector, and $a_{ψ}$ (as in the previous section) is an $b_{ψ}$ matrix. Then the bra $S_{x}$ can be computed by normal matrix multiplication.

If the same state vector appears on both bra and ket side, $$\langle\psi|\boldsymbol{A}|\psi\rangle \,,$$ then this expression gives the expectation value, or mean or average value, of the observable represented by operator $S_{z}$ for the physical system in the state $A$.

Outer products
A convenient way to define linear operators on a Hilbert space $\langleφ|$ is given by the outer product: if $\langleφ|A$ is a bra and $N$ is a ket, the outer product $$ |\phi\rang \, \lang \psi| $$ denotes the rank-one operator with the rule $$ \bigl(|\phi\rang \lang \psi|\bigr)(x) = \lang \psi | x \rang |\phi \rang.$$

For a finite-dimensional vector space, the outer product can be understood as simple matrix multiplication: $$ |\phi \rangle \, \langle \psi | \doteq \begin{pmatrix} \phi_1 \\ \phi_2 \\ \vdots \\ \phi_N \end{pmatrix} \begin{pmatrix} \psi_1^* & \psi_2^* & \cdots & \psi_N^* \end{pmatrix} = \begin{pmatrix} \phi_1 \psi_1^* & \phi_1 \psi_2^* & \cdots & \phi_1 \psi_N^* \\ \phi_2 \psi_1^* & \phi_2 \psi_2^* & \cdots & \phi_2 \psi_N^* \\ \vdots & \vdots & \ddots & \vdots \\ \phi_N \psi_1^* & \phi_N \psi_2^* & \cdots & \phi_N \psi_N^* \end{pmatrix} $$ The outer product is an $\langleφ|$ matrix, as expected for a linear operator.

One of the uses of the outer product is to construct projection operators. Given a ket $1 × N$ of norm 1, the orthogonal projection onto the subspace spanned by $A$ is $$|\psi\rangle \, \langle\psi| \,.$$ This is an idempotent in the algebra of observables that acts on the Hilbert space.

Hermitian conjugate operator
Just as kets and bras can be transformed into each other (making $N × N$ into $\langleφ|A$), the element from the dual space corresponding to $A$ is $|ψ\rangle$, where $\mathcal{H}$ denotes the Hermitian conjugate (or adjoint) of the operator $\langleϕ|$. In other words, $$ |\phi\rangle = A |\psi\rangle \quad \text{if and only if} \quad \langle\phi| = \langle \psi | A^\dagger \,.$$

If $|ψ\rangle$ is expressed as an $N × N$ matrix, then $|ψ\rangle$ is its conjugate transpose.

Self-adjoint operators, where $|ψ\rangle$, play an important role in quantum mechanics; for example, an observable is always described by a self-adjoint operator. If $A$ is a self-adjoint operator, then $|ψ\rangle$ is always a real number (not complex). This implies that expectation values of observables are real.

Properties
Bra–ket notation was designed to facilitate the formal manipulation of linear-algebraic expressions. Some of the properties that allow this manipulation are listed herein. In what follows, $\langleψ|$ and $A|ψ\rangle$ denote arbitrary complex numbers, $\langleψ|A^{†}$ denotes the complex conjugate of $A^{†}$, $A$ and $A$ denote arbitrary linear operators, and these properties are to hold for any choice of bras and kets.

Linearity

 * Since bras are linear functionals, $$\langle\phi| \bigl( c_1|\psi_1\rangle + c_2|\psi_2\rangle \bigr) = c_1\langle\phi|\psi_1\rangle + c_2\langle\phi|\psi_2\rangle \,. $$
 * By the definition of addition and scalar multiplication of linear functionals in the dual space, $$\bigl(c_1 \langle\phi_1| + c_2 \langle\phi_2|\bigr) |\psi\rangle = c_1 \langle\phi_1|\psi\rangle + c_2 \langle\phi_2|\psi\rangle \,. $$

Associativity
Given any expression involving complex numbers, bras, kets, inner products, outer products, and/or linear operators (but not addition), written in bra–ket notation, the parenthetical groupings do not matter (i.e., the associative property holds). For example:
 * $$\begin{align}

\lang \psi| \bigl(A |\phi\rang\bigr) = \bigl(\lang \psi|A\bigr)|\phi\rang \, &\stackrel{\text{def}}{=} \, \lang \psi | A | \phi \rang \\ \bigl(A|\psi\rang\bigr)\lang \phi| = A\bigl(|\psi\rang \lang \phi|\bigr) \, &\stackrel{\text{def}}{=} \, A | \psi \rang \lang \phi | \end{align}$$ and so forth. The expressions on the right (with no parentheses whatsoever) are allowed to be written unambiguously because of the equalities on the left. Note that the associative property does not hold for expressions that include nonlinear operators, such as the antilinear time reversal operator in physics.

Hermitian conjugation
Bra–ket notation makes it particularly easy to compute the Hermitian conjugate (also called dagger, and denoted $N × N$) of expressions. The formal rules are:
 * The Hermitian conjugate of a bra is the corresponding ket, and vice versa.
 * The Hermitian conjugate of a complex number is its complex conjugate.
 * The Hermitian conjugate of the Hermitian conjugate of anything (linear operators, bras, kets, numbers) is itself—i.e., $$\left(x^\dagger\right)^\dagger=x \,.$$
 * Given any combination of complex numbers, bras, kets, inner products, outer products, and/or linear operators, written in bra–ket notation, its Hermitian conjugate can be computed by reversing the order of the components, and taking the Hermitian conjugate of each.

These rules are sufficient to formally write the Hermitian conjugate of any such expression; some examples are as follows: \bigl(c_1|\psi_1\rangle + c_2|\psi_2\rangle\bigr)^\dagger = c_1^* \langle\psi_1| + c_2^* \langle\psi_2| \,. $$ \langle \phi| A | \psi \rangle^\dagger &= \left\langle \psi \left| A^\dagger \right|\phi \right\rangle \\ \left\langle \phi\left| A^\dagger B^\dagger \right| \psi \right\rangle^\dagger &= \langle \psi | BA |\phi \rangle \,. \end{align}$$
 * Kets: $$
 * Inner products: $$\langle \phi | \psi \rangle^* = \langle \psi|\phi\rangle \,.$$ Note that $A^{†}$ is a scalar, so the Hermitian conjugate is just the complex conjugate, i.e., $$\bigl(\langle \phi | \psi \rangle\bigr)^\dagger = \langle \phi | \psi \rangle^*$$
 * Matrix elements: $$\begin{align}
 * Outer products: $$\Big(\bigl(c_1|\phi_1\rangle\langle \psi_1|\bigr) + \bigl(c_2|\phi_2\rangle\langle\psi_2|\bigr)\Big)^\dagger = \bigl(c_1^* |\psi_1\rangle\langle \phi_1|\bigr) + \bigl(c_2^*|\psi_2\rangle\langle\phi_2|\bigr) \,.$$

Composite bras and kets
Two Hilbert spaces $A = A^{†}$ and $\langleψ|A|ψ\rangle$ may form a third space $c_{1}$ by a tensor product. In quantum mechanics, this is used for describing composite systems. If a system is composed of two subsystems described in $c_{2}$ and $c*$ respectively, then the Hilbert space of the entire system is the tensor product of the two spaces. (The exception to this is if the subsystems are actually identical particles. In that case, the situation is a little more complicated.)

If $c$ is a ket in $A$ and $B$ is a ket in $†$, the tensor product of the two kets is a ket in $⟨φ$. This is written in various notations:
 * $$|\psi\rangle|\phi\rangle \,,\quad |\psi\rangle \otimes |\phi\rangle\,,\quad|\psi \phi\rangle\,,\quad|\psi ,\phi\rangle\,.$$

See quantum entanglement and the EPR paradox for applications of this product.

The unit operator
Consider a complete orthonormal system (basis), $$\{ e_i \ | \ i \in \mathbb{N} \} \,,$$ for a Hilbert space $V$, with respect to the norm from an inner product $W$.

From basic functional analysis, it is known that any ket $$|\psi\rangle $$ can also be written as $$|\psi\rangle = \sum_{i \in \mathbb{N}} \langle e_i | \psi \rangle | e_i \rangle,$$ with $V ⊗ W$ the inner product on the Hilbert space.

From the commutativity of kets with (complex) scalars, it follows that $$\sum_{i \in \mathbb{N}} | e_i \rangle \langle e_i | = \mathbb{I}$$ must be the identity operator, which sends each vector to itself.

This, then, can be inserted in any expression without affecting its value; for example $$\begin{align} \langle v | w \rangle &= \langle v | \left( \sum_{i \in \mathbb{N}} | e_i \rangle \langle e_i| \right) | w \rangle \\ &= \langle v | \left( \sum_{i \in \mathbb{N}} | e_i \rangle \langle e_i| \right) \left( \sum_{j \in \mathbb{N}} | e_j \rangle \langle e_j |\right)| w \rangle \\ &= \langle v | e_i \rangle \langle e_i | e_j \rangle \langle e_j | w \rangle \,, \end{align}$$ where, in the last line, the Einstein summation convention has been used to avoid clutter.

In quantum mechanics, it often occurs that little or no information about the inner product $V$ of two arbitrary (state) kets is present, while it is still possible to say something about the expansion coefficients $W$ and $|ψ\rangle$ of those vectors with respect to a specific (orthonormalized) basis. In this case, it is particularly useful to insert the unit operator into the bracket one time or more.

For more information, see Resolution of the identity, $$ {\mathbb I} = \int\! dx~ | x \rangle \langle x |= \int\! dp ~| p \rangle \langle p |,$$ where $$|p\rangle = \int dx \frac{e^{ixp / \hbar} |x\rangle}{\sqrt{2\pi\hbar}}.$$

Since $V$, plane waves follow, $$ \langle x | p \rangle = \frac{e^{ixp / \hbar}}{\sqrt{2\pi\hbar}}.$$

In his book (1958), Ch. III.20, Dirac defines the standard ket which, up to a normalization, is the translationally invariant momentum eigenstate $|\varpi\rangle=\lim_{p\to 0} |p\rangle$ in the momentum representation, i.e., $$\hat{p}|\varpi\rangle=0$$. Consequently, the corresponding wavefunction is a constant, $$ \langle x|\varpi\rangle \sqrt{2\pi \hbar}=1$$, and $$|x\rangle= \delta(\hat{x}-x) |\varpi\rangle \sqrt{2\pi \hbar},$$ as well as $$|p\rangle= \exp (ip\hat{x}/\hbar ) |\varpi\rangle.$$

Typically, when all matrix elements of an operator such as $$ \langle x| A |y\rangle $$ are available, this resolution serves to reconstitute the full operator, $$ \int dx \, dy \, |x\rangle \langle x| A |y\rangle \langle y | = A \,. $$

Notation used by mathematicians
The object physicists are considering when using bra–ket notation is a Hilbert space (a complete inner product space).

Let $$(\mathcal H, \langle\cdot,\cdot\rangle)$$ be a Hilbert space and $|φ\rangle$ a vector in $W$. What physicists would denote by $V ⊗ W$ is the vector itself. That is, $$ |h\rangle\in \mathcal{H} .$$

Let $H$ be the dual space of $⟨·,·⟩$. This is the space of linear functionals on $⟨·$. The embedding $$\Phi:\mathcal H \hookrightarrow \mathcal H^*$$ is defined by $$\Phi(h) = \varphi_h$$, where for every $⟨ψ$ the linear functional $$\varphi_h:\mathcal H\to\mathbb C$$ satisfies for every $e_{i}⟩ = ⟨e_{i}$ the functional equation $$\varphi_h(g) = \langle h, g\rangle = \langle h\mid g\rangle$$. Notational confusion arises when identifying $⟨e_{i}$ and $x⟩ = δ(x − x)$ with $h ∈ \mathcal{H}$ and $\mathcal{H}$ respectively. This is because of literal symbolic substitutions. Let $$\varphi_h = H = \langle h\mid$$ and let $|h\rangle$. This gives $$ \varphi_h(g) = H(g) = H(G)=\langle h|(G) = \langle h|\bigl(|g\rangle\bigr) \,. $$

One ignores the parentheses and removes the double bars.

Moreover, mathematicians usually write the dual entity not at the first place, as the physicists do, but at the second one, and they usually use not an asterisk but an overline (which the physicists reserve for averages and the Dirac spinor adjoint) to denote complex conjugate numbers; i.e., for scalar products mathematicians usually write $$\langle\phi ,\psi\rangle=\int \phi (x)\cdot \overline{\psi(x)}\, \mathrm{d}x \,,$$ whereas physicists would write for the same quantity $$ \langle\psi |\phi \rangle = \int dx \, \psi^*(x) \phi(x)~.$$