File:Qcircuit Toffoli.svg

Original file(SVG file, nominally 250 × 330 pixels, file size: 2 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary edit

Description
English: Quantum circuit diagram of a Toffoli gate, which is a controlled-controlled-NOT three qubit gate. The gate matrix is in the basis .
Date
Source Own work
Author Geek3
SVG development
InfoField
 
The SVG code is valid.
 
This diagram was created with LaTeX.

Source Code edit

Created in LaTeX using Q-circuit by the following code:

\documentclass[border=10pt]{standalone}
\input{Qcircuit} % available on http://physics.unm.edu/CQuIC/Qcircuit/
\usepackage{graphicx}
\begin{document}
\scalebox{5}{%
\Qcircuit @C=1.4em @R=1.8em {
	& \ctrl{1} & \qw \\
	& \ctrl{1} & \qw \\
	& \targ & \qw
}}

\end{document}

Postprocessing with pdf2svg, Inkscape and Scour:

x=Qcircuit_Toffoli;
pdflatex $x.tex;
pdf2svg $x.pdf $x_.svg;
inkscape --verb=EditSelectAll --verb=SelectionUnGroup --verb=FileVacuum --verb=FileSave --verb=FileClose $x_.svg;
scour -i $x_.svg -o $x.svg --renderer-workaround --remove-metadata --enable-id-stripping --create-groups --enable-viewboxing

Licensing edit

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 4.0 International 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.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current16:49, 29 April 2017Thumbnail for version as of 16:49, 29 April 2017250 × 330 (2 KB)Geek3 (talk | contribs)=={{int:filedesc}}== {{Information |description={{en|1={{W|Quantum circuit}} diagram of a {{W|Toffoli gate|Toffoli}} {{W|Quantum gate|gate}}, which is a controlled-controlled-NOT three qubit gate. The gate matrix is <math>\left(\begin{array}{cccccccc}1...

The following page uses this file:

File usage on other wikis

The following other wikis use this file:

Metadata