Is swap gate equivalent to just exchanging the wire of the two qubits?What happens if two separately entangled qubits are passed through a C-NOT gate?How to implement the “Square root of Swap gate” on the IBM Q (composer)?How to implement a Square root of Swap gate that swaps 2n-qubits on the IBM Q (composer)?Expressing “Square root of Swap” gate in terms of CNOTSWAP gate(s) in the $R(lambda^-1)$ step of the HHL circuit for $4times 4$ systemsWhat happens when I input two qubits starting at state $|00rangle$ into a hadamard gate?Composing the CNOT gate as a tensor product of two level matricesImplement Fredkin gate with square root of swapWhat is the tensorial representation of the quantum swap gate?

Are there any animals in the Star Wars universe that are the same as those on Earth?

Middle-of-the-day intoxication?

"When you Frankenstein a team together..." - Is "Frankenstein" a new verb?

My co-worker withholds information about his systems and blames me for "bugs" which aren't my fault

What element, if any, would justify mining stars (financially)?

Software update on obsolete system: is it real?

Approx 1948 Brasil Brazil Airliner...what is it? Taildragger?

Making bread with few ingredients

Dividing the first 20 numbers into 3 lists

How can women avoid talking during dates while keeping men at ease?

Why couldn't the Romulans simply circumvent Starfleet's blockade?

What was the stated reason for giving Trump this award?

How to express "naked" in different situations?

Backwards Alphabet Triangle

Why do companies pay fixed dividends instead of fluid ones?

Busted my bike hub & derailleur (I think) - how bad is it?

Why is Macron seemingly opposing an article 50 extension?

Extract partitions of images after edge detection

Is it a Hamiltonian cycle on a grid?

During World War 1, were any policies in place to handle large scale troop mutiny?

Did the USA have a political agenda in Syria beyond simply the containment of ISIS?

How to print a list of possible matches from C-n?

How to make the number 49?

What is the most life you can have at the end of your first turn with only three cards?



Is swap gate equivalent to just exchanging the wire of the two qubits?


What happens if two separately entangled qubits are passed through a C-NOT gate?How to implement the “Square root of Swap gate” on the IBM Q (composer)?How to implement a Square root of Swap gate that swaps 2n-qubits on the IBM Q (composer)?Expressing “Square root of Swap” gate in terms of CNOTSWAP gate(s) in the $R(lambda^-1)$ step of the HHL circuit for $4times 4$ systemsWhat happens when I input two qubits starting at state $|00rangle$ into a hadamard gate?Composing the CNOT gate as a tensor product of two level matricesImplement Fredkin gate with square root of swapWhat is the tensorial representation of the quantum swap gate?






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









11














$begingroup$


Is swap gate equivalent to just exchanging the wire of the two qubits?like this



if yes why not just switching the wire whenever we want to apply a swap gate?










share|improve this question












$endgroup$





















    11














    $begingroup$


    Is swap gate equivalent to just exchanging the wire of the two qubits?like this



    if yes why not just switching the wire whenever we want to apply a swap gate?










    share|improve this question












    $endgroup$

















      11












      11








      11


      2



      $begingroup$


      Is swap gate equivalent to just exchanging the wire of the two qubits?like this



      if yes why not just switching the wire whenever we want to apply a swap gate?










      share|improve this question












      $endgroup$




      Is swap gate equivalent to just exchanging the wire of the two qubits?like this



      if yes why not just switching the wire whenever we want to apply a swap gate?







      quantum-gate






      share|improve this question
















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 14 at 13:41









      Sanchayan Dutta

      8,4864 gold badges18 silver badges64 bronze badges




      8,4864 gold badges18 silver badges64 bronze badges










      asked Jun 14 at 10:45









      Zzy1130Zzy1130

      1057 bronze badges




      1057 bronze badges























          2 Answers
          2






          active

          oldest

          votes


















          15
















          $begingroup$

          Yes, it is equivalent. That's a perfectly valid way to represent it in a quantum circuit diagram.



          In practice, it depends what physical implementation you're talking about. If you have 'flying' qubits, then it is possible to just reorder them, or even simply relabel them without actively doing anything. However, many physical implementations of quantum computation use static qubits. That means one particular physical qubit is in a particular place. If you want to make it interact (e.g. perform controlled-not) with another qubit, they usually have to be next to each other. That means performing swap operations along some path, exchanging the states of the qubits so that the state that was on one physical qubit is now on a different one, where you need it to be.






          share|improve this answer










          $endgroup$






















            5
















            $begingroup$


            why not just switching the wire whenever we want to apply a swap gate?




            If this is the crux of the question I think the main rationale here is to treat the swap gate as an actual gate.



            I only rarely see raw swap gates on their own in diagrams, typically I see them as part of a Fredkin Gate. Basically, by treating it as a gate rather than a crossing of wires, it makes it easier to understand how it can be "controlled" like any other gate.



            But yes, an un-controlled swap gate could be implemented on classical bits in electrical wires by swapping the wires' positions.






            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/4.0/"u003ecc by-sa 4.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%2f6458%2fis-swap-gate-equivalent-to-just-exchanging-the-wire-of-the-two-qubits%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown


























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              15
















              $begingroup$

              Yes, it is equivalent. That's a perfectly valid way to represent it in a quantum circuit diagram.



              In practice, it depends what physical implementation you're talking about. If you have 'flying' qubits, then it is possible to just reorder them, or even simply relabel them without actively doing anything. However, many physical implementations of quantum computation use static qubits. That means one particular physical qubit is in a particular place. If you want to make it interact (e.g. perform controlled-not) with another qubit, they usually have to be next to each other. That means performing swap operations along some path, exchanging the states of the qubits so that the state that was on one physical qubit is now on a different one, where you need it to be.






              share|improve this answer










              $endgroup$



















                15
















                $begingroup$

                Yes, it is equivalent. That's a perfectly valid way to represent it in a quantum circuit diagram.



                In practice, it depends what physical implementation you're talking about. If you have 'flying' qubits, then it is possible to just reorder them, or even simply relabel them without actively doing anything. However, many physical implementations of quantum computation use static qubits. That means one particular physical qubit is in a particular place. If you want to make it interact (e.g. perform controlled-not) with another qubit, they usually have to be next to each other. That means performing swap operations along some path, exchanging the states of the qubits so that the state that was on one physical qubit is now on a different one, where you need it to be.






                share|improve this answer










                $endgroup$

















                  15














                  15










                  15







                  $begingroup$

                  Yes, it is equivalent. That's a perfectly valid way to represent it in a quantum circuit diagram.



                  In practice, it depends what physical implementation you're talking about. If you have 'flying' qubits, then it is possible to just reorder them, or even simply relabel them without actively doing anything. However, many physical implementations of quantum computation use static qubits. That means one particular physical qubit is in a particular place. If you want to make it interact (e.g. perform controlled-not) with another qubit, they usually have to be next to each other. That means performing swap operations along some path, exchanging the states of the qubits so that the state that was on one physical qubit is now on a different one, where you need it to be.






                  share|improve this answer










                  $endgroup$



                  Yes, it is equivalent. That's a perfectly valid way to represent it in a quantum circuit diagram.



                  In practice, it depends what physical implementation you're talking about. If you have 'flying' qubits, then it is possible to just reorder them, or even simply relabel them without actively doing anything. However, many physical implementations of quantum computation use static qubits. That means one particular physical qubit is in a particular place. If you want to make it interact (e.g. perform controlled-not) with another qubit, they usually have to be next to each other. That means performing swap operations along some path, exchanging the states of the qubits so that the state that was on one physical qubit is now on a different one, where you need it to be.







                  share|improve this answer













                  share|improve this answer




                  share|improve this answer










                  answered Jun 14 at 11:08









                  DaftWullieDaftWullie

                  21.5k1 gold badge9 silver badges54 bronze badges




                  21.5k1 gold badge9 silver badges54 bronze badges


























                      5
















                      $begingroup$


                      why not just switching the wire whenever we want to apply a swap gate?




                      If this is the crux of the question I think the main rationale here is to treat the swap gate as an actual gate.



                      I only rarely see raw swap gates on their own in diagrams, typically I see them as part of a Fredkin Gate. Basically, by treating it as a gate rather than a crossing of wires, it makes it easier to understand how it can be "controlled" like any other gate.



                      But yes, an un-controlled swap gate could be implemented on classical bits in electrical wires by swapping the wires' positions.






                      share|improve this answer










                      $endgroup$



















                        5
















                        $begingroup$


                        why not just switching the wire whenever we want to apply a swap gate?




                        If this is the crux of the question I think the main rationale here is to treat the swap gate as an actual gate.



                        I only rarely see raw swap gates on their own in diagrams, typically I see them as part of a Fredkin Gate. Basically, by treating it as a gate rather than a crossing of wires, it makes it easier to understand how it can be "controlled" like any other gate.



                        But yes, an un-controlled swap gate could be implemented on classical bits in electrical wires by swapping the wires' positions.






                        share|improve this answer










                        $endgroup$

















                          5














                          5










                          5







                          $begingroup$


                          why not just switching the wire whenever we want to apply a swap gate?




                          If this is the crux of the question I think the main rationale here is to treat the swap gate as an actual gate.



                          I only rarely see raw swap gates on their own in diagrams, typically I see them as part of a Fredkin Gate. Basically, by treating it as a gate rather than a crossing of wires, it makes it easier to understand how it can be "controlled" like any other gate.



                          But yes, an un-controlled swap gate could be implemented on classical bits in electrical wires by swapping the wires' positions.






                          share|improve this answer










                          $endgroup$




                          why not just switching the wire whenever we want to apply a swap gate?




                          If this is the crux of the question I think the main rationale here is to treat the swap gate as an actual gate.



                          I only rarely see raw swap gates on their own in diagrams, typically I see them as part of a Fredkin Gate. Basically, by treating it as a gate rather than a crossing of wires, it makes it easier to understand how it can be "controlled" like any other gate.



                          But yes, an un-controlled swap gate could be implemented on classical bits in electrical wires by swapping the wires' positions.







                          share|improve this answer













                          share|improve this answer




                          share|improve this answer










                          answered Jun 14 at 19:39









                          LambdaBetaLambdaBeta

                          1736 bronze badges




                          1736 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%2f6458%2fis-swap-gate-equivalent-to-just-exchanging-the-wire-of-the-two-qubits%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

                              Tamil (spriik) Luke uk diar | Nawigatjuun

                              Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                              Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?