Fizik

Mekanik kuantum, medan vektor, dan pemalar fizikal.

Quantum mechanics symbols in LaTeX

The quantum mechanics symbols physicists type most are all built into LaTeX: the reduced Planck constant \hbar, the bra \langle \psi | and the ket | \psi \rangle, operators with a hat like \hat{H}, the adjoint A^\dagger, the Laplacian \nabla^2 and the time derivative \partial_t. For shorter bra-ket notation, the braket and physics packages add \bra{}, \ket{} and \braket{}. The table lists the quantum physics symbols people use most, with the package each one needs; the full list of physics symbols follows below.

SymbolCommandUsePackageCopy
ℏ\hbar
\hbarReduced Planck constant (h-bar)built in
⟨ψ∣\langle \psi |
\langle \psi |Bra, built from basic commandsbuilt in
∣ψ⟩| \psi \rangle
| \psi \rangleKet, built from basic commandsbuilt in
⟨ϕ∣ψ⟩\langle \phi | \psi \rangle
\langle \phi | \psi \rangleInner product (bra-ket)built in
⟨ψ∣\langle \psi |
\bra{\psi}Brabraket or physics
∣ψ⟩| \psi \rangle
\ket{\psi}Ketbraket or physics
⟨ϕ∣ψ⟩\langle \phi | \psi \rangle
\braket{\phi|\psi}Inner product (physics: \braket{\phi}{\psi})braket
H^\hat{H}
\hat{H}Hamiltonian operatorbuilt in
A†A^\dagger
A^\daggerHermitian adjoint (dagger)built in
∇2\nabla^2
\nabla^2Laplacianbuilt in
∂tψ\partial_t \psi
\partial_t \psiTime derivativebuilt in
⊗\otimes
\otimesTensor product of statesbuilt in

The braket and physics packages

Pick one of the two. The braket package is small and uses a single argument for the inner product, \braket{\phi|\psi}; the physics package also adds \expval{A}, \comm{A}{B}, derivatives such as \dv{f}{x} and automatic bracket sizing, but writes the inner product as \braket{\phi}{\psi}.

% braket package
\usepackage{braket}
$\braket{\phi|\psi}$, $i\hbar \partial_t \ket{\psi} = \hat{H}\ket{\psi}$

% physics package
\usepackage{physics}
$\braket{\phi}{\psi}$, $\expval{\hat{H}}{\psi}$

Vectors, divergence and curl use \vec{E}, \nabla \cdot and \nabla \times. For Greek letters such as \psi, \Psi and \omega see our guide to Greek letters and math symbols, and the tensor symbols page for index notation.

Frequently asked questions

How do I write bra-ket notation in LaTeX?
Without any package, write a bra as \langle \psi |, a ket as | \psi \rangle and an inner product as \langle \phi | \psi \rangle. With \usepackage{braket} you can write \bra{\psi}, \ket{\psi} and \braket{\phi|\psi}; with \usepackage{physics} the inner product takes two arguments instead, \braket{\phi}{\psi}. Load only one of the two packages, since both define these commands.
How do I write h-bar in LaTeX?
The reduced Planck constant ℏ is \hbar, which is built in and used in math mode: $\hbar$. The Schrödinger equation then reads i\hbar \partial_t \psi = \hat{H} \psi.
How do I write operators and the dagger in LaTeX?
Mark operators with a hat, \hat{H} or \hat{p}, and write the Hermitian adjoint with \dagger as a superscript, A^\dagger. Expectation values are \langle \hat{A} \rangle, or \expval{A} with the physics package, and commutators are [\hat{x}, \hat{p}] = i\hbar.
ℏ\hbar
⟨ψ∣\langle \psi |

Bra

\langle \psi |
∣ψ⟩| \psi \rangle

Ket

| \psi \rangle
⟨ϕ∣ψ⟩\langle \phi | \psi \rangle

Braket

\langle \phi | \psi \rangle
Δ\Delta

Delta

\Delta
∇\nabla

Nabla

\nabla
∇2\nabla^2

Laplacian

\nabla^2
□\Box
L\mathcal{L}

Lagrangian

\mathcal{L}
H\mathcal{H}

Hamiltonian

\mathcal{H}
Ψ\Psi
ω\omega
λ\lambda

Wavelength

\lambda
TμνT^{\mu\nu}

Tensor

T^{\mu\nu}
Γμνλ\Gamma^{\lambda}_{\mu\nu}

Christoffel Symbol

\Gamma^{\lambda}_{\mu\nu}
∂∂t\frac{\partial}{\partial t}

Partial Time

\frac{\partial}{\partial t}
E⃗\vec{E}
×\times
∇⋅\nabla \cdot

Divergence

\nabla \cdot
∇×\nabla \times

Curl

\nabla \times