This quantum circuit implements a three-qubit Toffoli gate composed from one- and two-qubit gates. Each of the three wires represents one qubit, and this circuit diagram should be read left-to-right. The single-qubit gates used are the standard Hadamard gate (H) and the π/8{\displaystyle \pi /8} (T) gate, as well as its conjugate transpose, represented by the "dagger" symbol. The only two-qubit gate used is the "CNOT" gate. Given a three-qubit standard-basis input state |x,y,z⟩{\displaystyle |x,y,z\rangle }, the output is |x,y,z⊕(x∧y)⟩{\displaystyle |x,y,z\oplus (x\land y)\rangle }. This particular implementation is from the standard library of OpenQASM 2.
The following LaTeX code was used to generate this image:

\documentclass[tikz]{standalone}
\usepackage{quantikz}
\begin{document}
\begin{quantikz}[row sep=2mm,column sep=2mm]
&amp; \qw      &amp; \qw      &amp; \qw              &amp; \ctrl{2} &amp; \qw      &amp; \qw      &amp; \qw              &amp; \ctrl{2} &amp; \qw      &amp; \ctrl{1} &amp; \gate{T}         &amp; \ctrl{1} &amp; \qw \\
&amp; \qw      &amp; \ctrl{1} &amp; \qw              &amp; \qw      &amp; \qw      &amp; \ctrl{1} &amp; \qw              &amp; \qw      &amp; \gate{T} &amp; \targ{}  &amp; \gate{T^\dagger} &amp; \targ{}  &amp; \qw \\
&amp; \gate{H} &amp; \targ{}  &amp; \gate{T^\dagger} &amp; \targ{}  &amp; \gate{T} &amp; \targ{}  &amp; \gate{T^\dagger} &amp; \targ{}  &amp; \gate{T} &amp; \gate{H} &amp; \qw              &amp; \qw      &amp; \qw
\end{quantikz}
\end{document}
Own work
Freoh LeRat