File:Shore code.svg

Summary

Description
English: Quantum circuit of the Shor code. Created in LaTeX using Q-circuit. Source code below.
Date
Source Own work
Author Bender2k14
SVG development
InfoField

Source code

\documentclass[11pt]{article}
\input{Qcircuit}
\thispagestyle{empty}
\begin{document}
\begin{align*}
 \Qcircuit @C=1em @R=.7em {
   \lstick{|\psi\rangle} & \ctrl{3} & \ctrl{6} & \gate{H} & \ctrl{1} & \ctrl{2} & \multigate{8}{E} & \ctrl{1} & \ctrl{2} & \targ     & \gate{H} & \ctrl{3} & \ctrl{6} & \targ     & \rstick{\ket{\psi}} \qw\\
   \lstick{\ket{0}}      & \qw      & \qw      & \qw      & \targ    & \qw      & \ghost{E}        & \targ    & \qw      & \ctrl{-1} & \qw      & \qw      & \qw      & \qw       & \qw \\
   \lstick{\ket{0}}      & \qw      & \qw      & \qw      & \qw      & \targ    & \ghost{E}        & \qw      & \targ    & \ctrl{-2} & \qw      & \qw      & \qw      & \qw       & \qw \\
   \lstick{\ket{0}}      & \targ    & \qw      & \gate{H} & \ctrl{1} & \ctrl{2} & \ghost{E}        & \ctrl{1} & \ctrl{2} & \targ     & \gate{H} & \targ    & \qw      & \ctrl{-3} & \qw \\
   \lstick{\ket{0}}      & \qw      & \qw      & \qw      & \targ    & \qw      & \ghost{E}        & \targ    & \qw      & \ctrl{-1} & \qw      & \qw      & \qw      & \qw       & \qw \\
   \lstick{\ket{0}}      & \qw      & \qw      & \qw      & \qw      & \targ    & \ghost{E}        & \qw      & \targ    & \ctrl{-2} & \qw      & \qw      & \qw      & \qw       & \qw \\
   \lstick{\ket{0}}      & \qw      & \targ    & \gate{H} & \ctrl{1} & \ctrl{2} & \ghost{E}        & \ctrl{1} & \ctrl{2} & \targ     & \gate{H} & \qw      & \targ    & \ctrl{-6} & \qw \\
   \lstick{\ket{0}}      & \qw      & \qw      & \qw      & \targ    & \qw      & \ghost{E}        & \targ    & \qw      & \ctrl{-1} & \qw      & \qw      & \qw      & \qw       & \qw \\
   \lstick{\ket{0}}      & \qw      & \qw      & \qw      & \qw      & \targ    & \ghost{E}        & \qw      & \targ    & \ctrl{-2} & \qw      & \qw      & \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#Shore%20code.svgCategory:Self-published work
Category:Images with LaTeX source code Category:Quantum circuit
Category:CC-BY-SA-3.0 Category:Images with LaTeX source code Category:Quantum circuit Category:SVG created also with Inkscape Category:Self-published work Category:Valid SVG created with LaTeX