Braket in LaTeX (\langle \phi | \psi \rangle)

⟨ϕ∣ψ⟩\langle \phi | \psi \rangle
LaTeX command
\langle \phi | \psi \rangle
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Inner product of two states, a bra meeting a ket; its squared modulus gives a transition probability.

The amplitude \langle \phi | \psi \rangle is conjugate-symmetric, \langle \phi | \psi \rangle = \langle \psi | \phi \rangle^*, and normalization reads \langle \psi | \psi \rangle = 1. Matrix elements sandwich an operator: \langle \phi | \hat{A} | \psi \rangle. Use a plain | in the middle rather than \mid, whose relation spacing pushes the halves apart. For tall contents, \left\langle \phi \middle| \psi \right\rangle makes the middle bar grow too. Mathematicians write the same thing as (\phi, \psi) or \langle \phi, \psi \rangle with a comma.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

P=∣⟨ϕ∣ψ⟩∣2P = |\langle \phi | \psi \rangle|^2
\documentclass{article}
\begin{document}
Braket: $\langle \phi | \psi \rangle$

\[ P = |\langle \phi | \psi \rangle|^2 \]
\end{document}

Related symbols

All Fysica →

Frequently asked questions

How do I write Braket in LaTeX?
Type \langle \phi | \psi \rangle in math mode, for example $P = |\langle \phi | \psi \rangle|^2$. It works in plain LaTeX without loading any package.
Which package do I need for \langle \phi | \psi \rangle?
None. \langle \phi | \psi \rangle is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \langle \phi | \psi \rangle in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\langle \phi | \psi \rangle$ in running text.
Math poweredSchrijf LaTeX met AI

Beste AI LaTeX Editor, Overleaf Alternatief

Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI

  • Genereer mooie TikZ-diagrammen met AI
  • Upload afbeelding en converteer naadloos naar LaTeX
  • Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen