(************** Content-type: application/mathematica ************** CreatedBy='Mathematica 5.1' Mathematica-Compatible Notebook This notebook can be used with any Mathematica-compatible application, such as Mathematica, MathReader or Publicon. The data for the notebook starts with the line containing stars above. To get the notebook into a Mathematica-compatible application, do one of the following: * Save the data starting with the line of stars above into a file with a name ending in .nb, then open the file inside the application; * Copy the data starting with the line of stars above to the clipboard, then use the Paste menu command inside the application. Data for notebooks contains only printable 7-bit ASCII and can be sent directly in email or through ftp in text mode. Newlines can be CR, LF or CRLF (Unix, Macintosh or MS-DOS style). NOTE: If you modify the data for this notebook not in a Mathematica- compatible application, you must delete the line below containing the word CacheID, otherwise Mathematica-compatible applications may try to use invalid cache data. For more information on notebooks and Mathematica-compatible applications, contact Wolfram Research: web: http://www.wolfram.com email: info@wolfram.com phone: +1-217-398-0700 (U.S.) Notebook reader applications are available free of charge from Wolfram Research. *******************************************************************) (*CacheID: 232*) (*NotebookFileLineBreakTest NotebookFileLineBreakTest*) (*NotebookOptionsPosition[ 93299, 2124]*) (*NotebookOutlinePosition[ 93937, 2146]*) (* CellTagsIndexPosition[ 93893, 2142]*) (*WindowFrame->Normal*) Notebook[{ Cell[BoxData[{ \(Quantum\ gates\ II\[IndentingNewLine]\), "\[IndentingNewLine]", \(\((uses\ diagrams\ from\ quantumdiagrams . nb)\)\)}], "Input"], Cell[BoxData[{ \(An\ important\ class\ of\ 2\ - \ Qubit\ gates\ are\ the\ so - called\ controlled\), "\[IndentingNewLine]", \(operation\ \ \ gates . \ Consider\ the\ 2\ - \ qubit\ state\[IndentingNewLine]\), "\[IndentingNewLine]", \(\(\(|\)\(a > \[CircleTimes]\)\(|\)\(\(b\)\(>\)\)\), \ \ \[IndentingNewLine]\[IndentingNewLine]In\ a\ controlled\ gate\ \ qubit\ \ | a > \ is\ called\ the\ control\ bit, \ whereas\ | b > \ is\ called\ the\ target\ \(\(bit\)\(.\)\)\)}], "Input"], Cell[BoxData[ \(Under\ a\ unitary\ transformation\ \((Quantum\ gate)\)\ \ U\)], "Input"], Cell[BoxData[ \(\(\(|\)\(a > \[CircleTimes]\)\(|\)\(\(\(b\)\(>\)\)\ \[RightArrow] \ U\)\(\ \)\(|\)\(a > \[CircleTimes]\)\(|\)\(\(b\)\(>\)\)\)\)], "Input"], Cell[BoxData[ \(In\ controlled\ operations\ U\ has\ the\ form\)], "Input"], Cell[BoxData[ \(U = \(\[Sum]\+\(a = 0\)\%1\(\(|\)\(a > < a\)\(|\)\(\ \)\(\[CircleTimes]\ U\^a\)\) = \(\(|\)\(0 > < 0\)\(|\)\(\ \)\(\(\[CircleTimes]\ U\^0\)\(+\)\)\(\ \)\(|\)\(1 > < 1\)\(|\)\(\ \)\(\[CircleTimes]\ U\^1\)\)\)\)], "Input"], Cell[BoxData[{ \(Here\ \ U\^0\ = \(I\ \ \ and\ U\^1\ = U\), \ \ are\ unitary\ operators\ only\ \ \ acting\ on\ the\ target\ \ \ \ \), "\[IndentingNewLine]", \(qubit\ \(\(space\)\(.\)\(\[IndentingNewLine]\)\)\)}], "Input"], Cell[BoxData[ \(One\ important\ controlled\ opaertion\ is\ called\ the\ Controlled - Not\ \(\(gate\)\(.\)\)\)], "Input"], Cell[BoxData[ \(In\ that\ cases\ U\^0 = I\ \((identity\ operator)\); \ U\^1 = PauliX\ \ or\ X\)], "Input"], Cell[BoxData[{ \(or\[IndentingNewLine]\), "\[IndentingNewLine]", \(Ucontrollednot = \(\(|\)\(0 > < 0\)\(|\)\(\ \)\(\(\[CircleTimes]\ I\)\(+\)\)\(\ \)\(|\)\(1 > < 1\)\(|\)\(\ \)\(\[CircleTimes]\ PauliX\)\)\)}], "Input"], Cell[BoxData[ \(Lets\ construct\ the\ matrix\ representation\ for\ this\ \ \(\(gate\)\(.\)\)\)], "Input"], Cell[BoxData[{ \(\("\";\)\[IndentingNewLine]\), "\[IndentingNewLine]", \(Needs["\"]\)}], "Input"], Cell[CellGroupData[{ Cell[BoxData[ \(\(\(\[IndentingNewLine]\)\(\(c0 = {1, 0};\)\[IndentingNewLine]\[IndentingNewLine] \("\<(controlled qubit in state |0>)\>";\)\)\)\)], "Input"], Cell[BoxData[ \(First\)], "Output"] }, Open ]], Cell[BoxData[{ \(\(c1 = {0, 1};\)\[IndentingNewLine]\), "\[IndentingNewLine]", \(\("\<(controlled qubit in state |1>)\>";\)\)}], "Input"], Cell[BoxData[{ \(\(t0 = {1, 0};\)\[IndentingNewLine]\), "\[IndentingNewLine]", \(\("\<(target qubit in state |0>)\>";\)\)}], "Input"], Cell[BoxData[{ \(\(t1 = {0, 1};\)\[IndentingNewLine]\), "\[IndentingNewLine]", \(\("\<(target qubit in state |1>)\>";\)\)}], "Input"], Cell[CellGroupData[{ Cell[BoxData[{ \(\(\*"\"\<|00> = |0\!\(\( > \_c\)\)\[CircleTimes]|0\!\(\( > \_t\)\) \ \>\"";\)\[IndentingNewLine]\), "\[IndentingNewLine]", \(MatrixForm[bit00 = Flatten[Outer[Times, c0, t0]]]\)}], "Input"], Cell[BoxData[ TagBox[ RowBox[{"(", "\[NoBreak]", TagBox[GridBox[{ {"1"}, {"0"}, {"0"}, {"0"} }, RowSpacings->1, ColumnAlignments->{Left}], Column], "\[NoBreak]", ")"}], Function[ BoxForm`e$, MatrixForm[ BoxForm`e$]]]], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[{ \(\(\*"\"\<|01> = |0\!\(\( > \_c\)\)\[CircleTimes]|1\!\(\( > \_t\)\) \ \>\"";\)\[IndentingNewLine]\), "\[IndentingNewLine]", \(MatrixForm[bit01 = Flatten[Outer[Times, c0, t1]]]\)}], "Input"], Cell[BoxData[ TagBox[ RowBox[{"(", "\[NoBreak]", TagBox[GridBox[{ {"0"}, {"1"}, {"0"}, {"0"} }, RowSpacings->1, ColumnAlignments->{Left}], Column], "\[NoBreak]", ")"}], Function[ BoxForm`e$, MatrixForm[ BoxForm`e$]]]], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[{ \(\(\*"\"\<|01> = |1\!\(\( > \_c\)\)\[CircleTimes]|0\!\(\( > \_t\)\) \ \>\"";\)\[IndentingNewLine]\), "\[IndentingNewLine]", \(MatrixForm[bit10 = Flatten[Outer[Times, c1, t0]]]\)}], "Input"], Cell[BoxData[ TagBox[ RowBox[{"(", "\[NoBreak]", TagBox[GridBox[{ {"0"}, {"0"}, {"1"}, {"0"} }, RowSpacings->1, ColumnAlignments->{Left}], Column], "\[NoBreak]", ")"}], Function[ BoxForm`e$, MatrixForm[ BoxForm`e$]]]], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[{ \(\(\*"\"\<|11> = |1\!\(\( > \_c\)\)\[CircleTimes]|1\!\(\( > \_t\)\) \ \>\"";\)\[IndentingNewLine]\), "\[IndentingNewLine]", \(MatrixForm[bit11 = Flatten[Outer[Times, c1, t1]]]\)}], "Input"], Cell[BoxData[ TagBox[ RowBox[{"(", "\[NoBreak]", TagBox[GridBox[{ {"0"}, {"0"}, {"0"}, {"1"} }, RowSpacings->1, ColumnAlignments->{Left}], Column], "\[NoBreak]", ")"}], Function[ BoxForm`e$, MatrixForm[ BoxForm`e$]]]], "Output"] }, Open ]], Cell[BoxData[ \(\("\<0| \[CircleTimes] Id+ |1><1| \[CircleTimes] \ PauliX\>";\)\)], "Input"], Cell[BoxData[ \(\(\(|\)\(0 > < 0\)\(|\)\)\)], "Input"], Cell[CellGroupData[{ Cell[BoxData[ \(x0 = Outer[Times, c0, c0]\)], "Input"], Cell[BoxData[ \({{1, 0}, {0, 0}}\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(Id = {{1, 0}, {0, 1}}\)], "Input"], Cell[BoxData[ \({{1, 0}, {0, 1}}\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[{ \(\("\<|1><1|\>";\)\[IndentingNewLine]\), "\[IndentingNewLine]", \(x1 = Outer[Times, c1, c1]\)}], "Input"], Cell[BoxData[ \({{0, 0}, {0, 1}}\)], "Output"] }, Open ]], Cell[BoxData[ \(\(PauliX = {{0, 1}, {1, 0}};\)\)], "Input"], Cell[CellGroupData[{ Cell[BoxData[{ \(Outer[Times, x0, Id]\), "\[IndentingNewLine]", \(operator0 = BlockMatrix[%]\)}], "Input"], Cell[BoxData[ \({{{{1, 0}, {0, 1}}, {{0, 0}, {0, 0}}}, {{{0, 0}, {0, 0}}, {{0, 0}, {0, 0}}}}\)], "Output"], Cell[BoxData[ \({{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}}\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[{ \(Outer[Times, x1, PauliX]\), "\[IndentingNewLine]", \(operator1 = BlockMatrix[%]\)}], "Input"], Cell[BoxData[ \({{{{0, 0}, {0, 0}}, {{0, 0}, {0, 0}}}, {{{0, 0}, {0, 0}}, {{0, 1}, {1, 0}}}}\)], "Output"], Cell[BoxData[ \({{0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 1}, {0, 0, 1, 0}}\)], "Output"] }, Open ]], Cell[BoxData[ \(\("\<0| \[CircleTimes] Id+ |1><1| \[CircleTimes] \ PauliX\>";\)\)], "Input"], Cell[CellGroupData[{ Cell[BoxData[ \(Ucnot = operator0 + operator1\)], "Input"], Cell[BoxData[ \({{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 0, 1}, {0, 0, 1, 0}}\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(MatrixForm[%]\)], "Input"], Cell[BoxData[ TagBox[ RowBox[{"(", "\[NoBreak]", GridBox[{ {"1", "0", "0", "0"}, {"0", "1", "0", "0"}, {"0", "0", "0", "1"}, {"0", "0", "1", "0"} }, RowSpacings->1, ColumnSpacings->1, ColumnAlignments->{Left}], "\[NoBreak]", ")"}], Function[ BoxForm`e$, MatrixForm[ BoxForm`e$]]]], "Output"] }, Open ]], Cell[BoxData[ \(The\ diagramatic\ representation\ for\ Controlled\ operation\)], "Input"], Cell[CellGroupData[{ Cell[BoxData[ \(Show[Graphics[DrawU[{1, {1, 2}}]]]\)], "Input"], Cell[GraphicsData["PostScript", "\<\ %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart /Mabs { Mgmatrix idtransform Mtmatrix dtransform } bind def /Mabsadd { Mabs 3 -1 roll add 3 1 roll add exch } bind def %% Graphics %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 10 scalefont setfont % Scaling calculations -0.452381 0.952381 -0.338447 0.470883 [ [ 0 0 0 0 ] [ 1 .61803 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath 0 g .5 Mabswid [ ] 0 setdash .2619 .01472 m .2619 .25016 L .7381 .25016 L .7381 .01472 L .2619 .01472 L s gsave .5 .13244 -66.5938 -11 Mabsadd m 1 1 Mabs scale currentpoint translate 0 22 translate 1 -1 scale /g { setgray} bind def /k { setcmykcolor} bind def /p { gsave} bind def /r { setrgbcolor} bind def /w { setlinewidth} bind def /C { curveto} bind def /F { fill} bind def /L { lineto} bind def /rL { rlineto} bind def /P { grestore} bind def /s { stroke} bind def /S { show} bind def /N {currentpoint 3 -1 roll show moveto} bind def /Msf { findfont exch scalefont [1 0 0 -1 0 0 ] makefont setfont} bind def /m { moveto} bind def /Mr { rmoveto} bind def /Mx {currentpoint exch pop moveto} bind def /My {currentpoint pop exch moveto} bind def /X {0 rmoveto} bind def /Y {0 exch rmoveto} bind def 63.000 14.000 moveto %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 12.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor 0.000 0.000 rmoveto 63.000 14.000 moveto %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 12.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor (U) show 70.188 14.000 moveto %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 12.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor 0.000 0.000 rmoveto 1.000 setlinewidth grestore .02381 .13244 m .2619 .13244 L s .7381 .13244 m .97619 .13244 L s 6 Mabswid .5 .60332 Mdot .5 Mabswid .5 .25016 m .5 .60332 L s .02381 .13244 m .2619 .13244 L s .02381 .60332 m .97619 .60332 L s % End of Graphics MathPictureEnd \ \>"], "Graphics", ImageSize->{288, 177.938}, ImageMargins->{{43, 0}, {0, 0}}, ImageRegion->{{0, 1}, {0, 1}}, ImageCache->GraphicsData["Bitmap", "\<\ CF5dJ6E]HGAYHf4PAg9QL6QYHgooooo`00SOooool6o`0008gooooo0007oooooooo00004_l00008 ooooo`00SOooool6o`0008gooooo002=ooooo`Ko0000SOooool008kooooo1?l0002>ooooo`00oooo oolQooooo`00\ \>"], ImageRangeCache->{{{0, 287}, {176.938, 0}} -> {0.473698, 0.718743, \ 0.00366761, 0.0074179}}], Cell[BoxData[ TagBox[\(\[SkeletonIndicator] Graphics \[SkeletonIndicator]\), False, Editable->False]], "Output"] }, Open ]], Cell[BoxData[{ \(The\ top\ wire\ represents\ the\ control\ qubit, \ and\ the\ bottom\ wire\), "\[IndentingNewLine]", \(represents\ the\ target\ qubit; \ For\ this\ particular, \ CNOT, \ \(\(gate\ U\)\(=\)\(PauliX\)\(\ \)\)\)}], "Input"], Cell[BoxData[ \(Using\ the\ above\ gates\ lets\ find\ the\ truth\ table\)], "Input"], Cell[CellGroupData[{ Cell[BoxData[{ \(bit00\), "\[IndentingNewLine]", \(Ucnot . bit00\)}], "Input"], Cell[BoxData[ \({1, 0, 0, 0}\)], "Output"], Cell[BoxData[ \({1, 0, 0, 0}\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[{ \(bit01\), "\[IndentingNewLine]", \(Ucnot . bit01\)}], "Input"], Cell[BoxData[ \({0, 1, 0, 0}\)], "Output"], Cell[BoxData[ \({0, 1, 0, 0}\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[{ \(bit10\), "\[IndentingNewLine]", \(Ucnot . bit10\)}], "Input"], Cell[BoxData[ \({0, 0, 1, 0}\)], "Output"], Cell[BoxData[ \({0, 0, 0, 1}\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[{ \(bit11\), "\[IndentingNewLine]", \(Ucnot . bit11\)}], "Input"], Cell[BoxData[ \({0, 0, 0, 1}\)], "Output"], Cell[BoxData[ \({0, 0, 1, 0}\)], "Output"] }, Open ]], Cell[BoxData[ \(Or\)], "Input"], Cell[BoxData[{ \(\(\(|\)\(\(\(00\)\(>\)\)\(\ \ \ \ \)\(\[RightArrow]\)\)\(\ \ \)\(|\)\(\(00\)\(>\)\)\)\), "\[IndentingNewLine]", \(\(\(|\)\(\(\(01\)\(>\)\)\(\ \ \ \)\(\[RightArrow]\)\)\(\ \ \ \)\(|\)\(\(00\)\(>\)\)\)\), "\[IndentingNewLine]", \(\(\(|\)\(\(10\)\(>\)\)\)\ \ \ \[Rule] \ \(\(|\)\(\(11\)\(>\)\)\)\), "\ \[IndentingNewLine]", \(\(\(|\)\(\(\(11\)\(>\)\)\(\ \ \)\(\[RightArrow]\)\)\(\ \ \ \ \)\(|\)\(\(10\)\(>\)\)\)\)}], "Input"], Cell[CellGroupData[{ Cell[BoxData[{ \(\("\";\)\[IndentingNewLine]\), "\ \[IndentingNewLine]", \(\("\";\)\), "\[IndentingNewLine]", \(Show[Graphics[DrawXOR[{1, {1, 2}}]]]\)}], "Input"], Cell[GraphicsData["PostScript", "\<\ %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart /Mabs { Mgmatrix idtransform Mtmatrix dtransform } bind def /Mabsadd { Mabs 3 -1 roll add 3 1 roll add exch } bind def %% Graphics %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 10 scalefont setfont % Scaling calculations -0.452381 0.952381 -0.46687 0.535094 [ [ 0 0 0 0 ] [ 1 .61803 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath 0 g .5 Mabswid [ ] 0 setdash newpath matrix currentmatrix 0.0952381 0.0535094 scale 5.25 1.27492 1 0 365.73 arc setmatrix s 6 Mabswid .5 .60332 Mdot .5 Mabswid .5 .01472 m .5 .60332 L s .02381 .06822 m .97619 .06822 L s .02381 .60332 m .97619 .60332 L s % End of Graphics MathPictureEnd \ \>"], "Graphics", ImageSize->{288, 177.938}, ImageMargins->{{43, 0}, {0, 0}}, ImageRegion->{{0, 1}, {0, 1}}, ImageCache->GraphicsData["Bitmap", "\<\ CF5dJ6E]HGAYHf4PAg9QL6QYHgooooo`00Soooool00ol0 003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooo ooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2> ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00 Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool0 0ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003o ooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooooooo o`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>oooo o`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Sooo ool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0 003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooo ooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2> ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00 Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool0 0ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003o ooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooooooo o`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>oooo o`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Sooo ool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0 003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooo ooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2> ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00 Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool0 0ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003o ooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooooooo o`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>oooo o`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Sooo ool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0 003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooo ooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2> ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00 Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool0 0ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003o ooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooooooo o`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>oooo o`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Sooo ool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0 003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooo ooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2> ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00 Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool0 0ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003o ooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooooooo o`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>oooo o`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Sooo ool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0 003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooo ooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2> ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00 Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool0 0ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003o ooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooooooo o`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>oooo o`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Sooo ool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0 003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooo ooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2> ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00 Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool0 0ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003o ooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooooooo o`2>ooooo`00S_ooool4o`0008kooooo002=ooooo`Ko0000SOooool000Ooooooool0000Bo`0000So oooo002=ooooo`Ko0000SOooool008gooooo1_l0002=ooooo`00S_ooool4o`0008kooooo003ooooo ob7ooooo0000\ \>"], ImageRangeCache->{{{0, 287}, {176.938, 0}} -> {0.473698, 0.872495, \ 0.00366761, 0.00652776}}], Cell[BoxData[ TagBox[\(\[SkeletonIndicator] Graphics \[SkeletonIndicator]\), False, Editable->False]], "Output"] }, Open ]], Cell[BoxData[ \(Exercise\ : \ lets\ construct\ the\ following\ gate\)], "Input"], Cell[CellGroupData[{ Cell[BoxData[ \(\(\(\[IndentingNewLine]\)\(Show[ Graphics[DrawZ[{1, {1, 2}}]]]\)\)\)], "Input"], Cell[GraphicsData["PostScript", "\<\ %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart /Mabs { Mgmatrix idtransform Mtmatrix dtransform } bind def /Mabsadd { Mabs 3 -1 roll add 3 1 roll add exch } bind def %% Graphics %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 10 scalefont setfont % Scaling calculations -0.452381 0.952381 -0.338447 0.470883 [ [ 0 0 0 0 ] [ 1 .61803 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath 0 g .5 Mabswid [ ] 0 setdash .2619 .01472 m .2619 .25016 L .7381 .25016 L .7381 .01472 L .2619 .01472 L s gsave .5 .13244 -66.5938 -11 Mabsadd m 1 1 Mabs scale currentpoint translate 0 22 translate 1 -1 scale /g { setgray} bind def /k { setcmykcolor} bind def /p { gsave} bind def /r { setrgbcolor} bind def /w { setlinewidth} bind def /C { curveto} bind def /F { fill} bind def /L { lineto} bind def /rL { rlineto} bind def /P { grestore} bind def /s { stroke} bind def /S { show} bind def /N {currentpoint 3 -1 roll show moveto} bind def /Msf { findfont exch scalefont [1 0 0 -1 0 0 ] makefont setfont} bind def /m { moveto} bind def /Mr { rmoveto} bind def /Mx {currentpoint exch pop moveto} bind def /My {currentpoint pop exch moveto} bind def /X {0 rmoveto} bind def /Y {0 exch rmoveto} bind def 63.000 14.000 moveto %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 12.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor 0.000 0.000 rmoveto 63.000 14.000 moveto %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 12.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor (Z) show 70.188 14.000 moveto %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 12.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor 0.000 0.000 rmoveto 1.000 setlinewidth grestore .02381 .13244 m .2619 .13244 L s .7381 .13244 m .97619 .13244 L s 6 Mabswid .5 .60332 Mdot .5 Mabswid .5 .25016 m .5 .60332 L s .02381 .13244 m .2619 .13244 L s .02381 .60332 m .97619 .60332 L s % End of Graphics MathPictureEnd \ \>"], "Graphics", ImageSize->{288, 177.938}, ImageMargins->{{43, 0}, {0, 0}}, ImageRegion->{{0, 1}, {0, 1}}, ImageCache->GraphicsData["Bitmap", "\<\ CF5dJ6E]HGAYHf4PAg9QL6QYHgooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003o ooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooooooo o`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>oooo o`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Sooo ool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0 003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooo ooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2> ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00 Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool0 0ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003o ooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooooooo o`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>oooo o`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Sooo ool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0 003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooo ooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2> ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00 Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool0 0ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003o ooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooooooo o`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>oooo o`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Sooo ool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0 003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooo ooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2> ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00 Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool0 0ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003o ooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooooooo o`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>oooo o`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Sooo ool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0 003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooo ooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2> ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00 Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool0 0ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003o ooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooooooo o`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>oooo o`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Sooo ool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0 003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003ooooo ooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2> ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00Soooool00ol0003oooooooooo`2>ooooo`00 S_ooool4o`0008kooooo002=ooooo`Ko0000SOooool000Ooooooool0000Bo`0000Sooooo002=oooo o`Ko0000SOooool008gooooo1_l0002=ooooo`00S_ooool4o`0008kooooo003oooooob7ooooo0000 \ \>"], ImageRangeCache->{{{0, 287}, {176.938, 0}} -> {0.473698, 0.718743, \ 0.00366761, 0.0074179}}], Cell[BoxData[ TagBox[\(\[SkeletonIndicator] Graphics \[SkeletonIndicator]\), False, Editable->False]], "Output"] }, Open ]], Cell[BoxData[ \(Excersice\ 4.18\ In\ \ Textbook\ show\)], "Input"], Cell[BoxData[ \(Show\ that\ the\ above\ gate\ is\ also\ equal\ to\)], "Input"], Cell[CellGroupData[{ Cell[BoxData[ \(\(\(Show[ Graphics[DrawZ[{1, {2, 1}}]]]\)\(\[IndentingNewLine]\)\(\[IndentingNewLine]\) \)\)], "Input"], Cell[GraphicsData["PostScript", "\<\ %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart /Mabs { Mgmatrix idtransform Mtmatrix dtransform } bind def /Mabsadd { Mabs 3 -1 roll add 3 1 roll add exch } bind def %% Graphics %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 10 scalefont setfont % Scaling calculations -0.452381 0.952381 -0.456168 0.470883 [ [ 0 0 0 0 ] [ 1 .61803 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath 0 g .5 Mabswid [ ] 0 setdash .2619 .36788 m .2619 .60332 L .7381 .60332 L .7381 .36788 L .2619 .36788 L s gsave .5 .4856 -66.5938 -11 Mabsadd m 1 1 Mabs scale currentpoint translate 0 22 translate 1 -1 scale /g { setgray} bind def /k { setcmykcolor} bind def /p { gsave} bind def /r { setrgbcolor} bind def /w { setlinewidth} bind def /C { curveto} bind def /F { fill} bind def /L { lineto} bind def /rL { rlineto} bind def /P { grestore} bind def /s { stroke} bind def /S { show} bind def /N {currentpoint 3 -1 roll show moveto} bind def /Msf { findfont exch scalefont [1 0 0 -1 0 0 ] makefont setfont} bind def /m { moveto} bind def /Mr { rmoveto} bind def /Mx {currentpoint exch pop moveto} bind def /My {currentpoint pop exch moveto} bind def /X {0 rmoveto} bind def /Y {0 exch rmoveto} bind def 63.000 14.000 moveto %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 12.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor 0.000 0.000 rmoveto 63.000 14.000 moveto %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 12.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor (Z) show 70.188 14.000 moveto %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 12.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor 0.000 0.000 rmoveto 1.000 setlinewidth grestore .02381 .4856 m .2619 .4856 L s .7381 .4856 m .97619 .4856 L s 6 Mabswid .5 .01472 Mdot .5 Mabswid .5 .60332 m .5 .01472 L s .02381 .4856 m .2619 .4856 L s .02381 .01472 m .97619 .01472 L s % End of Graphics MathPictureEnd \ \>"], "Graphics", ImageSize->{288, 177.938}, ImageMargins->{{43, 0}, {0, 0}}, ImageRegion->{{0, 1}, {0, 1}}, ImageCache->GraphicsData["Bitmap", "\<\ CF5dJ6E]HGAYHf4PAg9QL6QYHg"], ImageRangeCache->{{{0, 287}, {176.938, 0}} -> {0.473698, 0.968744, \ 0.00366761, 0.0074179}}], Cell[BoxData[ TagBox[\(\[SkeletonIndicator] Graphics \[SkeletonIndicator]\), False, Editable->False]], "Output"] }, Open ]], Cell[BoxData[{ \(We\ can\ generalize\ the\ above\ 2 - qubit\ conntrolled\ gate\ \ so\), "\[IndentingNewLine]", \(that\ we\ have, \ lets\ say\ n, \ control\ qubits, \ and\ \ k\ target\ \ \(\(qubits\)\(.\)\)\)}], "Input"], Cell[BoxData[{ \(If\ U\ is\ a\ unitary\ operator\ in\ a\ Hilbert\ space\ of\ k\ - dimension\), "\[IndentingNewLine]", \(i . e . \ for\ k = 3, \ we\ would\ have\)}], "Input"], Cell[BoxData[""], "Input"], Cell[CellGroupData[{ Cell[BoxData[ \(Show[Qgate3[1, 1, U]]\)], "Input"], Cell[GraphicsData["PostScript", "\<\ %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart /Mabs { Mgmatrix idtransform Mtmatrix dtransform } bind def /Mabsadd { Mabs 3 -1 roll add 3 1 roll add exch } bind def %% Graphics %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 10 scalefont setfont % Scaling calculations -0.214286 0.238095 -0.132436 0.294302 [ [ 0 0 0 0 ] [ 1 .61803 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath 0 g 1 Mabswid [ ] 0 setdash .02381 .08829 m .2619 .08829 L s .02381 .30902 m .2619 .30902 L s .02381 .45617 m .2619 .45617 L s .2619 .01472 m .7381 .01472 L s .7381 .01472 m .7381 .60332 L s .7381 .60332 m .2619 .60332 L s .2619 .60332 m .2619 .01472 L s gsave .5 .30902 -72.5938 -15.2812 Mabsadd m 1 1 Mabs scale currentpoint translate 0 30.5625 translate 1 -1 scale /g { setgray} bind def /k { setcmykcolor} bind def /p { gsave} bind def /r { setrgbcolor} bind def /w { setlinewidth} bind def /C { curveto} bind def /F { fill} bind def /L { lineto} bind def /rL { rlineto} bind def /P { grestore} bind def /s { stroke} bind def /S { show} bind def /N {currentpoint 3 -1 roll show moveto} bind def /Msf { findfont exch scalefont [1 0 0 -1 0 0 ] makefont setfont} bind def /m { moveto} bind def /Mr { rmoveto} bind def /Mx {currentpoint exch pop moveto} bind def /My {currentpoint pop exch moveto} bind def /X {0 rmoveto} bind def /Y {0 exch rmoveto} bind def 63.000 23.562 moveto %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 32.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor (U) show 1.000 setlinewidth grestore .7381 .30902 m .97619 .30902 L s .7381 .08829 m .97619 .08829 L s .7381 .45617 m .97619 .45617 L s % End of Graphics MathPictureEnd \ \>"], "Graphics", ImageSize->{288, 177.938}, ImageMargins->{{43, 0}, {0, 0}}, ImageRegion->{{0, 1}, {0, 1}}, ImageCache->GraphicsData["Bitmap", "\<\ CF5dJ6E]HGAYHf4PAg9QL6QYHg_ooool2o`0000[ooooo0_l0000moooo o`03o`000?oooooooooo04[ooooo001;ooooo`03o`000?oooooooooo03[ooooo0_l0000:ooooo`;o 0000?Oooool00ol0003oooooooooo`1:ooooo`00Boooool00ol0003oooooooooo`0jooooo`;o0000 2_ooool2o`0003gooooo00?o0000ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0>_oo ool2o`0000[ooooo0_l0000mooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`000?oooooo oooo03[ooooo0_l0000:ooooo`;o0000?Oooool00ol0003oooooooooo`1:ooooo`00Boooool00ol0 003oooooooooo`0jooooo`;o00002_ooool2o`0003gooooo00?o0000ooooooooool0B_ooool004_o oooo00?o0000ooooooooool0>_ooool2o`0000[ooooo0_l0000mooooo`03o`000?oooooooooo04[o oooo001;ooooo`03o`000?oooooooooo03[ooooo0_l0000:ooooo`;o0000?Oooool00ol0003ooooo ooooo`1:ooooo`00Boooool00ol0003oooooooooo`0hooooo`03ob4Q8Ol0003o000000?o000000?o ?ooool00olQ8B7o0000o`000003 o`000003oc8b<_oooooooooo00;ooooo00?o8B4Qo`000?l000000ol000000olQ8B7oooooooooo`0i ooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`000?oooooooooo08Gooooo00?o0000oooo ooooool0B_ooool004_ooooo00?o0000ooooooooool0QOooool00ol0003oooooooooo`1:ooooo`00 Boooool00ol0003oooooooooo`25ooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`000?oo oooooooo08Gooooo00?o0000ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0QOooool0 0ol0003oooooooooo`1:ooooo`00Boooool00ol0003oooooooooo`25ooooo`03o`000?oooooooooo 04[ooooo001;ooooo`03o`000?oooooooooo08Gooooo00?o0000ooooooooool0B_ooool004_ooooo 00?o0000ooooooooool0QOooool00ol0003oooooooooo`1:ooooo`00Boooool00ol0003ooooooooo o`25ooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`000?oooooooooo08Gooooo00?o0000 ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0QOooool00ol0003oooooooooo`1:oooo o`00Boooool00ol0003oooooooooo`25ooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`00 0?oooooooooo08Gooooo00?o0000ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0QOoo ool00ol0003oooooooooo`1:ooooo`00Boooool00ol0003oooooooooo`25ooooo`03o`000?oooooo oooo04[ooooo001;ooooo`03o`000?oooooooooo08Gooooo00?o0000ooooooooool0B_ooool004_o oooo00?o0000ooooooooool0QOooool00ol0003oooooooooo`1:ooooo`00Boooool00ol0003ooooo ooooo`25ooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`000?oooooooooo08Gooooo00?o 0000ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0QOooool00ol0003oooooooooo`1: ooooo`00Boooool00ol0003oooooooooo`25ooooo`03o`000?oooooooooo04[ooooo001;ooooo`03 o`000?oooooooooo08Gooooo00?o0000ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0 QOooool00ol0003oooooooooo`1:ooooo`00Boooool00ol0003oooooooooo`25ooooo`03o`000?oo oooooooo04[ooooo001;ooooo`03o`000?oooooooooo08Gooooo00?o0000ooooooooool0B_ooool0 04_ooooo00?o0000ooooooooool0QOooool00ol0003oooooooooo`1:ooooo`00Boooool00ol0003o ooooooooo`25ooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`000?oooooooooo08Gooooo 00?o0000ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0QOooool00ol0003ooooooooo o`1:ooooo`00Boooool00ol0003oooooooooo`25ooooo`03o`000?oooooooooo04[ooooo0007oooo odGo0000Qooooom5o`0000Sooooo001;ooooo`03o`000?oooooooooo08Gooooo00?o0000oooooooo ool0B_ooool004_ooooo00?o0000ooooooooool0QOooool00ol0003oooooooooo`1:ooooo`00Booo ool00ol0003oooooooooo`25ooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`000?oooooo oooo08Gooooo00?o0000ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0QOooool00ol0 003oooooooooo`1:ooooo`00Boooool00ol0003oooooooooo`25ooooo`03o`000?oooooooooo04[o oooo001;ooooo`03o`000?oooooooooo08Gooooo00?o0000ooooooooool0B_ooool004_ooooo00?o 0000ooooooooool0QOooool00ol0003oooooooooo`1:ooooo`00Boooool00ol0003oooooooooo`25 ooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`000?oooooooooo08Gooooo00?o0000oooo ooooool0B_ooool004_ooooo00?o0000ooooooooool0QOooool00ol0003oooooooooo`1:ooooo`00 Boooool00ol0003oooooooooo`25ooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`000?oo oooooooo08Gooooo00?o0000ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0QOooool0 0ol0003oooooooooo`1:ooooo`00Boooool00ol0003oooooooooo`25ooooo`03o`000?oooooooooo 04[ooooo001;ooooo`03o`000?oooooooooo08Gooooo00?o0000ooooooooool0B_ooool004_ooooo 00?o0000ooooooooool0QOooool00ol0003oooooooooo`1:ooooo`00Boooool00ol0003ooooooooo o`25ooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`000?oooooooooo08Gooooo00?o0000 ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0QOooool00ol0003oooooooooo`1:oooo o`00Boooool00ol0003oooooooooo`25ooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`00 0?oooooooooo08Gooooo00?o0000ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0QOoo ool00ol0003oooooooooo`1:ooooo`00Boooool00ol0003oooooooooo`25ooooo`03o`000?oooooo oooo04[ooooo001;ooooo`03o`000?oooooooooo08Gooooo00?o0000ooooooooool0B_ooool004_o oooo00?o0000ooooooooool0QOooool00ol0003oooooooooo`1:ooooo`00Boooool00ol0003ooooo ooooo`25ooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`000?oooooooooo08Gooooo00?o 0000ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0QOooool00ol0003oooooooooo`1: ooooo`00Boooool00ol0003oooooooooo`25ooooo`03o`000?oooooooooo04[ooooo001;ooooo`03 o`000?oooooooooo08Gooooo00?o0000ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0 QOooool00ol0003oooooooooo`1:ooooo`00Boooool00ol0003oooooooooo`25ooooo`03o`000?oo oooooooo04[ooooo001;ooooo`03o`000?oooooooooo08Gooooo00?o0000ooooooooool0B_ooool0 04_ooooo00?o0000ooooooooool0QOooool00ol0003oooooooooo`1:ooooo`00Boooool00ol0003o ooooooooo`25ooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`000?oooooooooo08Gooooo 00?o0000ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0QOooool00ol0003ooooooooo o`1:ooooo`00Boooool00ol0003oooooooooo`25ooooo`03o`000?oooooooooo04[ooooo001;oooo o`03o`000?oooooooooo08Gooooo00?o0000ooooooooool0B_ooool004_ooooo00?o0000oooooooo ool0QOooool00ol0003oooooooooo`1:ooooo`00Booooon9o`0004cooooo003oooooob7ooooo003o ooooob7ooooo003oooooob7ooooo003oooooob7ooooo0000\ \>"], ImageRangeCache->{{{0, 287}, {176.938, 0}} -> {0.894793, 0.44999, \ 0.0146705, 0.0118686}}], Cell[BoxData[ TagBox[\(\[SkeletonIndicator] Graphics \[SkeletonIndicator]\), False, Editable->False]], "Output"] }, Open ]], Cell[BoxData[ \(and\ we\ have\ n\ control\ qubits, \ then\ we\ define\)], "Input"], Cell[BoxData[ \(\(C\^n\) \((U)\) | \(\(\(x\_1\ x\_2 ... \) x\_n\)\(>\)\) | \(\(\[Psi]\)\(>=\)\) | \(x\_1\ x\_2 ... \) x\_n > U\^\((\(x\_1\ x\_2 ... \) x\_n)\) | \(\(\[Psi]\)\(>\)\)\)], "Input"], Cell[BoxData[{ \(Here\ the\ string\ in\ the\ exponent\ \ \((\(x\_1\ x\_2 ... \) x\_n)\)\ is\ a\ product\), "\[IndentingNewLine]", \(of\ them\ \((in\ binary)\) . \ Its\ value\ is\ either\ 0\ or\ 1. \ If\ it\ is\), \ "\[IndentingNewLine]", \(zero\ then\ U = I\ is\ the\ identity\ acting\ on\ the\ space\ of\ k\ target\), "\ \[IndentingNewLine]", \(qubits . \ If\ all\ bits\ have\ the\ value\ 1, \ then\ U\ acts\ on\ the\ target\ \(\(subspace\)\(.\)\)\)}], "Input"], Cell[BoxData[ \(Our\ 2 - qubit\ control\ notgate\ is\ represented\ by\)], "Input"], Cell[BoxData[ \(\(C\^1\) \((PauliX)\)\ \ or\ \ \(C\^1\) \((X)\), \ we\ also\ consider\ \ \ \(C\^1\) \((Z)\)\)], "Input"], Cell[BoxData[ \(\(\(\[IndentingNewLine]\)\(\(\(C\^2\) \((U)\)\ \ \ would\ look\ \ like\)\(\[IndentingNewLine]\) \)\)\)], "Input"], Cell[CellGroupData[{ Cell[BoxData[ \(\(\(Show[Graphics[DrawT[{3, {2.5, 4}}]]]\)\(\[IndentingNewLine]\) \)\)], "Input"], Cell[GraphicsData["PostScript", "\<\ %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart /Mabs { Mgmatrix idtransform Mtmatrix dtransform } bind def /Mabsadd { Mabs 3 -1 roll add 3 1 roll add exch } bind def %% Graphics %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 10 scalefont setfont % Scaling calculations -0.214286 0.238095 0.0147151 0.130801 [ [ 0 0 0 0 ] [ 1 .61803 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath 0 g .5 Mabswid [ ] 0 setdash .02381 .11282 m .2619 .11282 L s .02381 .21092 m .2619 .21092 L s .02381 .27632 m .2619 .27632 L s .2619 .08012 m .7381 .08012 L s .7381 .08012 m .7381 .34172 L s .7381 .34172 m .2619 .34172 L s .2619 .34172 m .2619 .08012 L s gsave .5 .21092 -72.5938 -15.2812 Mabsadd m 1 1 Mabs scale currentpoint translate 0 30.5625 translate 1 -1 scale /g { setgray} bind def /k { setcmykcolor} bind def /p { gsave} bind def /r { setrgbcolor} bind def /w { setlinewidth} bind def /C { curveto} bind def /F { fill} bind def /L { lineto} bind def /rL { rlineto} bind def /P { grestore} bind def /s { stroke} bind def /S { show} bind def /N {currentpoint 3 -1 roll show moveto} bind def /Msf { findfont exch scalefont [1 0 0 -1 0 0 ] makefont setfont} bind def /m { moveto} bind def /Mr { rmoveto} bind def /Mx {currentpoint exch pop moveto} bind def /My {currentpoint pop exch moveto} bind def /X {0 rmoveto} bind def /Y {0 exch rmoveto} bind def 63.000 23.562 moveto %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 32.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor (U) show 1.000 setlinewidth grestore .7381 .21092 m .97619 .21092 L s .7381 .11282 m .97619 .11282 L s .7381 .27632 m .97619 .27632 L s 6 Mabswid .5 .53792 Mdot .5 .60332 Mdot .5 Mabswid .5 .37442 m .5 .53792 L s .5 .53792 m .5 .60332 L s .38095 .34172 m .44048 .34172 L s .38095 .60332 m .61905 .60332 L s .38095 .53792 m .61905 .53792 L s % End of Graphics MathPictureEnd \ \>"], "Graphics", ImageSize->{288, 177.938}, ImageMargins->{{43, 0}, {0, 0}}, ImageRegion->{{0, 1}, {0, 1}}, ImageCache->GraphicsData["Bitmap", "\<\ CF5dJ6E]HGAYHf4PAg9QL6QYHg_ooool01?nj^[[o0000o`00 0?nHV9P6ooooo`04olc_ooool00omEEEGo0000oeEEE@08ooooo`03ofIVI_l0003oEEEE03gooooo 00?o0000ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0>_ooool00ol@413o0000okZj ^P08ooooo`03okZj^_l0003o8B4Q03gooooo00?o0000ooooooooool0B_ooool004_ooooo00?o0000 ooooooooool0>_ooool2o`0000[ooooo0_l0000mooooo`03o`000?oooooooooo04[ooooo0007oooo odGo0000??ooool2o`0000[ooooo0_l0000mooooodGo00002?ooool004_ooooo00?o0000oooooooo ool0>_ooool2o`0000[ooooo0_l0000mooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`00 0?oooooooooo03[ooooo0_l0000:ooooo`;o0000?Oooool00ol0003oooooooooo`1:ooooo`00Booo ool00ol0003oooooooooo`0jooooo`;o00002_ooool2o`0003gooooo00?o0000ooooooooool0B_oo ool004_ooooo00?o0000ooooooooool0>_ooool2o`0000[ooooo0_l0000mooooo`03o`000?oooooo oooo04[ooooo001;ooooo`03o`000?oooooooooo03[ooooo0_l0000:ooooo`;o0000?Oooool00ol0 003oooooooooo`1:ooooo`00Boooool00ol0003oooooooooo`0jooooo`;o00002_ooool2o`0003go oooo00?o0000ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0>_ooool2o`0000[ooooo 0_l0000mooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`000?oooooooooo03[ooooo0_l0 000:ooooo`;o0000?Oooool00ol0003oooooooooo`1:ooooo`00Boooool00ol0003oooooooooo`0j ooooo`;o00002_ooool2o`0003gooooo00?o0000ooooooooool0B_ooool004_ooooo00?o0000oooo ooooool0>?ooool00olQ8B7o0000o`000003o`000003oc8b<_oooooooooo00;ooooo00?oOooool00ol0003oooooooooo`1:ooooo`00 Boooool00ol0003oooooooooo`25ooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`000?oo oooooooo08Gooooo00?o0000ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0QOooool0 0ol0003oooooooooo`1:ooooo`00Boooool00ol0003oooooooooo`25ooooo`03o`000?oooooooooo 04[ooooo001;ooooo`03o`000?oooooooooo08Gooooo00?o0000ooooooooool0B_ooool004_ooooo 00?o0000ooooooooool0QOooool00ol0003oooooooooo`1:ooooo`00Boooool00ol0003ooooooooo o`25ooooo`03o`000?oooooooooo04[ooooo0007ooooodGo0000Qooooom5o`0000Sooooo001;oooo o`03o`000?oooooooooo08Gooooo00?o0000ooooooooool0B_ooool004_ooooo00?o0000oooooooo ool0QOooool00ol0003oooooooooo`1:ooooo`00Boooool00ol0003oooooooooo`25ooooo`03o`00 0?oooooooooo04[ooooo001;ooooo`03o`000?oooooooooo08Gooooo00?o0000ooooooooool0B_oo ool004_ooooo00?o0000ooooooooool0QOooool00ol0003oooooooooo`1:ooooo`00Boooool00ol0 003oooooooooo`25ooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`000?oooooooooo08Go oooo00?o0000ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0QOooool00ol0003ooooo ooooo`1:ooooo`00Boooool00ol0003oooooooooo`25ooooo`03o`000?oooooooooo04[ooooo001; ooooo`03o`000?oooooooooo08Gooooo00?o0000ooooooooool0B_ooool004_ooooo00?o0000oooo ooooool0QOooool00ol0003oooooooooo`1:ooooo`00Boooool00ol0003oooooooooo`25ooooo`03 o`000?oooooooooo04[ooooo001;ooooo`03o`000?oooooooooo08Gooooo00?o0000ooooooooool0 B_ooool004_ooooo00?o0000ooooooooool0QOooool00ol0003oooooooooo`1:ooooo`00Boooool0 0ol0003oooooooooo`25ooooo`03o`000?oooooooooo04[ooooo001;ooooo`03o`000?oooooooooo 08Gooooo00?o0000ooooooooool0B_ooool004_ooooo00?o0000ooooooooool0QOooool00ol0003o ooooooooo`1:ooooo`00Booooon9o`0004cooooo003oooooob7ooooo003oooooob7ooooo003ooooo ob7ooooo003oooooob7ooooo003oooooob7ooooo003oooooob7ooooo003oooooob7ooooo003ooooo ob7ooooo003oooooob7ooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oo oooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo 08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo 002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?oooo o`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`00 0?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooo oooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08ko oooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002? ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03 o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oo oooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo 08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo 002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?oooo o`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`00 0?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooo oooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08ko oooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002? ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03 o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oo oooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo 08kooooo002>ooooo`Co0000S_ooool008gooooo1_l0002=ooooo`00SOooool6o`0008gooooo001] ooooodGo0000K_ooool008gooooo1_l0002=ooooo`00S_ooool4o`0008kooooo002?ooooo`03o`00 0?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooo oooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08ko oooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002? ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03 o`000?oooooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002?ooooo`03o`000?oo oooooooo08kooooo002?ooooo`03o`000?oooooooooo08kooooo002>ooooo`Co0000S_ooool008go oooo1_l0002=ooooo`00KOoooom5o`0006kooooo002=ooooo`Ko0000SOooool008gooooo1_l0002= ooooo`00S_ooool4o`0008kooooo003oooooob7ooooo0000\ \>"], ImageRangeCache->{{{0, 287}, {176.938, 0}} -> {0.894793, -0.112524, \ 0.0146705, 0.0267044}}], Cell[BoxData[ TagBox[\(\[SkeletonIndicator] Graphics \[SkeletonIndicator]\), False, Editable->False]], "Output"] }, Open ]], Cell[BoxData[{ \(An\ important\ 3 - qubit\ gate\ is\ called\ the\ Toffoli\ gate\[IndentingNewLine]\), "\ \[IndentingNewLine]", \(It\ is\ given\ by\ \), "\[IndentingNewLine]", \(\ \(C\^2\) \((X)\)\), "\[IndentingNewLine]", \(\)}], "Input"], Cell[BoxData[ \(Lets\ construct\ the\ Toffoli\ gate\)], "Input"], Cell[BoxData[ \(It\ would\ be\ represented\ schematically\)], "Input"], Cell[CellGroupData[{ Cell[BoxData[ \(Show[Graphics[DrawT[{1, {3, 4}}]]]\)], "Input"], Cell[GraphicsData["PostScript", "\<\ %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart /Mabs { Mgmatrix idtransform Mtmatrix dtransform } bind def /Mabsadd { Mabs 3 -1 roll add 3 1 roll add exch } bind def %% Graphics %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 10 scalefont setfont % Scaling calculations -0.452381 0.952381 -0.910234 0.336345 [ [ 0 0 0 0 ] [ 1 .61803 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath 0 g .5 Mabswid [ ] 0 setdash .2619 .01472 m .2619 .18289 L .7381 .18289 L .7381 .01472 L .2619 .01472 L s gsave .5 .0988 -66.5938 -11 Mabsadd m 1 1 Mabs scale currentpoint translate 0 22 translate 1 -1 scale /g { setgray} bind def /k { setcmykcolor} bind def /p { gsave} bind def /r { setrgbcolor} bind def /w { setlinewidth} bind def /C { curveto} bind def /F { fill} bind def /L { lineto} bind def /rL { rlineto} bind def /P { grestore} bind def /s { stroke} bind def /S { show} bind def /N {currentpoint 3 -1 roll show moveto} bind def /Msf { findfont exch scalefont [1 0 0 -1 0 0 ] makefont setfont} bind def /m { moveto} bind def /Mr { rmoveto} bind def /Mx {currentpoint exch pop moveto} bind def /My {currentpoint pop exch moveto} bind def /X {0 rmoveto} bind def /Y {0 exch rmoveto} bind def 63.000 14.000 moveto %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 12.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor 0.000 0.000 rmoveto 63.000 14.000 moveto %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 12.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor (U) show 70.188 14.000 moveto %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 12.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor 0.000 0.000 rmoveto 1.000 setlinewidth grestore .02381 .0988 m .2619 .0988 L s .7381 .0988 m .97619 .0988 L s 6 Mabswid .5 .43515 Mdot .5 .60332 Mdot .5 Mabswid .5 .18289 m .5 .43515 L s .5 .43515 m .5 .60332 L s .02381 .0988 m .2619 .0988 L s .02381 .60332 m .97619 .60332 L s .02381 .43515 m .97619 .43515 L s % End of Graphics MathPictureEnd \ \>"], "Graphics", ImageSize->{288, 177.938}, ImageMargins->{{43, 0}, {0, 0}}, ImageRegion->{{0, 1}, {0, 1}}, ImageCache->GraphicsData["Bitmap", "\<\ CF5dJ6E]HGAYHf4PAg9QL6QYHgooooo`Co0000S_ooool008gooooo1_l0002=ooooo`001oooooooo`0001;o 00002?ooool008gooooo1_l0002=ooooo`00SOooool6o`0008gooooo002>ooooo`Co0000S_ooool0 08oooooo00?o0000ooooooooool0S_ooool008oooooo00?o0000ooooooooool0S_ooool008oooooo 00?o0000ooooooooool0S_ooool008oooooo00?o0000ooooooooool0S_ooool008oooooo00?o0000 ooooooooool0S_ooool008oooooo00?o0000ooooooooool0S_ooool008oooooo00?o0000oooooooo ool0S_ooool008oooooo00?o0000ooooooooool0S_ooool008oooooo00?o0000ooooooooool0S_oo ool008oooooo00?o0000ooooooooool0S_ooool008oooooo00?o0000ooooooooool0S_ooool008oo oooo00?o0000ooooooooool0S_ooool008oooooo00?o0000ooooooooool0S_ooool008oooooo00?o 0000ooooooooool0S_ooool008oooooo00?o0000ooooooooool0S_ooool008oooooo00?o0000oooo ooooool0S_ooool008oooooo00?o0000ooooooooool0S_ooool008oooooo00?o0000ooooooooool0 S_ooool008oooooo00?o0000ooooooooool0S_ooool008oooooo00?o0000ooooooooool0S_ooool0 08oooooo00?o0000ooooooooool0S_ooool008oooooo00?o0000ooooooooool0S_ooool008oooooo 00?o0000ooooooooool0S_ooool008oooooo00?o0000ooooooooool0S_ooool008oooooo00?o0000 ooooooooool0S_ooool008oooooo00?o0000ooooooooool0S_ooool008oooooo00?o0000oooooooo ool0S_ooool008oooooo00?o0000ooooooooool0S_ooool008oooooo00?o0000ooooooooool0S_oo ool008oooooo00?o0000ooooooooool0S_ooool008oooooo00?o0000ooooooooool0S_ooool008oo oooo00?o0000ooooooooool0S_ooool008oooooo00?o0000ooooooooool0S_ooool008oooooo00?o 0000ooooooooool0S_ooool008oooooo00?o0000ooooooooool0S_ooool008oooooo00?o0000oooo ooooool0S_ooool008oooooo00?o0000ooooooooool0S_ooool008oooooo00?o0000ooooooooool0 S_ooool008oooooo00?o0000ooooooooool0S_ooool008oooooo00?o0000ooooooooool0S_ooool0 08oooooo00?o0000ooooooooool0S_ooool008oooooo00?o0000ooooooooool0S_ooool008kooooo 1?l0002>ooooo`00SOooool6o`0008gooooo0007oooooooo00004_l00008ooooo`00SOooool6o`00 08gooooo002=ooooo`Ko0000SOooool008kooooo1?l0002>ooooo`00oooooolQooooo`00\ \>"], ImageRangeCache->{{{0, 287}, {176.938, 0}} -> {0.473698, 2.70624, \ 0.00366761, 0.0103851}}], Cell[BoxData[ TagBox[\(\[SkeletonIndicator] Graphics \[SkeletonIndicator]\), False, Editable->False]], "Output"] }, Open ]], Cell[BoxData[ \(where\ U\ is\ the\ the\ single\ qubit\ \ PauliX\ gate\)], "Input"] }, FrontEndVersion->"5.1 for Macintosh", ScreenRectangle->{{0, 1024}, {0, 719}}, WindowSize->{644, 605}, WindowMargins->{{Automatic, 131}, {Automatic, 22}} ] (******************************************************************* Cached data follows. If you edit this Notebook file directly, not using Mathematica, you must remove the line containing CacheID at the top of the file. The cache data will then be recreated when you save this file from within Mathematica. *******************************************************************) (*CellTagsOutline CellTagsIndex->{} *) (*CellTagsIndex CellTagsIndex->{} *) (*NotebookFileOutline Notebook[{ Cell[1754, 51, 154, 2, 59, "Input"], Cell[1911, 55, 520, 8, 124, "Input"], Cell[2434, 65, 92, 1, 27, "Input"], Cell[2529, 68, 168, 2, 28, "Input"], Cell[2700, 72, 78, 1, 27, "Input"], Cell[2781, 75, 299, 5, 51, "Input"], Cell[3083, 82, 241, 4, 61, "Input"], Cell[3327, 88, 131, 2, 43, "Input"], Cell[3461, 92, 115, 2, 29, "Input"], Cell[3579, 96, 251, 4, 60, "Input"], Cell[3833, 102, 109, 2, 27, "Input"], Cell[3945, 106, 151, 2, 59, "Input"], Cell[CellGroupData[{ Cell[4121, 112, 176, 3, 75, "Input"], Cell[4300, 117, 39, 1, 27, "Output"] }, Open ]], Cell[4354, 121, 146, 2, 59, "Input"], Cell[4503, 125, 142, 2, 59, "Input"], Cell[4648, 129, 142, 2, 59, "Input"], Cell[CellGroupData[{ Cell[4815, 135, 214, 3, 59, "Input"], Cell[5032, 140, 366, 13, 73, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[5435, 158, 214, 3, 59, "Input"], Cell[5652, 163, 366, 13, 73, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[6055, 181, 214, 3, 59, "Input"], Cell[6272, 186, 366, 13, 73, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[6675, 204, 214, 3, 59, "Input"], Cell[6892, 209, 366, 13, 73, "Output"] }, Open ]], Cell[7273, 225, 115, 2, 27, "Input"], Cell[7391, 229, 59, 1, 27, "Input"], Cell[CellGroupData[{ Cell[7475, 234, 58, 1, 27, "Input"], Cell[7536, 237, 50, 1, 27, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[7623, 243, 54, 1, 27, "Input"], Cell[7680, 246, 50, 1, 27, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[7767, 252, 130, 2, 59, "Input"], Cell[7900, 256, 50, 1, 27, "Output"] }, Open ]], Cell[7965, 260, 63, 1, 27, "Input"], Cell[CellGroupData[{ Cell[8053, 265, 115, 2, 43, "Input"], Cell[8171, 269, 123, 2, 27, "Output"], Cell[8297, 273, 90, 1, 27, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[8424, 279, 119, 2, 43, "Input"], Cell[8546, 283, 123, 2, 27, "Output"], Cell[8672, 287, 90, 1, 27, "Output"] }, Open ]], Cell[8777, 291, 115, 2, 27, "Input"], Cell[CellGroupData[{ Cell[8917, 297, 62, 1, 27, "Input"], Cell[8982, 300, 90, 1, 27, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[9109, 306, 46, 1, 27, "Input"], Cell[9158, 309, 406, 12, 73, "Output"] }, Open ]], Cell[9579, 324, 93, 1, 27, "Input"], Cell[CellGroupData[{ Cell[9697, 329, 67, 1, 27, "Input"], Cell[9767, 332, 10791, 222, 186, 2193, 111, "GraphicsData", "PostScript", \ "Graphics"], Cell[20561, 556, 130, 3, 27, "Output"] }, Open ]], Cell[20706, 562, 255, 4, 59, "Input"], Cell[20964, 568, 88, 1, 27, "Input"], Cell[CellGroupData[{ Cell[21077, 573, 87, 2, 43, "Input"], Cell[21167, 577, 46, 1, 27, "Output"], Cell[21216, 580, 46, 1, 27, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[21299, 586, 87, 2, 43, "Input"], Cell[21389, 590, 46, 1, 27, "Output"], Cell[21438, 593, 46, 1, 27, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[21521, 599, 87, 2, 43, "Input"], Cell[21611, 603, 46, 1, 27, "Output"], Cell[21660, 606, 46, 1, 27, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[21743, 612, 87, 2, 43, "Input"], Cell[21833, 616, 46, 1, 27, "Output"], Cell[21882, 619, 46, 1, 27, "Output"] }, Open ]], Cell[21943, 623, 35, 1, 27, "Input"], Cell[21981, 626, 459, 8, 75, "Input"], Cell[CellGroupData[{ Cell[22465, 638, 433, 7, 155, "Input"], Cell[22901, 647, 8640, 157, 186, 851, 56, "GraphicsData", "PostScript", \ "Graphics"], Cell[31544, 806, 130, 3, 27, "Output"] }, Open ]], Cell[31689, 812, 85, 1, 27, "Input"], Cell[CellGroupData[{ Cell[31799, 817, 105, 2, 43, "Input"], Cell[31907, 821, 10779, 222, 186, 2193, 111, "GraphicsData", "PostScript", \ "Graphics"], Cell[42689, 1045, 130, 3, 27, "Output"] }, Open ]], Cell[42834, 1051, 70, 1, 27, "Input"], Cell[42907, 1054, 82, 1, 27, "Input"], Cell[CellGroupData[{ Cell[43014, 1059, 148, 4, 59, "Input"], Cell[43165, 1065, 12286, 240, 186, 2186, 111, "GraphicsData", "PostScript", \ "Graphics"], Cell[55454, 1307, 130, 3, 27, "Output"] }, Open ]], Cell[55599, 1313, 240, 4, 59, "Input"], Cell[55842, 1319, 190, 3, 59, "Input"], Cell[56035, 1324, 26, 0, 27, "Input"], Cell[CellGroupData[{ Cell[56086, 1328, 54, 1, 27, "Input"], Cell[56143, 1331, 13740, 254, 186, 1868, 103, "GraphicsData", "PostScript", \ "Graphics"], Cell[69886, 1587, 130, 3, 27, "Output"] }, Open ]], Cell[70031, 1593, 86, 1, 27, "Input"], Cell[70120, 1596, 217, 3, 31, "Input"], Cell[70340, 1601, 513, 10, 91, "Input"], Cell[70856, 1613, 86, 1, 27, "Input"], Cell[70945, 1616, 129, 2, 29, "Input"], Cell[71077, 1620, 137, 3, 61, "Input"], Cell[CellGroupData[{ Cell[71239, 1627, 105, 2, 43, "Input"], Cell[71347, 1631, 10789, 234, 186, 2074, 122, "GraphicsData", "PostScript", \ "Graphics"], Cell[82139, 1867, 130, 3, 27, "Output"] }, Open ]], Cell[82284, 1873, 264, 6, 93, "Input"], Cell[82551, 1881, 68, 1, 27, "Input"], Cell[82622, 1884, 74, 1, 27, "Input"], Cell[CellGroupData[{ Cell[82721, 1889, 67, 1, 27, "Input"], Cell[82791, 1892, 10270, 221, 186, 2261, 118, "GraphicsData", "PostScript", \ "Graphics"], Cell[93064, 2115, 130, 3, 27, "Output"] }, Open ]], Cell[93209, 2121, 86, 1, 27, "Input"] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)