{"id":4074,"date":"2024-09-21T12:50:19","date_gmt":"2024-09-21T12:50:19","guid":{"rendered":"https:\/\/workhouse.sweetdishy.com\/?p=4074"},"modified":"2024-09-21T12:50:20","modified_gmt":"2024-09-21T12:50:20","slug":"universal-quantum-gates","status":"publish","type":"post","link":"https:\/\/workhouse.sweetdishy.com\/index.php\/2024\/09\/21\/universal-quantum-gates\/","title":{"rendered":"Universal Quantum Gates"},"content":{"rendered":"\n<p>We now wish to push the circuit analogy further and explore the possibility<\/p>\n\n\n\n<p>of universal quantum gates. Let\u2019s start with single-qubit gates. We\u2019ve seen<\/p>\n\n\n\n<p>that these are 2 \u00d72 unitary matrices, which take a point on the Bloch sphere<\/p>\n\n\n\n<p>to another. It is easy to see that there are in\ufb01nitely many possible 1-qubit<\/p>\n\n\n\n<p>gates. These however cannot form a universal set since controlled operations<\/p>\n\n\n\n<p>cannot be implemented by taking direct products of 1-qubit gates. How do we<\/p>\n\n\n\n<p>implement controlled gates in general?<\/p>\n\n\n\n<p>7.4.1 Controlled-U gate<\/p>\n\n\n\n<p>Working toward a general construction for a controlled U gate for arbitrary<\/p>\n\n\n\n<p>U makes use of the following representation for U :<\/p>\n\n\n\n<p>Theorem 7.1. Any unitary 2 \u00d7 2 matrix can be decomposed as<\/p>\n\n\n\n<p>U = e<\/p>\n\n\n\n<p>i\u03b8<\/p>\n\n\n\n<p>A \u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>B \u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>C, s.t A B C = , (7.26)<\/p>\n\n\n\n<p>where A, B, and C are also unitary.<\/p>\n\n\n\n<p>Proof. The proof hinges on the fact that any unitary matrix implements a<\/p>\n\n\n\n<p>rotation on the Bloch sphere, up to an over-all phase factor e<\/p>\n\n\n\n<p>i\u03b8<\/p>\n\n\n\n<p>. Suppose V<\/p>\n\n\n\n<p>is some unitary matrix. The matrix V \u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>V<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>is also unitary, so that it can be<\/p>\n\n\n\n<p>represented (see Equation 7.11) as<\/p>\n\n\n\n<p>V \u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>V<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>= a<\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<p>+ ~a \u00b7 ~\u03c3, a<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<p>+ ~a \u00b7~a = 1.<\/p>\n\n\n\n<p>But V \u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>V<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>is a similarity transformation of \u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>. So it must preserve its trace,<\/p>\n\n\n\n<p>which is zero. Therefore a<\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<p>= 0 and<\/p>\n\n\n\n<p>V \u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>V<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>= \u02c6a \u00b7 ~\u03c3 for a real unit \u02c6a.<\/p>\n\n\n\n<p>Note that \u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>= \u02c6x \u00b7 ~\u03c3. Then V \u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>V<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>must be rotating \u02c6x to a new direction \u02c6a.<\/p>\n\n\n\n<p>Similarly, another unitary W will achieve<\/p>\n\n\n\n<p>W \u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>W<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>=<\/p>\n\n\n\n<p>\u02c6<\/p>\n\n\n\n<p>b \u00b7 ~\u03c3 for a real unit<\/p>\n\n\n\n<p>\u02c6<\/p>\n\n\n\n<p>b.<\/p>\n\n\n\n<p>Thus we have<\/p>\n\n\n\n<p>V \u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>V<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>W \u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>W<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>= (\u02c6a \u00b7 ~\u03c3) (<\/p>\n\n\n\n<p>\u02c6<\/p>\n\n\n\n<p>b \u00b7 ~\u03c3)<\/p>\n\n\n\n<p>= \u02c6a \u00b7<\/p>\n\n\n\n<p>\u02c6<\/p>\n\n\n\n<p>b + i \u02c6a \u00d7<\/p>\n\n\n\n<p>\u02c6<\/p>\n\n\n\n<p>b \u00b7 ~\u03c3.<\/p>\n\n\n\n<p>(Refer to Equation 3.34 you proved in one of the problems of Chapter 3.) We<\/p>\n\n\n\n<p>can now think of \u02c6a and<\/p>\n\n\n\n<p>\u02c6<\/p>\n\n\n\n<p>b as directions with an angle \u03b3 between them so that<\/p>\n\n\n\n<p>\u02c6a \u00b7<\/p>\n\n\n\n<p>\u02c6<\/p>\n\n\n\n<p>b = cos \u03b3, \u02c6a \u00d7<\/p>\n\n\n\n<p>\u02c6<\/p>\n\n\n\n<p>b = sin \u03b3 \u02c6n, which is perpendicular to \u02c6a and<\/p>\n\n\n\n<p>\u02c6<\/p>\n\n\n\n<p>b<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Processing<\/p>\n\n\n\n<p>Then we can construct<\/p>\n\n\n\n<p>U = e<\/p>\n\n\n\n<p>i\u03b8<\/p>\n\n\n\n<p>V \u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>V<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>W \u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>W<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>= e<\/p>\n\n\n\n<p>i\u03b8<\/p>\n\n\n\n<p>(cos \u03b3 + i sin \u03b3 \u02c6n \u00b7 ~\u03c3)<\/p>\n\n\n\n<p>= e<\/p>\n\n\n\n<p>i\u03b8<\/p>\n\n\n\n<p>e<\/p>\n\n\n\n<p>i\u03b3 \u02c6n\u00b7~\u03c3<\/p>\n\n\n\n<p>,<\/p>\n\n\n\n<p>which is a valid representation for a unitary operator! If we identify<\/p>\n\n\n\n<p>V = A, V<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>W = B and W<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>= C,<\/p>\n\n\n\n<p>then we have the requisite representation for U.<\/p>\n\n\n\n<p>We can implement C-V \u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>V<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>W \u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>W<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>by the circuit of Figure (7.16).<\/p>\n\n\n\n<p>|xi<\/p>\n\n\n\n<p>\u2022 \u2022<\/p>\n\n\n\n<p>|yi<\/p>\n\n\n\n<p>W<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>W<\/p>\n\n\n\n<p>V<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>V<\/p>\n\n\n\n<p>FIGURE 7.16: Circuit to evaluate C-U up to the phase factor<\/p>\n\n\n\n<p>It is straightforward to see that when x = 0, the output is V V<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>W W<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>y = y,<\/p>\n\n\n\n<p>and when x = 1, the output is V \u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>V<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>W \u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>W<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>y = Uy up to the phase. So<\/p>\n\n\n\n<p>this gives C-U up to the phase factor. We need to additionally implement the<\/p>\n\n\n\n<p>controlled phase C-\u0398 where<\/p>\n\n\n\n<p>\u0398 =<\/p>\n\n\n\n<p>&#8220;<\/p>\n\n\n\n<p>e<\/p>\n\n\n\n<p>i\u03b8<\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<p>0 e<\/p>\n\n\n\n<p>i\u03b8<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>#<\/p>\n\n\n\n<p>Now check that<\/p>\n\n\n\n<p>C\u2212\u0398 =<\/p>\n\n\n\n<p>&#8220;<\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<p>0 \u0398<\/p>\n\n\n\n<p>#<\/p>\n\n\n\n<p>=<\/p>\n\n\n\n<p>&#8220;<\/p>\n\n\n\n<p>1 0<\/p>\n\n\n\n<p>0 e<\/p>\n\n\n\n<p>i\u03b8<\/p>\n\n\n\n<p>#<\/p>\n\n\n\n<p>\u2297 .<\/p>\n\n\n\n<p>We then have the implementation of the full C-U illustrated in Fig-<\/p>\n\n\n\n<p>ure (7.17), that uses only CNOT gates and single-qubit gates.<\/p>\n\n\n\n<p>|xi<\/p>\n\n\n\n<p>\u2022 \u2022<\/p>\n\n\n\n<p>&#8220;<\/p>\n\n\n\n<p>1 0<\/p>\n\n\n\n<p>0 e<\/p>\n\n\n\n<p>i\u03b8<\/p>\n\n\n\n<p>#<\/p>\n\n\n\n<p>|yi<\/p>\n\n\n\n<p>W<\/p>\n\n\n\n<p>V W<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>W<\/p>\n\n\n\n<p>FIGURE 7.17: Implementation of controlled U gate.<\/p>\n\n\n\n<p>Here, V and W are arbitrary unitaries. We are now half-way through in our<\/p>\n\n\n\n<p>quest for universal quantum gates, of which one set is given in the following<\/p>\n\n\n\n<p>theorem:<\/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\/bga2.png\" width=\"685\" height=\"873\"><\/p>\n\n\n\n<p>Quantum Gates and Circuits 137<\/p>\n\n\n\n<p>Theorem 7.2. Universal Quantum Gates: the CNOT gate along with<\/p>\n\n\n\n<p>single-qubit gates is universal.<\/p>\n\n\n\n<p>How do we prove this? Now classically, the To\ufb00oli gate, which is a C-<\/p>\n\n\n\n<p>C-NOT gate, is universal. We\u2019ll now show that given our construction for<\/p>\n\n\n\n<p>C-U gates, we can build doubly controlled C-C-U gates as follows. Consider<\/p>\n\n\n\n<p>a unitary Q such that Q<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>= U . Then we can build a C-C-U by the circuit<\/p>\n\n\n\n<p>in Figure 7.18. Let\u2019s work through this circuit algebraically to show that it<\/p>\n\n\n\n<p>|xi<\/p>\n\n\n\n<p>\u2022 \u2022 \u2022<\/p>\n\n\n\n<p>|yi<\/p>\n\n\n\n<p>\u2022 \u2022<\/p>\n\n\n\n<p>|zi<\/p>\n\n\n\n<p>Q<\/p>\n\n\n\n<p>Q<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>Q<\/p>\n\n\n\n<p>FIGURE 7.18: Implementation of C-C-U gate.<\/p>\n\n\n\n<p>works as expected:<\/p>\n\n\n\n<p>|xi|yi|zi \u2192 |xi|yi Q<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>|zi<\/p>\n\n\n\n<p>\u2192 |xi|x \u2295 yi Q<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>|zi<\/p>\n\n\n\n<p>\u2192 |xi|x \u2295 yi (Q<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>)<\/p>\n\n\n\n<p>x\u2295y<\/p>\n\n\n\n<p>Q<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>|zi<\/p>\n\n\n\n<p>\u2192 |xi|yi (Q<\/p>\n\n\n\n<p>\u22121<\/p>\n\n\n\n<p>)<\/p>\n\n\n\n<p>x\u2295y<\/p>\n\n\n\n<p>Q<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>|zi<\/p>\n\n\n\n<p>\u2192 |xi|yi Q<\/p>\n\n\n\n<p>y<\/p>\n\n\n\n<p>Q<\/p>\n\n\n\n<p>\u2212x\u2295y<\/p>\n\n\n\n<p>Q<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>|zi<\/p>\n\n\n\n<p>The power of Q that acts on |zi in the end is<\/p>\n\n\n\n<p>y \u2212 (x \u2295 y) + x = y \u2212(x + y \u2212 2xy) + x = 2xy.<\/p>\n\n\n\n<p>So the e\ufb00ect of this circuit is<\/p>\n\n\n\n<p>|zi \u2192 Q<\/p>\n\n\n\n<p>2xy<\/p>\n\n\n\n<p>|zi = U<\/p>\n\n\n\n<p>xy<\/p>\n\n\n\n<p>|zi,<\/p>\n\n\n\n<p>which is exactly what we want. We can for instance construct a quantum<\/p>\n\n\n\n<p>To\ufb00oli gate by using Q<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>= X. One such \u201csquare root of NOT\u201d gate is<\/p>\n\n\n\n<p>\u221a<\/p>\n\n\n\n<p>X =<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>&#8220;<\/p>\n\n\n\n<p>1 + i 1 \u2212 i<\/p>\n\n\n\n<p>1 \u2212 i 1 + i<\/p>\n\n\n\n<p>#<\/p>\n\n\n\n<p>. (7.27)<\/p>\n\n\n\n<p>Example 7.4.1. A useful question to ask in designing circuits is how to min-<\/p>\n\n\n\n<p>imize the number of basic gates required for a given implementation. In our<\/p>\n\n\n\n<p>construction for the C-C-U gate given above, we require 2 CNOTs plus 2<\/p>\n\n\n\n<p>CNOTs for each C-Q gate, that is a total of 8 CNOTs. Can we be more<\/p>\n\n\n\n<p>frugal? Here is an example from Mermin [48] of a construction for a To\ufb00oli<\/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\/bga3.png\" width=\"685\" height=\"788\"><\/p>\n\n\n\n<p>138 Introduction to Quantum Physics and Information Processing<\/p>\n\n\n\n<p>gate using only 4 CNOT gates. Consider two unitaries A and B such that<\/p>\n\n\n\n<p>A<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>= = B<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>. This means that<\/p>\n\n\n\n<p>A = V<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>XV, B = W<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>XW.<\/p>\n\n\n\n<p>Thus each C-A and C-B gate requires only one CNOT gate and two single-<\/p>\n\n\n\n<p>qubit gates.<\/p>\n\n\n\n<p>You should be able to work out that the circuit of Figure 7.19 implements<\/p>\n\n\n\n<p>a doubly controlled (BA)<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>gate, up to a phase \u03b1.<\/p>\n\n\n\n<p>\u2022 \u2022<\/p>\n\n\n\n<p>&#8220;<\/p>\n\n\n\n<p>1 0<\/p>\n\n\n\n<p>0 e<\/p>\n\n\n\n<p>i\u03b1<\/p>\n\n\n\n<p>#<\/p>\n\n\n\n<p>\u2022 \u2022<\/p>\n\n\n\n<p>B A B A<\/p>\n\n\n\n<p>FIGURE 7.19: E\ufb03cient implementation of a To\ufb00oli gate.<\/p>\n\n\n\n<p>Now<\/p>\n\n\n\n<p>AB = V<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>XV W<\/p>\n\n\n\n<p>\u2020<\/p>\n\n\n\n<p>XW = (\u02c6a \u00b7 ~\u03c3)(<\/p>\n\n\n\n<p>\u02c6<\/p>\n\n\n\n<p>b \u00b7 ~\u03c3)<\/p>\n\n\n\n<p>= \u02c6a \u00b7<\/p>\n\n\n\n<p>\u02c6<\/p>\n\n\n\n<p>b + i(\u02c6a \u00d7<\/p>\n\n\n\n<p>\u02c6<\/p>\n\n\n\n<p>b) \u00b7 ~\u03c3.<\/p>\n\n\n\n<p>If we choose the angle between \u02c6a and<\/p>\n\n\n\n<p>\u02c6<\/p>\n\n\n\n<p>b to be \u03c0\/4, and also let \u02c6a \u00d7<\/p>\n\n\n\n<p>\u02c6<\/p>\n\n\n\n<p>b point<\/p>\n\n\n\n<p>along \u02c6x, then we have<\/p>\n\n\n\n<p>AB = cos<\/p>\n\n\n\n<p>\u03c0<\/p>\n\n\n\n<p>4<\/p>\n\n\n\n<p>+ i sin<\/p>\n\n\n\n<p>\u03c0<\/p>\n\n\n\n<p>4<\/p>\n\n\n\n<p>\u03c3<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>=<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>\u221a<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>( + iX)<\/p>\n\n\n\n<p>(AB)<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>=<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>( + 2iX + (\u2212X)<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>) = iX.<\/p>\n\n\n\n<p>Thus we can regard AB as the square-root of X up to a phase of i. This phase<\/p>\n\n\n\n<p>can be cancelled if we choose \u03b1 = \u2212\u03c0\/2 and this circuit implements a To\ufb00oli<\/p>\n\n\n\n<p>gate with just 4 CNOTs and single-qubit gates.<\/p>\n\n\n\n<p>One can construct multiply controlled U gates, a C<\/p>\n\n\n\n<p>n<\/p>\n\n\n\n<p>-U gate, by a cascad-<\/p>\n\n\n\n<p>ing circuit using n control bits, To\ufb00oli gates and n \u2212 1 auxiliary bits, as in<\/p>\n\n\n\n<p>Figure 7.20.<\/p>\n\n\n\n<p>Verify that this works! The use of the To\ufb00oli gates performs an \u201cAND\u201d of<\/p>\n\n\n\n<p>all the control bits, which \ufb01nally controls the U gate. Also note that all the<\/p>\n\n\n\n<p>auxiliaries can be returned to their original state of |0i by adding the reverse<\/p>\n\n\n\n<p>of each of the actions after obtaining C<\/p>\n\n\n\n<p>n<\/p>\n\n\n\n<p>-U.<\/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\/bga4.png\" width=\"198\" height=\"426\"><\/p>\n\n\n\n<p>Quantum Gates and Circuits 139<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>n\u22121<\/p>\n\n\n\n<p>\u2022<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>n\u22122<\/p>\n\n\n\n<p>\u2022<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>n\u22123<\/p>\n\n\n\n<p>\u2022<\/p>\n\n\n\n<p>n controls<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<p>\u2022<\/p>\n\n\n\n<p>\uf8f1<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f2<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f3<\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<p>\u2022<\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<p>n \u2212 1<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>auxiliaries<\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<p>\u2022<\/p>\n\n\n\n<p>\uf8f1<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f2<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f4<\/p>\n\n\n\n<p>\uf8f3<\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<p>\u2022<\/p>\n\n\n\n<p>y<\/p>\n\n\n\n<p>U<\/p>\n\n\n\n<p>U<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>&#8230;x<\/p>\n\n\n\n<p>n\u22121<\/p>\n\n\n\n<p>y<\/p>\n\n\n\n<p>FIGURE 7.20: Implementation of C<\/p>\n\n\n\n<p>n<\/p>\n\n\n\n<p>-U gate<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We now wish to push the circuit analogy further and explore the possibility of universal quantum gates. Let\u2019s start with single-qubit gates. We\u2019ve seen that these are 2 \u00d72 unitary matrices, which take a point on the Bloch sphere to another. It is easy to see that there are in\ufb01nitely many possible 1-qubit gates. These [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4041,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[496],"tags":[],"class_list":["post-4074","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\/quantum-2.png","_links":{"self":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts\/4074","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=4074"}],"version-history":[{"count":1,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts\/4074\/revisions"}],"predecessor-version":[{"id":4075,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts\/4074\/revisions\/4075"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/media\/4041"}],"wp:attachment":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/media?parent=4074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/categories?post=4074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/tags?post=4074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}