File:Grover's algorithm circuit.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file(SVG file, nominally 467 × 155 pixels, file size: 76 KB)

Summary

Description
English: Circuit description of Grover's algorithm, where is the Grover oracle that flips the sign of if it is the marked element. n is the number of qubits and
Date
Source Own work
Author Fawly

Generated from the following tex file:

\documentclass[11pt]{article}
\usepackage[braket]{qcircuit}
\usepackage{amsmath} % Useful AMS-provided structure
\usepackage{microtype} % fixes small typographic errors

\thispagestyle{empty}
\begin{document}
\[
 \Qcircuit @C=1em @R=.7em {
    &&&&& \ustick{\text{Grover diffusion operator}} \\
    \lstick{\ket{0}} & \qw & \gate{H} & \multigate{2}{U_\omega} & \gate{H} & \multigate{2}{2 \ket{0^n}\bra{0^n} - I_n} & \gate{H} & \qw & \cdots & & \meter & \cw \\
    \lstick{\cdots} & & \cdots & & \cdots & & \cdots & & & & \cdots \\
    \lstick{\ket{0}} & \qw & \gate{H} & \ghost{U_\omega} & \gate{H} & \ghost{2 \ket{0^n}\bra{0^n} - I_n} & \gate{H} & \qw & \cdots & & \meter & \cw \\
    %\lstick{\ket{1}} & \qw & \gate{H} & \ghost{U_\omega} & \qw & \qw & \qw & \qw & \cdots & \\
    &&&&& \dstick{\text{Repeat $\approx \frac{\pi}{4}\sqrt{N}$ times}}
  \gategroup{2}{5}{2}{7}{.7em}{^\}}
  \gategroup{2}{4}{4}{7}{.7em}{_\}}
  \inputgrouph{2}{4}{1.35em}{\ket{0^n}\Bigg\{}{3.5em}
  }
\]
\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 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

Circuit description of Grover's algorithm

Items portrayed in this file

depicts

7 June 2021

image/svg+xml

File history

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

Date/TimeThumbnailDimensionsUserComment
current17:32, 7 June 2021Thumbnail for version as of 17:32, 7 June 2021467 × 155 (76 KB)FawlyUploaded own work with UploadWizard
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Global file usage

The following other wikis use this file:

Metadata