Knowledge collection of the quantum computing exploration
In order to use bra-ket notation in Jupyter notebooks, include the snippet below in a markdown cell:
$$
\renewcommand{\braket}[2]{\left\langle{#1}\middle|{#2}\right\rangle}
\renewcommand{\ket}[1]{\left|{#1}\right\rangle}
\renewcommand{\bra}[1]{\left\langle{#1}\right|}
$$
it will render to whitespace, but it will allow to use the latex commands \bra{q}
, \ket{q}
and \braket{q, p}
.