File:Increment with one on four qubits using controlled Pauli X gates only.png

From testwiki
Jump to navigation Jump to search
    Original file (639 × 189 pixels, file size: 23 KB, MIME type: image/png)

    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

    Description
    English: Picture shows a quantum circuit composed of only quantum logic gates, that perform the increment with one (x++) on a quantum register with four qubits.
    Date
    Source Picture was generated with qcircuit, a LaTeX library for generating quantum circuit diagrams
    Author Omnissiahs hierophant
    Other information
    % This is the source code of the picture
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    
    \documentclass{amsart}
    \usepackage[matrix,frame,arrow]{xypic}
    \usepackage[braket]{qcircuit}
    \vfuzz2pt
    
    \begin{document}
    \[
    \Qcircuit @C=1.0em @R=.7em {
        \lstick{\ket{x_3}} & \targ       & \qw         & \qw       & \qw       & \qw    & \rstick{\ket{x_3 \oplus (x_2 \land x_1 \land x_0)}} \\
        \lstick{\ket{x_2}} & \ctrl{-1}   & \targ       & \qw       & \qw       & \qw    & \rstick{\ket{x_2 \oplus ( x_1 \land x_0)}} \\
        \lstick{\ket{x_1}} & \ctrl{-1}   & \ctrl{-1}   & \targ     & \qw       & \qw    & \rstick{\ket{x_1 \oplus x_0}} \\
        \lstick{\ket{x_0}} & \ctrl{-1}   & \ctrl{-1}   & \ctrl{-1} & \targ     & \qw    & \rstick{\ket{\neg x_0}} \\
    }
    \]
    \end{document}
    %
    

    Licensing

    I, the copyright holder of this work, hereby publish it under the following licenses:
    GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation 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.
    You may select the license of your choice.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    22 December 2019

    image/png

    23,763 byte

    189 pixel

    639 pixel

    669f8ebd231aa3287be1c7a9178aff0d81b9997d

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current11:56, 8 February 2020Thumbnail for version as of 11:56, 8 February 2020639 × 189 (23 KB)wikimediacommons>Omnissiahs hierophantFixed error: There was one x_1 too much in the topmost expression. (Although, x_1 AND x_1 is the same as x_1, so it was not wrong. But...)

    There are no pages that use this file.