quantikz

Quantum circuits.

Loading

\usepackage{quantikz}

A module of its own, compiled into mLaTeX: the package's commands are defined over mLaTeX's primitives.

Commands

\ctrl, \gate, \ket, \lstick, \meter, \qw, \targ.

Example

A document that uses it, from mLaTeX's own tests, so it compiles as written, and below it what mLaTeX sets from it in your browser:

quantikz.tex
\documentclass{article}
\usepackage{quantikz}
\begin{document}
\begin{quantikz}
\lstick{$\ket{0}$} & \gate{H} & \ctrl{1} & \meter{} \\
\lstick{$\ket{0}$} & \qw & \targ{} & \qw
\end{quantikz}
\end{document}
OutputLoading mLaTeX in your browser
Loading mLaTeX