File:Qcircuit Fredkin.svg

Original file (SVG file, nominally 214 × 291 pixels, file size: 2 KB)

Summary

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


Source Code

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

\documentclass[border={10pt 21pt}]{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{2} & \qw \\
	& \qswap & \qw \\
	& \qswap & \qw
}}
\end{document}

Postprocessing with pdf2svg, Inkscape and Scour:

x=Qcircuit_Fredkin;
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

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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

29 April 2017

image/svg+xml

File history

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

Date/TimeThumbnailDimensionsUserComment
current16:38, 29 April 2017Thumbnail for version as of 16:38, 29 April 2017214 × 291 (2 KB)Geek3User created page with UploadWizard

The following 2 pages use this file:

Global file usage

The following other wikis use this file:

Metadata