Home

Published

-

Dirac Notation: The Language of Quantum States

img of Dirac Notation: The Language of Quantum States

Dirac notation is compact and expressive for quantum mechanics and quantum computing.

Kets and Bras

  • Ket: ψ|\psi\rangle, a column vector.
  • Bra: ψ\langle\psi|, the conjugate transpose row vector.

Inner product:

ϕψ\langle\phi|\psi\rangle

Outer product:

ϕψ|\phi\rangle\langle\psi|

Basis States

For one qubit:

0=[10],1=[01]|0\rangle = \begin{bmatrix}1 \\ 0\end{bmatrix}, \quad |1\rangle = \begin{bmatrix}0 \\ 1\end{bmatrix}

Any state is a linear combination of basis kets.

Operators and Expectation

An observable or gate is an operator AA acting on kets:

AψA|\psi\rangle

Expectation value in state ψ|\psi\rangle:

A=ψAψ\langle A \rangle = \langle\psi|A|\psi\rangle

Multi Qubit States

Tensor products combine systems:

ab=ab|ab\rangle = |a\rangle \otimes |b\rangle

Examples:

  • 00|00\rangle
  • 01|01\rangle
  • 10|10\rangle
  • 11|11\rangle

Dirac notation keeps these expressions readable as systems scale.

Projectors and Completeness

Projectors extract components along basis directions. For computational basis:

P0=00,P1=11P_0 = |0\rangle\langle0|, \quad P_1 = |1\rangle\langle1|

They satisfy:

P0+P1=IP_0 + P_1 = I

This identity (completeness) is why probabilities sum to 1 in projective measurement.

Change of Basis in Bra-Ket Form

Suppose {uk}\{|u_k\rangle\} is another orthonormal basis. Any state can be expanded as:

ψ=kukukψ|\psi\rangle = \sum_k |u_k\rangle\langle u_k|\psi\rangle

The coefficient ukψ\langle u_k|\psi\rangle is exactly the amplitude in that basis. This is the compact Dirac way to express basis transforms used in many algorithms.

Tensor Product Ordering Matters

For multi qubit systems, qubit ordering is part of the definition. For example, 01|01\rangle can mean qubit 0 is 0|0\rangle and qubit 1 is 1|1\rangle (or the opposite), depending on convention.

When reading circuit outputs, always verify endianness used by the framework or paper.