\documentclass[11pt]{article}
\usepackage{amstext}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{latexsym}

\newcommand{\poly}{\mathop{\mathrm{poly}}}
\renewcommand{\Re}{\mathop{\mathrm{Re}}}
\renewcommand{\Im}{\mathop{\mathrm{Im}}}

\renewcommand{\textfraction}{.00}
\renewcommand{\topfraction}{1.}
\renewcommand{\bottomfraction}{1.}

\renewcommand{\>}{\rangle}
\newcommand{\<}{\langle}
\newcommand{\set}[1]{{\left\{#1\right\}}}
\newcommand{\ket}[1]{|#1\rangle}
\newcommand{\bra}[1]{\left\langle #1 \right\vert}
\newcommand{\braket}[2]{\langle #1\vert #2 \rangle}
\newcommand{\density}[1]{| #1\rangle\langle #1 |}
\newcommand{\size}[1]{\left\lvert #1 \right\rvert}
\newcommand{\Order}{\mathrm{O}}
\newcommand{\order}{\mathrm{o}}

\newcommand{\integers}{\mathbb{Z}}
\newcommand{\complex}{\mathbb{C}}
\newcommand{\identity}{\mathbb{I}}
\newcommand{\linear}{\mathrm{L}}
\newcommand{\tensor}{\otimes}
\newcommand{\trace}{\mathrm{Tr}}
\newcommand{\transpose}{\mathrm{T}}

\newcommand{\equal}{\mathrm{EQ}}
\newcommand{\cP}{\mathcal{P}}
\newcommand{\rC}{\mathrm{C}}
\newcommand{\rN}{\mathrm{N}}
\newcommand{\rX}{\mathrm{X}}
\newcommand{\rZ}{\mathrm{Z}}
\newcommand{\rI}{\mathrm{I}}

\newcommand{\BPP}{\mathrm{BPP}}
\newcommand{\BQP}{\mathrm{BQP}}

\newcommand{\be}{\begin{equation}}
\newcommand{\ee}{\end{equation}}

\newcommand{\bea}{\begin{eqnarray}}
\newcommand{\eea}{\end{eqnarray}}

\def\dag{\dagger}
\def\ot{\otimes}
\def\ox{\otimes}

\newcommand{\mattwo}[1]{\left[
	\begin{array}{rr} #1 \end{array}\right]}

\newcommand{\vectwo}[2]{\left[
	\begin{array}{r}{#1}\\{#2}\end{array}\right]}

\newcommand{\kettwo}[2]{\left[
	\begin{array}{r}{#1}\\{#2}\end{array}\right]}

\newcommand{\bratwo}[2]{\left[
	\begin{array}{rr}{#1}&{#2}\end{array}\right]}

\newcommand{\floor}[1]{\left\lfloor #1 \right\rfloor}
\newcommand{\ceil}[1]{\lceil #1 \rceil}

\begin{document}

$|\psi\> = a|0\> + b |1\>$.  

\end{document}
