Skip to content

Commit 10f931e

Browse files
committed
update first week
1 parent dbe3483 commit 10f931e

File tree

8 files changed

+2157
-528
lines changed

8 files changed

+2157
-528
lines changed

doc/pub/week1/html/week1-bs.html

Lines changed: 310 additions & 0 deletions
Large diffs are not rendered by default.

doc/pub/week1/html/week1-reveal.html

Lines changed: 280 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,34 @@ <h2 id="the-options">The options </h2>
551551
<p>At least one of these must be true!</p>
552552
</section>
553553

554+
<section>
555+
<h2 id="naive-yet-popular-statement">Naive yet popular statement </h2>
556+
557+
<p>A naive, yet popular, statement says that quantum computers can
558+
provide an exponential speedup over classical computers because their
559+
internal states live in an exponentially large space of dimension
560+
\( 2^N \) for an \( N \)-qubit quantum computer. The number of dimensions
561+
grows so fast with \( N \) that classical supercomputers cannot even hold
562+
this state in memory as soon as \( N>50 \); hence, classical computing is
563+
supposedly doomed to address these states.
564+
</p>
565+
</section>
566+
567+
<section>
568+
<h2 id="more-to-the-picture-than-meets-the-eye">More to the picture than meets the eye </h2>
569+
570+
<p>Yet, despite this supposed impossibility, a rather large number of
571+
such exponentially large states have been calculated, sometimes with
572+
machine precision, using classical algorithms.
573+
</p>
574+
575+
<p><b>The solution of this small paradox is the
576+
same as in other successes of physics: apparently very complex
577+
phenomena have internal mathematical structures that, when revealed,
578+
allow one to make precise predictions.</b>
579+
</p>
580+
</section>
581+
554582
<section>
555583
<h2 id="present-day">Present day </h2>
556584
<p>Quantum computing is an extremely active and exciting field:</p>
@@ -891,6 +919,258 @@ <h2 id="quantum-platforms">Quantum platforms </h2>
891919
</div>
892920
</section>
893921

922+
<section>
923+
<h2 id="quantum-computing-in-a-nutshell">Quantum computing in a nutshell </h2>
924+
925+
<p>A quantum computer is a well-controlled out-of-equilibrium quantum
926+
many-body system that one intends to use to perform a
927+
calculation. Such a system can be described at several levels: from
928+
the actual underlying physics (usually described in terms of its
929+
Hamiltonian, that is with time and energies) up to an abstract
930+
representation used to describe quantum algorithms, the so-called <b>gate-based
931+
quantum computer</b>.
932+
</p>
933+
</section>
934+
935+
<section>
936+
<h2 id="an-exponentially-large-internal-state">An exponentially large internal state </h2>
937+
938+
<p>The abstract <b>gate-based</b> quantum computer is defined as follows. We
939+
have a set of \( N \) two-level systems, called quantum bits or qubits
940+
(for instance, the spin of an electron), that can be in the states
941+
\( \vert 0\rangle \) and \( \vert 1 \rangle \). The most general state of the quantum
942+
computer has the form
943+
</p>
944+
<p>&nbsp;<br>
945+
$$
946+
\vert\Psi\rangle = \sum_{i_1i_2\cdots i_N} \Psi_{i_1i_2\cdots i_N} \vert i_1i_2\cdots i_N\rangle.
947+
$$
948+
<p>&nbsp;<br>
949+
</section>
950+
951+
<section>
952+
<h2 id="sums">Sums </h2>
953+
954+
<p>Here the sum runs over all qubit values \( i_a \in \{0,1\} \), and
955+
\( \vert i_1i_2\cdots i_N\rangle \) is a shorthand for the tensor product
956+
\( \vert i_1i_2\cdots i_N\rangle = \vert i_1\rangle\otimes
957+
\vert i_2\rangle\otimes\cdots\otimes\vert i_N\rangle \). The tensor
958+
\( \Psi_{i_1i_2\cdots i_N} \) can be thought of as a large vector
959+
containing \( 2^N \) complex values. The potential capabilities of quantum
960+
computers stem from the fact that this vector is exponentially large
961+
and, once \( N\gtrsim 50 \), cannot be stored in a classical computer.
962+
</p>
963+
</section>
964+
965+
<section>
966+
<h2 id="quantum-circuits">Quantum circuits </h2>
967+
968+
<p>When one operates a quantum computer, one initializes it with an
969+
initial state \( \vert \Psi\rangle^{(0)} \) (usually \( \vert \Psi\rangle^{(0)} =
970+
\vert 000\cdots{}0\rangle \)), and the state of the system evolves according to
971+
the Schr&#246;dinger equation, which transforms \( \vert \Psi\rangle^{(n)} \) into
972+
\( \vert \Psi\rangle^{(n+1)} = \hat U^{(n)} \vert \Psi\rangle^{(n)} \), with the
973+
evolution operator \( \hat U^{(n)} \) given by
974+
</p>
975+
<p>&nbsp;<br>
976+
$$
977+
\hat U^{(n)} = T e^{-i\int_{t_n}^{t_{n+1}} dt \hat H(t)}.
978+
$$
979+
<p>&nbsp;<br>
980+
981+
<p>Here
982+
where \( T \) is the time-ordering operator and \( \hat H(t) \) is the
983+
Hamiltonian of the system.
984+
</p>
985+
</section>
986+
987+
<section>
988+
<h2 id="unitary-evolution-operator-in-quantum-computing">Unitary evolution operator in quantum computing </h2>
989+
990+
<p>In physics, the system is described by
991+
\( \hat H(t) \). In quantum computing, one actually starts with the
992+
evolution operators \( \hat U^{(n)} \), assuming that someone else has
993+
worked out how to engineer appropriate Hamiltonians. The different
994+
evolution operators that one will use are called <b>gates</b> and fall
995+
into two categories, depending on whether they act on a single qubit
996+
or on two qubits.
997+
</p>
998+
</section>
999+
1000+
<section>
1001+
<h2 id="single-qubit-gate">Single-qubit gate </h2>
1002+
<p>A single-qubit gate is defined on one qubit as \( \hat
1003+
U\vert i\rangle = \sum_j U_{ji}\vert j\rangle \), where the \( 2\times 2 \) matrix
1004+
\( U_{ij} \) is unitary. In terms of the wavefunction \( \Psi^{(n)} \), such a
1005+
single-qubit gate on qubit \( a \) translates into a matrix that acts as
1006+
</p>
1007+
1008+
<p>&nbsp;<br>
1009+
$$
1010+
\Psi_{i_1i_2\cdots{}i_N}^{(n+1)} = \sum_{i'_a} U^{(n)}_{i_ai'_a}
1011+
\Psi_{i_1\cdots{}i_{a-1}i'_a i_{a+1}\cdots{}i_N}^{(n)}.
1012+
$$
1013+
<p>&nbsp;<br>
1014+
</section>
1015+
1016+
<section>
1017+
<h2 id="two-qubit-gate">Two-qubit gate </h2>
1018+
1019+
<p>Likewise, a two-qubit gate acting on qubits \( a \) and \( b \) is described
1020+
by a \( 4\times 4 \) matrix and transforms the wavefunction into
1021+
</p>
1022+
<p>&nbsp;<br>
1023+
$$
1024+
\Psi_{i_1i_2\cdots{}i_N}^{(n+1)} = \sum_{i'_a,i'_b} U^{(n)}_{i_ai_b,i'_ai'_b}
1025+
\Psi_{i_1\cdots{}i_{a-1}i'_a i_{a+1}\cdots{}i_{b-1}i'_b i_{b+1}\cdots{}i_N}^{(n)}.
1026+
$$
1027+
<p>&nbsp;<br>
1028+
1029+
<p>Depending on the quantum hardware, some gates are easier to implement
1030+
than others.
1031+
</p>
1032+
</section>
1033+
1034+
<section>
1035+
<h2 id="the-pauli-gates">The Pauli gates </h2>
1036+
<p>Typical examples include the one-qubit gates (the first
1037+
three are the Pauli matrices)
1038+
</p>
1039+
1040+
<p>&nbsp;<br>
1041+
$$
1042+
\begin{eqnarray}
1043+
X &=& \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \\
1044+
Y &=& \begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix}, \\
1045+
Z &=& \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, \\
1046+
H &=& \frac{1}{\sqrt{2}} \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}, \\
1047+
T &=& \begin{pmatrix} e^{i\pi/8} & 0 \\ 0 & e^{-i\pi/8} \end{pmatrix}.
1048+
\end{eqnarray}
1049+
$$
1050+
<p>&nbsp;<br>
1051+
</section>
1052+
1053+
<section>
1054+
<h2 id="and-the-controlled-not-or-cnot-two-qubit-gate">And the controlled NOT (or CNOT) two-qubit gate </h2>
1055+
1056+
<p>&nbsp;<br>
1057+
$$
1058+
C_X = \begin{pmatrix} 1 & 0 & 0 & 0 \\
1059+
0 & 1 & 0 & 0 \\
1060+
0 & 0 & 0 & 1 \\
1061+
0 & 0 & 1 & 0 \end{pmatrix}.
1062+
$$
1063+
<p>&nbsp;<br>
1064+
1065+
<p>These gates are transformed into so-called quantum circuits (see whiteboard notes) and
1066+
they are read a little like music, with one line per qubit.
1067+
</p>
1068+
</section>
1069+
1070+
<section>
1071+
<h2 id="measurement">Measurement </h2>
1072+
<p>The last ingredient of the quantum computer gate model is measurement. When a qubit \( a \) is
1073+
measured, it returns the value \( \alpha \) (\( \alpha = 0 \) or 1) with probability
1074+
</p>
1075+
1076+
<p>&nbsp;<br>
1077+
$$
1078+
P_\alpha = \sum_{i_1\cdots{}i_{a-1} i_{a+1}\cdots{}i_N} \left|
1079+
\Psi_{i_1\cdots{}i_{a-1} \alpha i_{a+1}\cdots{}i_N}^{(n)} \right|^2.
1080+
$$
1081+
<p>&nbsp;<br>
1082+
</section>
1083+
1084+
<section>
1085+
<h2 id="after-measurement">After measurement </h2>
1086+
1087+
<p>The new wavefunction becomes</p>
1088+
1089+
<p>&nbsp;<br>
1090+
$$
1091+
\Psi_{i_1\cdots{}i_N}^{(n)}\rightarrow
1092+
\delta_{i_a,\alpha} \frac{1}{\sqrt{P_\alpha}}
1093+
\Psi_{i_1\cdots{}i_{a-1} \alpha i_{a+1}\cdots{}i_N}^{(n)}.
1094+
$$
1095+
<p>&nbsp;<br>
1096+
1097+
<p>And that's essentially it. The above set of equations entirely
1098+
describes what a quantum computer is supposed to do. The entire field
1099+
of quantum algorithms consists of using
1100+
these rules to perform useful computations.
1101+
</p>
1102+
</section>
1103+
1104+
<section>
1105+
<h2 id="quantum-computing-in-a-nutshell">Quantum computing in a nutshell </h2>
1106+
1107+
<p>In a nutshell, a quantum computer allows one to perform a subset
1108+
of linear algebra, namely matrix-vector multiplications, with very
1109+
special matrices (the <b>gates</b> that act only on certain indices and
1110+
belong to a fixed set of unitary matrices) on exponentially large
1111+
vectors (the wavefunction \( \Psi_{i_1\cdots{}i_N}^{(n)} \)). The appeal
1112+
of quantum computers clearly comes from the exponentially large size
1113+
of those wavefunctions.
1114+
</p>
1115+
</section>
1116+
1117+
<section>
1118+
<h2 id="downside">Downside </h2>
1119+
1120+
<p>However, a very strong downside is that at the
1121+
end of the calculation one does not hold the corresponding
1122+
exponentially large vector of \( 2^N \) values, but only a much smaller
1123+
set: \( N \) bits of (probabilistic) information. We get a single sample
1124+
of the distribution \( |\Psi_{i_1\cdots{}i_N}^{(n)}|^2 \). This is one of
1125+
the two Achilles' heels of quantum computing, which we dub the I/O
1126+
bottleneck (well, more the O bottleneck for this aspect).
1127+
</p>
1128+
</section>
1129+
1130+
<section>
1131+
<h2 id="inaccesible-parts-of-the-space">Inaccesible parts of the space </h2>
1132+
1133+
<p>It is very important to realize that the largest part of the Hilbert
1134+
space of dimension \( 2^N \) will remain forever inaccessible to quantum
1135+
computers (and classical methods). This can be understood using a
1136+
simple counting argument. Suppose that the quantum circuit consists of
1137+
\( D \) layers of gates (\( D \) being the depth of the circuit). We also
1138+
suppose that each layer is packed with as many gates as possible
1139+
(meaning that all the qubits are acted upon). Lastly, each gate is
1140+
parametrized by a few angles. Then the total dimension of the subspace
1141+
that can be spanned by these circuits is \( O(D N) \), which is obviously
1142+
much smaller than \( 2^N \).
1143+
</p>
1144+
</section>
1145+
1146+
<section>
1147+
<h2 id="some-numbers">Some numbers </h2>
1148+
1149+
<p>Now let us put some realistic numbers. Suppose that we work with
1150+
\( N=100 \) qubits. The total dimension of the Hilbert space is \( 2^{100}
1151+
\approx 10^{30} \). Typical depths that can be considered with existing
1152+
hardware are of the order of \( D\approx 100 \), but let us suppose that
1153+
this number is scaled up to \( D=10^6 \). The explorable subspace would
1154+
still have 20 orders of magnitude fewer degrees of freedom than the
1155+
full Hilbert space. So the question really is: does this subspace
1156+
belong to the <b>relevant</b> part of the Hilbert space?
1157+
</p>
1158+
</section>
1159+
1160+
<section>
1161+
<h2 id="degrees-of-freedom">Degrees of freedom </h2>
1162+
1163+
<p>And, conversely,
1164+
is the <b>relevant</b> part of the Hilbert space amenable to classical
1165+
simulations? The word relevant is defined very loosely here, but there
1166+
are several scientific articles that start to give it a more precise
1167+
meaning. For instance, the problem of the <b>barren plateaus</b> in the
1168+
variational quantum eigensolver (VQE) algorithm has been traced back
1169+
to the fact that most of the states in the \( O(N D) \)-dimensional
1170+
subspace manifold are essentially chaotic, hence irrelevant.
1171+
</p>
1172+
</section>
1173+
8941174
<section>
8951175
<h2 id="notations-and-definitions">Notations and definitions </h2>
8961176

0 commit comments

Comments
 (0)