@@ -19,13 +19,391 @@ o Work on project 1
1919
2020!split
2121===== Readings =====
22-
22+ !bblock
2323o For the discussion of one-qubit, two-qubit and other gates, sections 2.6-2.11 and 3.1-3.4 of Hundt's book _Quantum Computing for Programmers_, contain most of the relevant information.
24- o The VQE algorithm is discussed in Hundt's section 6.11, note that the solution of the two-qubit system is outdated
24+ o The VQE algorithm is discussed in Hundt's section 6.11, note that the solution of the two-qubit system is outdated, measuring on one qubit only is not the present standard
2525o "See also the VQE review article by Tilly et al.":"https://www.sciencedirect.com/science/article/pii/S0370157322003118?via%3Dihub"
26+ * Jupyter-notebook on VQE and single-qubit problem at URL:"https://github.com/CompPhysics/QuantumComputingMachineLearning/blob/gh-pages/doc/pub/week6/ipynb/single_qubit_vqe_modified.ipynb"
27+ * Jupyter-notebook on VQE and two-qubit problem at URL:"https://github.com/CompPhysics/QuantumComputingMachineLearning/blob/gh-pages/doc/pub/week6/ipynb/two_qubit_vqe_modified.ipynb"
28+ !eblock
29+
30+
31+ !split
32+ ===== Two-qubit Hamiltonian =====
33+
34+ Here we discuss how to rewrite the two-qubit Hamiltonian defined by the following Hamiltonian matrix (project 1)
35+ !bt
36+ \[
37+ \mathcal{H}=\begin{bmatrix} \epsilon_{1}+V_z & 0 & 0 & V_x \\
38+ 0 & \epsilon_{2}-V_z & V_x & 0 \\
39+ 0 & H_x & \epsilon_{3}-V_z & 0 \\
40+ H_x & 0 & 0 & \epsilon_{4} +V_z \end{bmatrix}.
41+ \]
42+ !et
43+
44+ This Hamiltonian can be rewritten in terms of various one-qubit matrices.
45+
46+ !split
47+ ===== Definitions =====
48+
49+ We define
50+ !bt
51+ \[
52+ \epsilon_{II}=\frac{\epsilon_{1}+\epsilon_{2}+\epsilon_{3}+\epsilon_{4}}{4},
53+ \]
54+ !et
55+ !bt
56+ \[
57+ \epsilon_{ZI}=\frac{\epsilon_{1}+\epsilon_{2}-\epsilon_{3}-\epsilon_{4}}{4},
58+ \]
59+ !et
60+ !bt
61+ \[
62+ \epsilon_{IZ}=\frac{\epsilon_{1}-\epsilon_{2}+\epsilon_{3}-\epsilon_{4}}{4},
63+ \]
64+ !et
65+ !bt
66+ \[
67+ \epsilon_{ZZ}=\frac{\epsilon_{1}-\epsilon_{2}-\epsilon_{3}+\epsilon_{4}}{4}.
68+ \]
69+ !et
70+
71+
72+ !split
73+ ===== The Hamiltonian in terms of Pauli-$\bm{X}$ and Pauli-$\bm{Z}$ matrices =====
74+
75+ With these definitions we can rewrite our two-qubit Hamiltonian as
76+ !bt
77+ \[
78+ \mathcal{H}=\mathcal{H}_0+\mathcal{H}_I
79+ \]
80+ !et
81+ with
82+ !bt
83+ \[
84+ \mathcal{H}_0=\epsilon_{II}\bm{I}\otimes\bm{I}+\epsilon_{ZI}\bm{Z}\otimes\bm{I}+\epsilon_{IZ}\bm{I}\otimes\bm{Z}+\epsilon_{ZZ}\bm{Z}\otimes\bm{Z},
85+ \]
86+ !et
87+ and
88+ !bt
89+ \[
90+ \mathcal{H}_I=V_z\bm{Z}\otimes\bm{Z}+V_x\bm{X}\otimes\bm{X}.
91+ \]
92+ !et
93+
94+
95+ !split
96+ ===== Lipkin model =====
97+
98+ We will study a schematic model (the Lipkin model, see Nuclear
99+ Physics _62_ (1965) 188), for the interaction among $2$ and more
100+ fermions that can occupy two different energy levels.
101+
102+
103+ In project 1 we consider a two-fermion case and a four-fermion case.
104+
105+ For four fermions, the case we consider in the examples here, each levels has
106+ degeneration $d=4$, leading to different total spin values. The two
107+ levels have quantum numbers $\sigma=\pm 1$, with the upper level
108+ having $2\sigma=+1$ and energy $\varepsilon_{1}= \varepsilon/2$. The
109+ lower level has $2\sigma=-1$ and energy
110+ $\varepsilon_{2}=-\varepsilon/2$. That is, the lowest single-particle
111+ level has negative spin projection (or spin down), while the upper
112+ level has spin up. In addition, the substates of each level are
113+ characterized by the quantum numbers $p=1,2,3,4$.
114+
115+
116+ !split
117+ ===== Four fermion case =====
118+
119+ We define the single-particle states (for the four fermion case which we will work on here)
120+ !bt
121+ \[
122+ \vert u_{\sigma =-1,p}\rangle=a_{-p}^{\dagger}\vert 0\rangle
123+ \hspace{1cm}
124+ \vert u_{\sigma =1,p}\rangle=a_{+p}^{\dagger}\vert 0\rangle.
125+ \]
126+ !et
127+ The single-particle states span an orthonormal basis.
128+
129+ !split
130+ ===== Hamiltonian =====
131+
132+ The Hamiltonian of the system is given by
133+
134+ !bt
135+ \[
136+ \begin{array}{ll}
137+ \hat{H}=&\hat{H}_{0}+\hat{H}_{1}+\hat{H}_{2}\\
138+ &\\
139+ \hat{H}_{0}=&\frac{1}{2}\varepsilon\sum_{\sigma ,p}\sigma
140+ a_{\sigma,p}^{\dagger}a_{\sigma ,p}\\
141+ &\\
142+ \hat{H}_{1}=&\frac{1}{2}V\sum_{\sigma ,p,p'}
143+ a_{\sigma,p}^{\dagger}a_{\sigma ,p'}^{\dagger}
144+ a_{-\sigma ,p'}a_{-\sigma ,p}\\
145+ &\\
146+ \hat{H}_{2}=&\frac{1}{2}W\sum_{\sigma ,p,p'}
147+ a_{\sigma,p}^{\dagger}a_{-\sigma ,p'}^{\dagger}
148+ a_{\sigma ,p'}a_{-\sigma ,p}\\
149+ &\\
150+ \end{array}
151+ \]
152+ !et
153+ where $V$ and $W$ are constants. The operator
154+ $H_{1}$ can move pairs of fermions
155+ while $H_{2}$ is a spin-exchange term. The latter
156+ moves a pair of fermions from a state $(p\sigma ,p' -\sigma)$ to a state
157+ $(p-\sigma ,p'\sigma)$.
158+
159+ !split
160+ ===== Quasispin operators =====
161+
162+ We are going to rewrite the above Hamiltonian in terms of so-called quasispin operators
163+ !bt
164+ \[
165+ \begin{array}{ll}
166+ \hat{J}_{+}=&\sum_{p}
167+ a_{p+}^{\dagger}a_{p-}\\
168+ &\\
169+ \hat{J}_{-}=&\sum_{p}
170+ a_{p-}^{\dagger}a_{p+}\\
171+ &\\
172+ \hat{J}_{z}=&\frac{1}{2}\sum_{p\sigma}\sigma
173+ a_{p\sigma}^{\dagger}a_{p\sigma}\\
174+ &\\
175+ \hat{J}^{2}=&J_{+}J_{-}+J_{z}^{2}-J_{z}\\
176+ &\\
177+ \end{array}
178+ \]
179+ !et
180+ These operators obey the commutation relations for angular momentum.
181+
182+
183+ !split
184+ ===== Including the number operator =====
185+
186+ We can in turn express $\hat{H}$ in terms of the above quasispin operators and the number operator
187+ !bt
188+ \[
189+ \hat{N}=\sum_{p\sigma}
190+ a_{p\sigma}^{\dagger}a_{p\sigma}.
191+ \]
192+ !et
193+
194+
195+ !split
196+ ===== Final Hamiltonian =====
197+ Using the quasispin operators we can rewrite the Hamiltonian as
198+ !bt
199+ \begin{equation}
200+ H = \varepsilon J_z+\frac{1}{2} V \left( J_+^2 + J_-^2 \right)+\frac{1}{2} W \left( -N + J_+ J_- + J_- J_+ \right).
201+ \end{equation}
202+ !et
203+
204+ !split
205+ ===== Original Lipkin Hamiltonian =====
206+ The Lipkin model Hamiltonian in terms of quasispin operators reads
207+ !bt
208+ \[
209+ H = \varepsilon J_z
210+ + \frac{1}{2} V \left(J_+^2 + J_-^2\right)
211+ + \frac{1}{2} W \left(-N + J_+ J_- + J_- J_+\right).
212+ \]
213+ !et
214+ We use the standard commutation relations
215+ !bt
216+ \[
217+ [J_+,J_-] = 2J_z,
218+ \]
219+ !et
220+ and the Casimir operator
221+ !bt
222+ \[
223+ J^2 = J_z^2 + \frac{1}{2}(J_+J_- + J_-J_+).
224+ \]
225+ !et
226+
227+
228+ !split
229+ ===== More compact expression =====
230+
231+ From this we obtain
232+ !bt
233+ \[
234+ J_+J_- = J^2 - J_z(J_z - 1),
235+ \qquad
236+ J_-J_+ = J^2 - J_z(J_z + 1).
237+ \]
238+ !et
239+
240+ Adding the two expressions:
241+ !bt
242+ \[
243+ J_+J_- + J_-J_+ = 2(J^2 - J_z^2).
244+ \]
245+ !et
246+
247+ !split
248+ ===== Simplified Hamiltonian =====
249+ Using
250+ !bt
251+ \[
252+ J_+J_- + J_-J_+ = 2(J^2 - J_z^2)
253+
254+ \]
255+ !et
256+ and insert into the Hamiltonian:
257+ !bt
258+ \[
259+ H = \varepsilon J_z
260+ + \frac{1}{2} V (J_+^2 + J_-^2)
261+ + \frac{1}{2} W \left(-N + 2(J^2 - J_z^2)\right).
262+ \]
263+ !et
264+ This gives
265+ !bt
266+ \[
267+ \boxed{
268+ H = \varepsilon J_z
269+ + \frac{V}{2}(J_+^2 + J_-^2)
270+ + W(J^2 - J_z^2)
271+ - \frac{WN}{2}.
272+ }
273+ \]
274+ !et
275+
276+ !split
277+ ===== Physical interpretation =====
278+ * The Hamiltonian is now expressed in terms of:
279+ * Linear term: $\varepsilon J_z$
280+ * Pairing term: $J_+^2 + J_-^2$
281+ * Quadratic term: $J_z^2$
282+ *Casimir term: $J^2$
283+ * The constant $-\frac{WN}{2}$ only shifts the spectrum.
284+
285+ !split
286+ ===== Fixed quasispin sector ($j=N/2$) =====
287+ In the Lipkin model we typically work in a fixed irreducible representation:
288+ !bt
289+ \[
290+ J^2 = j(j+1), \qquad j=\frac{N}{2}.
291+ \]
292+ !et
293+
294+ Thus
295+ !bt
296+ \[
297+ H = \varepsilon J_z
298+ + \frac{V}{2}(J_+^2 + J_-^2)
299+ - W J_z^2
300+ + W j(j+1)
301+ - \frac{WN}{2}.
302+ \]
303+ !et
304+
305+ !split
306+ ===== Final simplified form =====
307+ Using $N = 2j$, the constant simplifies:
308+ !bt
309+ \[
310+ W j(j+1) - \frac{WN}{2} = W j^2.
311+ \]
312+ !et
313+ !bblock Final result
314+ !bt
315+ \[
316+ \boxed{
317+ H = \varepsilon J_z
318+ + \frac{V}{2}(J_+^2 + J_-^2)
319+ - W J_z^2
320+ + W j^2.
321+ }
322+ \]
323+ !et
324+ !eblock
325+ The term $W j^2$ is a constant shift and can often be omitted.
326+
327+
328+
329+ !split
330+ ===== Final Hamiltonian matrix =====
331+ These five states can in turn be used as computational basis states in
332+ order to define the Hamiltonian matrix to be diagonalized.
333+ The matrix elements are given by $\langle J,J_z \vert H \vert J',J_z' \rangle$.
334+ The
335+ Hamiltonian is hermitian and we obtain after all this labor of ours
336+
337+ !bt
338+ \begin{equation}
339+ H_{J = 2} =
340+ \begin{bmatrix}
341+ -2\varepsilon & 0 & \sqrt{6}V & 0 & 0 \\
342+ 0 & -\varepsilon + 3W & 0 & 3V & 0 \\
343+ \sqrt{6}V & 0 & 4W & 0 & \sqrt{6}V \\
344+ 0 & 3V & 0 & \varepsilon + 3W & 0 \\
345+ 0 & 0 & \sqrt{6}V & 0 & 2\varepsilon
346+ \end{bmatrix}
347+ label{eq:HJ=2}
348+ \end{equation}
349+ !et
350+
351+
352+
353+ !split
354+ ===== Quantum computing and solving the eigenvalue problem for the Lipkin model =====
355+
356+
357+ We turn now to a simpler variant of the Lipkin model without the $W$-term and a total spin of $J=1$ only as maximum value of the spin.
358+ This corresponds to a system with $N=2$ particles (fermions in our case).
359+ Our Hamiltonian is given by the quasispin operators (see below)
360+ !bt
361+ \[
362+ \hat{H} = \epsilon\hat{J}_z -\frac{1}{2}V(\hat{J}_+\hat{J}_++\hat{J}_-\hat{J}_-).
363+ \]
364+ !et
365+
366+ As discussed earlier
367+ the quasispin operators act like lowering and raising angular momentum
368+ operators.
369+
370+ With these properties we can calculate the Hamiltonian
371+ matrix for the Lipkin model by computing the various matrix elements
372+ !bt
373+ \begin{equation}
374+ \langle JJ_z|H|JJ_z'\rangle,
375+ \end{equation}
376+ !et
377+ where the non-zero elements are given by
378+ !bt
379+ \[
380+ \begin{split}
381+ \langle JJ_z|H|JJ_z'\rangle & = \epsilon J_z\\
382+ \langle JJ_z|H|JJ_z'\pm 2\rangle & = \langle JJ_z\pm 2|H|JJ_z'\rangle \\ &= -\frac{1}{2}VC,
383+ \end{split}
384+ \]
385+ !et
386+ where $C$ is the Clebsch-Gordan coefficients (from the raising and lowering operators) one gets when
387+ $J_{\pm}^2$ operates on the state $|JJ_z\rangle$. Using the above
388+ definitions we can calculate the exact solution to the Lipkin model.
389+
390+ With the $V$-interaction terms, we obtain the following Hamiltonian matrix
391+ !bt
392+ \begin{equation}
393+ \begin{pmatrix}-\epsilon & 0 & -V\\
394+ 0&0&0\\
395+ -V&0&\epsilon
396+ \end{pmatrix}
397+ \end{equation}
398+ !et
399+
400+
26401!split
27402===== Plans for next week =====
28- o TBA
403+ o We will focus mainly on setting up the quantum circuit for the Lipkin model with $J=1$ and $J=2$, rewriting the Lipkin model in terms of Pauli matrices
404+ o Thereafter, if we get time we start with quantum Fourier transforms and discussions of Quantum Phase estimation algorithm
405+
406+
29407
30408
31409
0 commit comments