Going from a circuit to the quantum state output of the circuitHow to construct matrix of regular and “flipped” 2-qubit CNOT?Why is it important to eliminate the garbage qubits?Why do we use ancilla qubits for error syndrome measurements?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?SWAP gate(s) in the $R(lambda^-1)$ step of the HHL circuit for $4times 4$ systemsDecomposition of arbitrary 2 qubit operatorCalculating measurement result of quantum swap circuitN&C quantum circuit for Grover's algorithmHow to derive a circuit from given equations?Approximating unitary matrices — restricted gatesetIs the intuition of quantum parallelism always correct?

How can Paypal know my card is being used in another account?

Spacing after a tikz figure

If Trump gets impeached, how long would Pence be president?

Copying an existing HTML page and use it, is that against any copyright law?

Sci-fi change: Too much or Not enough

Why didn’t Christianity spread southwards from Ethiopia in the Middle Ages?

Why would anyone ever invest in a cash-only etf?

Does dual boot harm a laptop battery or reduce its life?

Japanese reading of an integer

Name These Animals

How do I use JSON.generator to generate an unnamed array?

Is there a wealth gap in Boston where the median net worth of white households is $247,500 while the median net worth for black families was $8?

Did Vladimir Lenin have a cat?

Why does the Eurostar not show youth pricing?

Is this photo showing a woman standing in the nude before teenagers real?

Why is の所 used after ドア in this sentence?

What is this 4 sharp symbol and what does it mean?

Adopting a feral cat

reconstruction filter - How does it actually work?

2 weeks and a tight budget to prepare for Z-day. How long can I hunker down?

How could Nomadic scholars effectively memorize libraries worth of information

Should I accept an invitation to give a talk from someone who might review my proposal?

What do you call a flexible diving platform?

Polyhedra, Polyhedron, Polytopes and Polygon



Going from a circuit to the quantum state output of the circuit


How to construct matrix of regular and “flipped” 2-qubit CNOT?Why is it important to eliminate the garbage qubits?Why do we use ancilla qubits for error syndrome measurements?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?SWAP gate(s) in the $R(lambda^-1)$ step of the HHL circuit for $4times 4$ systemsDecomposition of arbitrary 2 qubit operatorCalculating measurement result of quantum swap circuitN&C quantum circuit for Grover's algorithmHow to derive a circuit from given equations?Approximating unitary matrices — restricted gatesetIs the intuition of quantum parallelism always correct?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1












$begingroup$


I'm looking at the following lecture notes where we start with the circuit below for some state $vertpsirangle_L$ that picks up an error to become $Evertpsirangle_L$



enter image description here



It is later claimed in the notes that the syndrome extraction part of the circuit can be represented by the following operation on $Evertpsirangle_L$.



$$E|psirangle_L|0rangle_A rightarrow frac12left(I_1 I_2+Z_1 Z_2right) E|psirangle_L|0rangle_A+frac12left(I_1I_2-Z_1 Z_2right) E|psirangle_L|1rangle_A$$



How does one see this? I can write the Hadamard and the control $Z_1Z_2$ gates as 8x8 matrices but this seems like a tedious way to do it. The alternative is to express the control $Z_1Z_2$ gates using something like this answer. However, I was unable to do it this way either.



So the question is - how do I see that the following line is true just by looking at the circuit?



$$E|psirangle_L|0rangle_A rightarrow frac12left(I_1 I_2+Z_1 Z_2right) E|psirangle_L|0rangle_A+frac12left(I_1I_2-Z_1 Z_2right) E|psirangle_L|1rangle_A$$










share|improve this question









$endgroup$




















    1












    $begingroup$


    I'm looking at the following lecture notes where we start with the circuit below for some state $vertpsirangle_L$ that picks up an error to become $Evertpsirangle_L$



    enter image description here



    It is later claimed in the notes that the syndrome extraction part of the circuit can be represented by the following operation on $Evertpsirangle_L$.



    $$E|psirangle_L|0rangle_A rightarrow frac12left(I_1 I_2+Z_1 Z_2right) E|psirangle_L|0rangle_A+frac12left(I_1I_2-Z_1 Z_2right) E|psirangle_L|1rangle_A$$



    How does one see this? I can write the Hadamard and the control $Z_1Z_2$ gates as 8x8 matrices but this seems like a tedious way to do it. The alternative is to express the control $Z_1Z_2$ gates using something like this answer. However, I was unable to do it this way either.



    So the question is - how do I see that the following line is true just by looking at the circuit?



    $$E|psirangle_L|0rangle_A rightarrow frac12left(I_1 I_2+Z_1 Z_2right) E|psirangle_L|0rangle_A+frac12left(I_1I_2-Z_1 Z_2right) E|psirangle_L|1rangle_A$$










    share|improve this question









    $endgroup$
















      1












      1








      1





      $begingroup$


      I'm looking at the following lecture notes where we start with the circuit below for some state $vertpsirangle_L$ that picks up an error to become $Evertpsirangle_L$



      enter image description here



      It is later claimed in the notes that the syndrome extraction part of the circuit can be represented by the following operation on $Evertpsirangle_L$.



      $$E|psirangle_L|0rangle_A rightarrow frac12left(I_1 I_2+Z_1 Z_2right) E|psirangle_L|0rangle_A+frac12left(I_1I_2-Z_1 Z_2right) E|psirangle_L|1rangle_A$$



      How does one see this? I can write the Hadamard and the control $Z_1Z_2$ gates as 8x8 matrices but this seems like a tedious way to do it. The alternative is to express the control $Z_1Z_2$ gates using something like this answer. However, I was unable to do it this way either.



      So the question is - how do I see that the following line is true just by looking at the circuit?



      $$E|psirangle_L|0rangle_A rightarrow frac12left(I_1 I_2+Z_1 Z_2right) E|psirangle_L|0rangle_A+frac12left(I_1I_2-Z_1 Z_2right) E|psirangle_L|1rangle_A$$










      share|improve this question









      $endgroup$




      I'm looking at the following lecture notes where we start with the circuit below for some state $vertpsirangle_L$ that picks up an error to become $Evertpsirangle_L$



      enter image description here



      It is later claimed in the notes that the syndrome extraction part of the circuit can be represented by the following operation on $Evertpsirangle_L$.



      $$E|psirangle_L|0rangle_A rightarrow frac12left(I_1 I_2+Z_1 Z_2right) E|psirangle_L|0rangle_A+frac12left(I_1I_2-Z_1 Z_2right) E|psirangle_L|1rangle_A$$



      How does one see this? I can write the Hadamard and the control $Z_1Z_2$ gates as 8x8 matrices but this seems like a tedious way to do it. The alternative is to express the control $Z_1Z_2$ gates using something like this answer. However, I was unable to do it this way either.



      So the question is - how do I see that the following line is true just by looking at the circuit?



      $$E|psirangle_L|0rangle_A rightarrow frac12left(I_1 I_2+Z_1 Z_2right) E|psirangle_L|0rangle_A+frac12left(I_1I_2-Z_1 Z_2right) E|psirangle_L|1rangle_A$$







      quantum-gate error-correction






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 9 hours ago









      user1936752user1936752

      2866 bronze badges




      2866 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          3












          $begingroup$

          Let's represent controlled $Z_1Z_2$ gate in the projector formalism, as described in this answer:



          $$C_AZ_1Z_2 = |0ranglelangle0|_A I_1I_2 + |1ranglelangle1|_A Z_1Z_2 $$



          This just tells you to apply identity gates to qubits 1 and 2 if the ancilla is in the $|0rangle$ state and to apply Z gates to qubits 1 and 2 if the ancilla is in the $|1rangle$ state - which is the definition of the controlled gate.



          Now let's apply this to the state $colorblue_AE|psirangle_L$ (this is the state of the system after the first Hadamard gate of syndrome extraction):



          $$C_AZ_1Z_2 big( colorblue_AE|psirangle_L big) = big( colorblue0ranglelangle0_A I_1I_2 + colorblue_A Z_1Z_2 big) bigg( frac1sqrt2colorblue(_AE|psirangle_L bigg) = $$



          $$= frac1sqrt2 big( colorblue0rangle_A otimes I_1I_2 E|psirangle_L + colorblue_A otimes Z_1Z_2 E|psirangle_L big)$$



          Finally, apply the last Hadamard gate to the ancilla; after that the state of the system becomes



          $$frac1sqrt2 big( colorblue_A otimes I_1I_2 E|psirangle_L + colorblue_A otimes Z_1Z_2 E|psirangle_L big) = $$



          $$= frac12 big( colorblue(_A otimes I_1I_2 E|psirangle_L + colorblue1rangle)_A otimes Z_1Z_2 E|psirangle_L big) = $$



          (after reordering the terms and grouping same ancilla states together)



          $$= frac12 colorblue0rangle_A otimes left(I_1 I_2+Z_1 Z_2right) E|psirangle_L + frac12 colorblue_A otimes left(I_1I_2-Z_1 Z_2right) E|psirangle_L$$



          which is exactly the state you need to get.






          share|improve this answer









          $endgroup$

















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "694"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            noCode: true, onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fquantumcomputing.stackexchange.com%2fquestions%2f6895%2fgoing-from-a-circuit-to-the-quantum-state-output-of-the-circuit%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            3












            $begingroup$

            Let's represent controlled $Z_1Z_2$ gate in the projector formalism, as described in this answer:



            $$C_AZ_1Z_2 = |0ranglelangle0|_A I_1I_2 + |1ranglelangle1|_A Z_1Z_2 $$



            This just tells you to apply identity gates to qubits 1 and 2 if the ancilla is in the $|0rangle$ state and to apply Z gates to qubits 1 and 2 if the ancilla is in the $|1rangle$ state - which is the definition of the controlled gate.



            Now let's apply this to the state $colorblue_AE|psirangle_L$ (this is the state of the system after the first Hadamard gate of syndrome extraction):



            $$C_AZ_1Z_2 big( colorblue_AE|psirangle_L big) = big( colorblue0ranglelangle0_A I_1I_2 + colorblue_A Z_1Z_2 big) bigg( frac1sqrt2colorblue(_AE|psirangle_L bigg) = $$



            $$= frac1sqrt2 big( colorblue0rangle_A otimes I_1I_2 E|psirangle_L + colorblue_A otimes Z_1Z_2 E|psirangle_L big)$$



            Finally, apply the last Hadamard gate to the ancilla; after that the state of the system becomes



            $$frac1sqrt2 big( colorblue_A otimes I_1I_2 E|psirangle_L + colorblue_A otimes Z_1Z_2 E|psirangle_L big) = $$



            $$= frac12 big( colorblue(_A otimes I_1I_2 E|psirangle_L + colorblue1rangle)_A otimes Z_1Z_2 E|psirangle_L big) = $$



            (after reordering the terms and grouping same ancilla states together)



            $$= frac12 colorblue0rangle_A otimes left(I_1 I_2+Z_1 Z_2right) E|psirangle_L + frac12 colorblue_A otimes left(I_1I_2-Z_1 Z_2right) E|psirangle_L$$



            which is exactly the state you need to get.






            share|improve this answer









            $endgroup$



















              3












              $begingroup$

              Let's represent controlled $Z_1Z_2$ gate in the projector formalism, as described in this answer:



              $$C_AZ_1Z_2 = |0ranglelangle0|_A I_1I_2 + |1ranglelangle1|_A Z_1Z_2 $$



              This just tells you to apply identity gates to qubits 1 and 2 if the ancilla is in the $|0rangle$ state and to apply Z gates to qubits 1 and 2 if the ancilla is in the $|1rangle$ state - which is the definition of the controlled gate.



              Now let's apply this to the state $colorblue_AE|psirangle_L$ (this is the state of the system after the first Hadamard gate of syndrome extraction):



              $$C_AZ_1Z_2 big( colorblue_AE|psirangle_L big) = big( colorblue0ranglelangle0_A I_1I_2 + colorblue_A Z_1Z_2 big) bigg( frac1sqrt2colorblue(_AE|psirangle_L bigg) = $$



              $$= frac1sqrt2 big( colorblue0rangle_A otimes I_1I_2 E|psirangle_L + colorblue_A otimes Z_1Z_2 E|psirangle_L big)$$



              Finally, apply the last Hadamard gate to the ancilla; after that the state of the system becomes



              $$frac1sqrt2 big( colorblue_A otimes I_1I_2 E|psirangle_L + colorblue_A otimes Z_1Z_2 E|psirangle_L big) = $$



              $$= frac12 big( colorblue(_A otimes I_1I_2 E|psirangle_L + colorblue1rangle)_A otimes Z_1Z_2 E|psirangle_L big) = $$



              (after reordering the terms and grouping same ancilla states together)



              $$= frac12 colorblue0rangle_A otimes left(I_1 I_2+Z_1 Z_2right) E|psirangle_L + frac12 colorblue_A otimes left(I_1I_2-Z_1 Z_2right) E|psirangle_L$$



              which is exactly the state you need to get.






              share|improve this answer









              $endgroup$

















                3












                3








                3





                $begingroup$

                Let's represent controlled $Z_1Z_2$ gate in the projector formalism, as described in this answer:



                $$C_AZ_1Z_2 = |0ranglelangle0|_A I_1I_2 + |1ranglelangle1|_A Z_1Z_2 $$



                This just tells you to apply identity gates to qubits 1 and 2 if the ancilla is in the $|0rangle$ state and to apply Z gates to qubits 1 and 2 if the ancilla is in the $|1rangle$ state - which is the definition of the controlled gate.



                Now let's apply this to the state $colorblue_AE|psirangle_L$ (this is the state of the system after the first Hadamard gate of syndrome extraction):



                $$C_AZ_1Z_2 big( colorblue_AE|psirangle_L big) = big( colorblue0ranglelangle0_A I_1I_2 + colorblue_A Z_1Z_2 big) bigg( frac1sqrt2colorblue(_AE|psirangle_L bigg) = $$



                $$= frac1sqrt2 big( colorblue0rangle_A otimes I_1I_2 E|psirangle_L + colorblue_A otimes Z_1Z_2 E|psirangle_L big)$$



                Finally, apply the last Hadamard gate to the ancilla; after that the state of the system becomes



                $$frac1sqrt2 big( colorblue_A otimes I_1I_2 E|psirangle_L + colorblue_A otimes Z_1Z_2 E|psirangle_L big) = $$



                $$= frac12 big( colorblue(_A otimes I_1I_2 E|psirangle_L + colorblue1rangle)_A otimes Z_1Z_2 E|psirangle_L big) = $$



                (after reordering the terms and grouping same ancilla states together)



                $$= frac12 colorblue0rangle_A otimes left(I_1 I_2+Z_1 Z_2right) E|psirangle_L + frac12 colorblue_A otimes left(I_1I_2-Z_1 Z_2right) E|psirangle_L$$



                which is exactly the state you need to get.






                share|improve this answer









                $endgroup$



                Let's represent controlled $Z_1Z_2$ gate in the projector formalism, as described in this answer:



                $$C_AZ_1Z_2 = |0ranglelangle0|_A I_1I_2 + |1ranglelangle1|_A Z_1Z_2 $$



                This just tells you to apply identity gates to qubits 1 and 2 if the ancilla is in the $|0rangle$ state and to apply Z gates to qubits 1 and 2 if the ancilla is in the $|1rangle$ state - which is the definition of the controlled gate.



                Now let's apply this to the state $colorblue_AE|psirangle_L$ (this is the state of the system after the first Hadamard gate of syndrome extraction):



                $$C_AZ_1Z_2 big( colorblue_AE|psirangle_L big) = big( colorblue0ranglelangle0_A I_1I_2 + colorblue_A Z_1Z_2 big) bigg( frac1sqrt2colorblue(_AE|psirangle_L bigg) = $$



                $$= frac1sqrt2 big( colorblue0rangle_A otimes I_1I_2 E|psirangle_L + colorblue_A otimes Z_1Z_2 E|psirangle_L big)$$



                Finally, apply the last Hadamard gate to the ancilla; after that the state of the system becomes



                $$frac1sqrt2 big( colorblue_A otimes I_1I_2 E|psirangle_L + colorblue_A otimes Z_1Z_2 E|psirangle_L big) = $$



                $$= frac12 big( colorblue(_A otimes I_1I_2 E|psirangle_L + colorblue1rangle)_A otimes Z_1Z_2 E|psirangle_L big) = $$



                (after reordering the terms and grouping same ancilla states together)



                $$= frac12 colorblue0rangle_A otimes left(I_1 I_2+Z_1 Z_2right) E|psirangle_L + frac12 colorblue_A otimes left(I_1I_2-Z_1 Z_2right) E|psirangle_L$$



                which is exactly the state you need to get.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 6 hours ago









                Mariia MykhailovaMariia Mykhailova

                2,9551 gold badge3 silver badges17 bronze badges




                2,9551 gold badge3 silver badges17 bronze badges






























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Quantum Computing Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    Use MathJax to format equations. MathJax reference.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fquantumcomputing.stackexchange.com%2fquestions%2f6895%2fgoing-from-a-circuit-to-the-quantum-state-output-of-the-circuit%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                    Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                    Tom Holland Mục lục Đầu đời và giáo dục | Sự nghiệp | Cuộc sống cá nhân | Phim tham gia | Giải thưởng và đề cử | Chú thích | Liên kết ngoài | Trình đơn chuyển hướngProfile“Person Details for Thomas Stanley Holland, "England and Wales Birth Registration Index, 1837-2008" — FamilySearch.org”"Meet Tom Holland... the 16-year-old star of The Impossible""Schoolboy actor Tom Holland finds himself in Oscar contention for role in tsunami drama"“Naomi Watts on the Prince William and Harry's reaction to her film about the late Princess Diana”lưu trữ"Holland and Pflueger Are West End's Two New 'Billy Elliots'""I'm so envious of my son, the movie star! British writer Dominic Holland's spent 20 years trying to crack Hollywood - but he's been beaten to it by a very unlikely rival"“Richard and Margaret Povey of Jersey, Channel Islands, UK: Information about Thomas Stanley Holland”"Tom Holland to play Billy Elliot""New Billy Elliot leaving the garage"Billy Elliot the Musical - Tom Holland - Billy"A Tale of four Billys: Tom Holland""The Feel Good Factor""Thames Christian College schoolboys join Myleene Klass for The Feelgood Factor""Government launches £600,000 arts bursaries pilot""BILLY's Chapman, Holland, Gardner & Jackson-Keen Visit Prime Minister""Elton John 'blown away' by Billy Elliot fifth birthday" (video with John's interview and fragments of Holland's performance)"First News interviews Arrietty's Tom Holland"“33rd Critics' Circle Film Awards winners”“National Board of Review Current Awards”Bản gốc"Ron Howard Whaling Tale 'In The Heart Of The Sea' Casts Tom Holland"“'Spider-Man' Finds Tom Holland to Star as New Web-Slinger”lưu trữ“Captain America: Civil War (2016)”“Film Review: ‘Captain America: Civil War’”lưu trữ“‘Captain America: Civil War’ review: Choose your own avenger”lưu trữ“The Lost City of Z reviews”“Sony Pictures and Marvel Studios Find Their 'Spider-Man' Star and Director”“‘Mary Magdalene’, ‘Current War’ & ‘Wind River’ Get 2017 Release Dates From Weinstein”“Lionsgate Unleashing Daisy Ridley & Tom Holland Starrer ‘Chaos Walking’ In Cannes”“PTA's 'Master' Leads Chicago Film Critics Nominations, UPDATED: Houston and Indiana Critics Nominations”“Nominaciones Goya 2013 Telecinco Cinema – ENG”“Jameson Empire Film Awards: Martin Freeman wins best actor for performance in The Hobbit”“34th Annual Young Artist Awards”Bản gốc“Teen Choice Awards 2016—Captain America: Civil War Leads Second Wave of Nominations”“BAFTA Film Award Nominations: ‘La La Land’ Leads Race”“Saturn Awards Nominations 2017: 'Rogue One,' 'Walking Dead' Lead”Tom HollandTom HollandTom HollandTom Hollandmedia.gettyimages.comWorldCat Identities300279794no20130442900000 0004 0355 42791085670554170004732cb16706349t(data)XX5557367