File:Grover's algorithm circuit.svg
From testwiki
Jump to navigation
Jump to search
Original file (SVG file, nominally 467 × 155 pixels, file size: 76 KB)
Contents
This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.
Summary
| DescriptionGrover's algorithm circuit.svg |
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:
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
77,375 byte
f2d73f6504604ab653eb613a39a5c6e4aab8ac6b
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 18:32, 7 June 2021 | 467 × 155 (76 KB) | wikimediacommons>Fawly | Uploaded own work with UploadWizard |
File usage
There are no pages that use this file.