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 الفيزياء →

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 poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث