Braket in LaTeX (\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.
\documentclass{article}
\begin{document}
Braket: $\langle \phi | \psi \rangle$
\[ P = |\langle \phi | \psi \rangle|^2 \]
\end{document}Related symbols
- Delta (Upper)
\Delta - Ket vector
| \psi \rangle - Nabla
\nabla - Bra vector
\langle \psi | - Laplacian
\nabla^2 - Reduced Planck constant (h-bar)
\hbar
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.
Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf
Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI
- Gumawa ng magagandang TikZ diagrams gamit ang AI
- Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
- Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers