File:Toffoli decomposition.svg

Summary

Description
English: Decomposition of the Toffoli gate into elementary quantum gates.
Date
Source Created in LaTeX using Q-circuit. Source code below.
Author Hweimer
\documentclass[11pt]{article}
\usepackage{amsmath}
\input{Qcircuit}
\thispagestyle{empty}
\begin{document}
\begin{align*}
 \Qcircuit  @C=1em @R=1em {
   & \ctrl{1} & \qw & & & \qw & \qw & \qw & \ctrl{2} & \qw & \qw & \qw & \ctrl{2} & \qw & \ctrl{1} & \gate{T} & \ctrl{1} & \qw \\
   & \ctrl{1} & \qw & \push{\rule{.3em}{0em}=\rule{.3em}{0em}} & & \qw & \ctrl{1} & \qw & \qw & \qw & \ctrl{1} & \qw & \qw & \gate{T} & \targ & \gate{T^\dagger} & \targ & \qw\\
& \targ & \qw & & & \gate{H} & \targ & \gate{T^\dagger} & \targ & \gate{T} & \targ & \gate{T^\dagger} & \targ & \gate{T} & \gate{H} & \qw & \qw & \qw
 }
\end{align*}
\end{document}

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-3.0#Toffoli%20decomposition.svgCategory:Self-published work
Category:Reversible gates Category:Quantum circuit
Category:CC-BY-SA-3.0 Category:Quantum circuit Category:Reversible gates Category:Self-published work Category:Valid SVG created with LaTeX