Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7790cdf

Browse files
fix links
1 parent 823a86f commit 7790cdf

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

‎quantum_parallelism_Deutsch_Jozsa.ipynb‎

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@
88
}
99
},
1010
"source": [
11-
"[<img src=\"images/quantum_algorithms_tutorials.png\" alt=\"drawing\" width=\"100\" align=\"left\"/>](https://github.com/DavitKhach/quantum-algorithms-tutorials)\n",
11+
"[<img src=\"images/quantum_algorithms_tutorials.png\" alt=\"drawing\" width=\"100\" align=\"left\"/>][5]\n",
1212
"\n",
1313
"<h2 align=\"center\">\n",
1414
"Quantum parallelism and Deutsch–Jozsa algorithm\n",
1515
"</h2>\n",
1616
"\n",
17-
"[Open with the nbviewer.](https://nbviewer.jupyter.org/github/DavitKhach/quantum-algorithms-tutorials/blob/master/quantum_parallelism_Deutsch_Jozsa.ipynb)\n",
17+
"**[[Homepage][5]]**\\\n",
18+
"**[[Open with the nbviewer.][6]]**\n",
1819
"\n",
1920
"<h3 align=\"left\">\n",
20-
"Quantum parallelism\n",
21+
"1. Quantum parallelism\n",
2122
"</h3>\n",
2223
"\n",
2324
"In this tutorial, we are going to introduce 3 separate problems and we will mainly follow the [[1]] book's approach of describing them. After giving descriptions we will implement them with Qiskit. So, let's start with quantum parallelism, which is one of the powerful tools/properties that is used in the quantum computers. Quantum parallelism enables us to simultaneously compute the outputs of a function for given different inputs. Let's say we have two registers one for input the other one for output. The initial state is given by $\\left| x \\right\\rangle \\left| 0 \\right\\rangle$ wavefunction, where $\\left| x \\right\\rangle$ is the register that takes $x$ input and $\\left| 0 \\right\\rangle$ is the output register where the value of the $f(x)$ function will be stored. After applying the circuit that corresponds to the given function the wavefunction becomes $\\left| x \\right\\rangle \\left| f(x) \\right\\rangle$. Here is the circuit:\n",
@@ -103,7 +104,9 @@
103104
" [1]: https://www.cambridge.org/am/academic/subjects/physics/quantum-physics-quantum-information-and-quantum-computation/quantum-computation-and-quantum-information-10th-anniversary-edition?format=HB\n",
104105
" [2]: https://quantumcomputing.stackexchange.com/questions/9566/implementing-four-oracles-for-the-deutsch-algorithm-preferably-on-ibm-q-experie\n",
105106
" [3]: https://www.youtube.com/watch?v=awpnsGl08bc&list=LLEPoMdv-DZViRaaObznY_-A&index=113&t=0s\n",
106-
" [4]: https://courses.edx.org/courses/course-v1:MITx+8.370.2x+1T2018/course/"
107+
" [4]: https://courses.edx.org/courses/course-v1:MITx+8.370.2x+1T2018/course/\n",
108+
" [5]: https://github.com/DavitKhach/quantum-algorithms-tutorials\n",
109+
" [6]: https://nbviewer.jupyter.org/github/DavitKhach/quantum-algorithms-tutorials/blob/master/quantum_parallelism_Deutsch_Jozsa.ipynb"
107110
]
108111
},
109112
{
@@ -212,7 +215,7 @@
212215
"metadata": {},
213216
"source": [
214217
"<h3 align=\"left\">\n",
215-
"Deutsch's algorithm\n",
218+
"2. Deutsch's algorithm\n",
216219
"</h3>\n",
217220
"\n",
218221
"In the Deutsch algorithm, we are solving a problem with two qubits. The problem can be described this way [[1]]: Alice and Bob live in different cities and they are playing a \"funny\" game. Alice prepares her qubits and sends them to Bob. Bob applies a function on Alice's qubits and sends them back to Alice. Bob is allowed to choose only one of the 4 possible functions, that are either constant ($f(0) = f(1)$) or balanced ($f(0) \\ne f(1)$), and input and output of the function is one bit (0ドル$ or 1ドル$). Alice should find out from the measurment result was the chosen function balanced or constant. In the course of this algorithm, we will use the concept of quantum parallelism. Here is the circuit for the algorithm (a modified version of the Fig. 1.19 from [[1]]):\n",
@@ -541,7 +544,7 @@
541544
"metadata": {},
542545
"source": [
543546
"<h3 align=\"left\">\n",
544-
"The Deutsch-Jozsa algorithm\n",
547+
"3. The Deutsch-Jozsa algorithm\n",
545548
"</h3>\n",
546549
"\n",
547550
"Deutsch-Jozsa algorithm is the $n$ qubit version of the Deutsch algorithm. The functions now take $n$ bit strings (e.g. \"0101011\") as an input and return one bit output (0ドル$ or 1ドル$). Bob still is allowed only to use either balanced or constant functions and Alice should find out the property of that function (is it constant or balanced). Bob has two options for constant functions (for all imput bit strings $x$ the $f(x) = 0$ or $f(x) = 1$) and $\\begin{pmatrix} 2^n \\\\ 2^{n - 1} \\end{pmatrix}$ options to choose a balanced function. The main steps of the algorithm are presented in the following circuit (a modified version of the Fig.1.20 from the [[1]]):\n",
@@ -796,6 +799,12 @@
796799
"cell_type": "markdown",
797800
"metadata": {},
798801
"source": [
802+
"**[[Homepage][5]]**\n",
803+
"\n",
804+
"<h3 align=\"left\">\n",
805+
"References\n",
806+
"</h3>\n",
807+
"\n",
799808
"[[1]] [M.A. Nielsen, I.L. Chuang, Cambridge University Press New York, \"Quantum Computation and Quantum Information: 10th Anniversary Edition\n",
800809
"10th\" (2011)][1]\n",
801810
"\n",
@@ -805,10 +814,13 @@
805814
"\n",
806815
"[[4]] [edx course: Quantum Information Science I, Part 2][4]\n",
807816
"\n",
817+
"\n",
808818
" [1]: https://www.cambridge.org/am/academic/subjects/physics/quantum-physics-quantum-information-and-quantum-computation/quantum-computation-and-quantum-information-10th-anniversary-edition?format=HB\n",
809819
" [2]: https://quantumcomputing.stackexchange.com/questions/9566/implementing-four-oracles-for-the-deutsch-algorithm-preferably-on-ibm-q-experie\n",
810820
" [3]: https://www.youtube.com/watch?v=awpnsGl08bc&list=LLEPoMdv-DZViRaaObznY_-A&index=113&t=0s\n",
811-
" [4]: https://courses.edx.org/courses/course-v1:MITx+8.370.2x+1T2018/course/"
821+
" [4]: https://courses.edx.org/courses/course-v1:MITx+8.370.2x+1T2018/course/\n",
822+
" [5]: https://github.com/DavitKhach/quantum-algorithms-tutorials\n",
823+
" [6]: https://nbviewer.jupyter.org/github/DavitKhach/quantum-algorithms-tutorials/blob/master/quantum_parallelism_Deutsch_Jozsa.ipynb"
812824
]
813825
}
814826
],

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /