{"id":4060,"date":"2024-09-21T12:29:35","date_gmt":"2024-09-21T12:29:35","guid":{"rendered":"https:\/\/workhouse.sweetdishy.com\/?p=4060"},"modified":"2024-09-21T12:29:35","modified_gmt":"2024-09-21T12:29:35","slug":"introduction-40","status":"publish","type":"post","link":"https:\/\/workhouse.sweetdishy.com\/index.php\/2024\/09\/21\/introduction-40\/","title":{"rendered":"Introduction"},"content":{"rendered":"\n<p>We are now ready to see how computing with qubits can be done. In this<\/p>\n\n\n\n<p>book, we will mainly use the circuit model for computation which was \ufb01rst<\/p>\n\n\n\n<p>introduced by Deutsch [25]. We will represent by quantum \u201cwires,\u201d the qubits<\/p>\n\n\n\n<p>upon which manipulations. The length of the wire is to be interpreted as the<\/p>\n\n\n\n<p>time axis. Manipulations on qubits can be done using basic unitary operators<\/p>\n\n\n\n<p>that are the equivalents of logic \u201cgates.\u201d An algorithm, or a complete set<\/p>\n\n\n\n<p>of steps for achieving a processing task, is a combination of wires and gates<\/p>\n\n\n\n<p>representing a quantum circuit. This circuit must be thought of as a time<\/p>\n\n\n\n<p>sequence of events with every wire a way of representing qubit states, and<\/p>\n\n\n\n<p>with gates representing processing of those states.<\/p>\n\n\n\n<p>|i<\/p>\n\n\n\n<p>n<\/p>\n\n\n\n<p>i<\/p>\n\n\n\n<p>G<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>|o<\/p>\n\n\n\n<p>n<\/p>\n\n\n\n<p>i<\/p>\n\n\n\n<p>|i<\/p>\n\n\n\n<p>n\u22121<\/p>\n\n\n\n<p>i<\/p>\n\n\n\n<p>\u2022<\/p>\n\n\n\n<p>G<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>|o<\/p>\n\n\n\n<p>n\u22121<\/p>\n\n\n\n<p>i<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>G<\/p>\n\n\n\n<p>3<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>|i<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>i<\/p>\n\n\n\n<p>G<\/p>\n\n\n\n<p>4<\/p>\n\n\n\n<p>|o<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>i<\/p>\n\n\n\n<p>FIGURE 7.1: Illustrating a quantum circuit with n qubits.<\/p>\n\n\n\n<p>This notation is based on one by Richard Feynman, with the convention<\/p>\n\n\n\n<p>that time \ufb02ows from left to right.<\/p>\n\n\n\n<p>Sometimes, an n-qubit state is represented by a wire with a \/<\/p>\n\n\n\n<p>n<\/p>\n\n\n\n<p>decoration<\/p>\n\n\n\n<p>on it, that is referred to as a register.<\/p>\n\n\n\n<p>|ii<\/p>\n\n\n\n<p>n<\/p>\n\n\n\n<p>\/<\/p>\n\n\n\n<p>n<\/p>\n\n\n\n<p>Circuit<\/p>\n\n\n\n<p>\/<\/p>\n\n\n\n<p>n<\/p>\n\n\n\n<p>|oi<\/p>\n\n\n\n<p>n<\/p>\n\n\n\n<p>In practice the circuit is e\ufb00ectively a unitary operator acting on the input<\/p>\n\n\n\n<p>qubits. A few major di\ufb00erences between classical circuits and quantum ones<\/p>\n\n\n\n<p>are:<\/p>\n\n\n\n<p>\u2022 Quantum circuits never contain loops or feedbacks: they are acyclic<\/p>\n\n\n\n<p>\u2022 Quantum wires are never fanned out: since arbitrary quantum states<\/p>\n\n\n\n<p>cannot be cloned<\/p>\n\n\n\n<p>121<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"https:\/\/learning.oreilly.com\/api\/v2\/epubs\/urn:orm:book:9781482238129\/files\/bg93.png\" width=\"671\" height=\"571\"><\/p>\n\n\n\n<p>122 Introduction to Quantum Physics and Information Processing<\/p>\n\n\n\n<p>\u2022 Though the action of a circuit can be analyzed using classical states, the<\/p>\n\n\n\n<p>e\ufb00ect on superpositions is what gives it true quantum power.<\/p>\n\n\n\n<p>The fact that quantum evolution is unitary results in quantum gates (and<\/p>\n\n\n\n<p>circuits) being reversible. This means that any manipulation of quantum infor-<\/p>\n\n\n\n<p>mation can be undone, unless an irreversible process such as measurement or<\/p>\n\n\n\n<p>decoherence happens on the system. This, and the peculiar features of qubits<\/p>\n\n\n\n<p>discussed in Chapter 4, makes for startling di\ufb00erences in the way we must<\/p>\n\n\n\n<p>think about quantum algorithms.<\/p>\n\n\n\n<p>Mathematically a gate can be represented as a matrix. Classical reversible<\/p>\n\n\n\n<p>gates can have only ones and zeros as elements: reversibility implies that they<\/p>\n\n\n\n<p>can only perform a permutation of the inputs. For example, a reversible XOR<\/p>\n\n\n\n<p>gate is given by y<\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<p>output in the truth table of what has sometimes been called<\/p>\n\n\n\n<p>a Feynman gate:<\/p>\n\n\n\n<p>x y x<\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<p>y<\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<p>0 0 0 0<\/p>\n\n\n\n<p>0 1 0 1<\/p>\n\n\n\n<p>1 0 1 1<\/p>\n\n\n\n<p>1 1 1 0<\/p>\n\n\n\n<p>=\u21d2<\/p>\n\n\n\n<p>00 01 10 11<\/p>\n\n\n\n<p>\uf8eb<\/p>\n\n\n\n<p>\uf8ec<\/p>\n\n\n\n<p>\uf8ec<\/p>\n\n\n\n<p>\uf8ed<\/p>\n\n\n\n<p>\uf8f6<\/p>\n\n\n\n<p>\uf8f7<\/p>\n\n\n\n<p>\uf8f7<\/p>\n\n\n\n<p>\uf8f8<\/p>\n\n\n\n<p>00 1 0 0 0<\/p>\n\n\n\n<p>01 0 1 0 0<\/p>\n\n\n\n<p>10 0 0 0 1<\/p>\n\n\n\n<p>11 0 0 1 0<\/p>\n\n\n\n<p>(7.1)<\/p>\n\n\n\n<p>Such a gate is also implementable as a quantum gate, but the most generic<\/p>\n\n\n\n<p>quantum gate is represented by a complex matrix<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are now ready to see how computing with qubits can be done. In this book, we will mainly use the circuit model for computation which was \ufb01rst introduced by Deutsch [25]. We will represent by quantum \u201cwires,\u201d the qubits upon which manipulations. The length of the wire is to be interpreted as the time [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4061,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[496],"tags":[],"class_list":["post-4060","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-quantum-gates-and-circuits"],"jetpack_featured_media_url":"https:\/\/workhouse.sweetdishy.com\/wp-content\/uploads\/2024\/09\/idea-1.png","_links":{"self":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts\/4060","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/comments?post=4060"}],"version-history":[{"count":1,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts\/4060\/revisions"}],"predecessor-version":[{"id":4062,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts\/4060\/revisions\/4062"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/media\/4061"}],"wp:attachment":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/media?parent=4060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/categories?post=4060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/tags?post=4060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}