##// END OF EJS Templates
Updating notebook examples to current format.
Brian E. Granger -
Show More

The requested changes are too big and content was truncated. Show full diff

This diff has been collapsed as it changes many lines, (607 lines changed) Show them Hide them
@@ -1,1 +1,606 b''
1 {"cells":[{"cell_type":"text","text":"<h1>Basic Symbolic Quantum Mechanics</h1>"},{"code":"%load_ext sympyprinting","cell_type":"code","prompt_number":1},{"code":"from sympy import sqrt, symbols, Rational\nfrom sympy import expand, Eq, Symbol, simplify, exp, sin\nfrom sympy.physics.quantum import *\nfrom sympy.physics.quantum.qubit import *\nfrom sympy.physics.quantum.gate import *\nfrom sympy.physics.quantum.grover import *\nfrom sympy.physics.quantum.qft import QFT, IQFT, Fourier\nfrom sympy.physics.quantum.circuitplot import circuit_plot","cell_type":"code","prompt_number":2},{"cell_type":"text","text":"<h2>Bras and Kets</h2>"},{"cell_type":"text","text":"Create symbolic states"},{"code":"phi, psi = Ket('phi'), Ket('psi')\nalpha, beta = symbols('alpha beta', complex=True)","cell_type":"code","prompt_number":3},{"cell_type":"text","text":"Create a superposition"},{"code":"state = alpha*psi + beta*phi; state\n","cell_type":"code","prompt_number":4},{"cell_type":"text","text":"Dagger the superposition and multiply the original"},{"code":"ip = Dagger(state)*state; ip\n","cell_type":"code","prompt_number":5},{"cell_type":"text","text":"Distribute"},{"code":"qapply(expand(ip))\n","cell_type":"code","prompt_number":6},{"cell_type":"text","text":"<h2>Operators</h2>"},{"cell_type":"text","text":"Create symbolic operators"},{"code":"A = Operator('A')\nB = Operator('B')\nC = Operator('C')","cell_type":"code","prompt_number":7},{"cell_type":"text","text":"Test commutativity"},{"code":"A*B == B*A\n","cell_type":"code","prompt_number":8},{"cell_type":"text","text":"Distribute A+B squared"},{"code":"expand((A+B)**2)","cell_type":"code","prompt_number":9},{"cell_type":"text","text":"Create a commutator"},{"code":"comm = Commutator(A,B); comm\n","cell_type":"code","prompt_number":10},{"cell_type":"text","text":"Carry out the commutator"},{"code":"comm.doit()","cell_type":"code","prompt_number":11},{"cell_type":"text","text":"Create a more fancy commutator"},{"code":"comm = Commutator(A*B,B+C); comm","cell_type":"code","prompt_number":12},{"cell_type":"text","text":"Expand the commutator"},{"code":"comm.expand(commutator=True)","cell_type":"code","prompt_number":13},{"cell_type":"text","text":"Carry out and expand the commutators"},{"code":"_.doit().expand()\n","cell_type":"code","prompt_number":14},{"cell_type":"text","text":"Take the dagger"},{"code":"Dagger(_)","cell_type":"code","prompt_number":15},{"code":"%notebook save basic_quantum.ipynb","cell_type":"code","prompt_number":16},{"code":"%notebook load quantum_computing.ipynb","cell_type":"code","prompt_number":19}]} No newline at end of file
1 <?xml version="1.0" encoding="utf-8"?>
2 <notebook>
3 <name>basic_quantum</name>
4 <nbformat>2</nbformat>
5 <worksheets>
6 <worksheet>
7 <cells>
8 <markdowncell>
9 <source>&lt;h1&gt;Basic Symbolic Quantum Mechanics&lt;/h1&gt;</source>
10 </markdowncell>
11 <codecell>
12 <input>%load_ext sympyprinting</input>
13 <language>python</language>
14 <prompt_number>18</prompt_number>
15 <collapsed>1</collapsed>
16 <outputs />
17 </codecell>
18 <codecell>
19 <input>from sympy import sqrt, symbols, Rational
20 from sympy import expand, Eq, Symbol, simplify, exp, sin
21 from sympy.physics.quantum import *
22 from sympy.physics.quantum.qubit import *
23 from sympy.physics.quantum.gate import *
24 from sympy.physics.quantum.grover import *
25 from sympy.physics.quantum.qft import QFT, IQFT, Fourier
26 from sympy.physics.quantum.circuitplot import circuit_plot</input>
27 <language>python</language>
28 <prompt_number>19</prompt_number>
29 <collapsed>1</collapsed>
30 <outputs />
31 </codecell>
32 <markdowncell>
33 <source>&lt;h2&gt;Bras and Kets&lt;/h2&gt;</source>
34 </markdowncell>
35 <markdowncell>
36 <source>Create symbolic states</source>
37 </markdowncell>
38 <codecell>
39 <input>phi, psi = Ket('phi'), Ket('psi')
40 alpha, beta = symbols('alpha beta', complex=True)</input>
41 <language>python</language>
42 <prompt_number>20</prompt_number>
43 <collapsed>1</collapsed>
44 <outputs />
45 </codecell>
46 <markdowncell>
47 <source>Create a superposition</source>
48 </markdowncell>
49 <codecell>
50 <input>state = alpha*psi + beta*phi; state
51 </input>
52 <language>python</language>
53 <prompt_number>21</prompt_number>
54 <collapsed>0</collapsed>
55 <outputs>
56 <output>
57 <output_type>pyout</output_type>
58 <text>α⋅❘ψ⟩ + β⋅❘φ⟩</text>
59 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUY4QUFBQVhDQVlBQUFCdFI1UDBBQUFBQkhOQ1NWUUlD
60 QWdJZkFoa2lBQUFCSEJKUkVGVQphSUh0MlZtc1hXTVVCL0RmdmIwZHFCWXRqWkNyV3ZkQk9pRFZs
61 bXBUTFRXMFVpU0drSGpScG9aRVRTVWtUUXlKc2VhSUd6RlVFU1hFCkEwcnd3SldLNFVFMFNqd2dh
62 Rk5xbmtyYTRQS3c5czdaZDkrOTl6Mm5kMEJ5L3kvbmZHdDlhNTMxLzc3MXJXL3RmUmpFL3hMM1k4
63 eS8KSFVRL28xODVOdmZDZGpTR05URC9KZ3pOeVM3SGhGN0UwRmVZaG5ZUjQxcGNpeWFOY2J3VUIr
64 UmtsZnhhR2d5eU54aUpQM0t5cDdBYwpWd3hnSEhrc3hWKzRXTVRYakMvd1NZTisydkI1VGxiSnJ6
65 ZVozd2pHNHRzQytTYnNnVkc5OUQ5dEorMk93NTlZbzVZWW5mZ05oelhnCnAxbHNZQjZWL0FacThZ
66 OUNSNGx1TlpiMDB2OGRPMkV6Q3ZQeFNFNCtYbVR4MnczNG1vcjNTM1NsL0FacThXY29KL01XWmc1
67 Z0xDbk8Kd21NRjhodnhpaWdaOVdLdTh1UXE1VmRVOHljbWdiVmlITDdHbGZnbDBUZmg3d0s3WVRn
68 UFIySURic25vaHFvZDY5dkZ4WFJxUnI4TwppL0ZzQ1lIK3dIalJ6WXpHUTlndVl2OEtSeXZtbUVV
69 clZ1QjduSVNEc0F0dXdLZTV1WFh4TzFqVXFVWEp1Qm4zSmNicHp0MmRmRDZKCmZUSzJsMkN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Z1JHaXVWaUsKUjBYaTdZazNjTDdxL240YmpoRk54R3hSWnNkZ1Y5eXMrTjZoSC9p
84 VjljQXBwdUxDT3Z6TVVwMXQ5YUNqem5tN0s2N0haYWppT0VTdAp2YTVDS2IvK2ZLU2ZyNzVGV2FL
85 NDlXd0UzOVE1YjY0NHpYMkJRNVcvejhtaWxGOXZGcjlUY2J1V1lnbys3TUZIcTZpenYvWWlEamlq
86 CnpubXpOZmJDcklyakhGR3FxdEJYL0xxaHA5ZkE3WFg0R09nL1V4cDkrMW5GOGM0NjdQOHJmeFlO
87 WWhDREdBVDhBKzB3M1dzNWRhbkkKQUFBQUFFbEZUa1N1UW1DQwo=
88 </png>
89 <latex>$$\alpha {\left|\psi\right\rangle } + \beta {\left|\phi\right\rangle }$$</latex>
90 <prompt_number>21</prompt_number>
91 </output>
92 </outputs>
93 </codecell>
94 <markdowncell>
95 <source>Dagger the superposition and multiply the original</source>
96 </markdowncell>
97 <codecell>
98 <input>ip = Dagger(state)*state; ip
99 </input>
100 <language>python</language>
101 <prompt_number>22</prompt_number>
102 <collapsed>0</collapsed>
103 <outputs>
104 <output>
105 <output_type>pyout</output_type>
106 <text>⎛⎽ ⎽ ⎞
107 ⎝α⋅⟨ψ❘ + β⋅⟨φ❘⎠⋅(α⋅❘ψ⟩ + β⋅❘φ⟩)</text>
108 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQU5vQUFBQWFDQVlBQUFEUjlVSnZBQUFBQkhOQ1NWUUlD
109 QWdJZkFoa2lBQUFDSHBKUkVGVQplSnp0bkhlTVZFVWN4ejkzUjBmZ3dEdWFvaWg0b0lKS1FNQ1du
110 RjFBTUVyVTJFQVRRVVFsRmpSZzdCcERiSW1DR3ZWTUVLT29JV0pzCkpOWTFGaXlnU0FtaWxOaUFp
111 RmhqUWVYT1AzN3p2TGV6TS9ObTN0dTdOYnFmNUxLN00vTm1mci85dmpmbE4zTmJRWms0aHdHekxY
112 bmYKQStlMG9pMWwva2RNQV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wNnFDc0VDV2pxOW1hZlRLT2ZKOHRVcnkKcncvd1Nid2UwOVJ4QnhJSnVnZnpodW9X
153 WW91OEdEOVF1RkRkakF5eFhTMEdOU0pmekVKYWJxcllpUHZrUkp4Njh1ZnpmNUE4OVVueQpzUTc1
154 dDZNZG5qYkVHWVk4eUxialF6dVJUV2pYT2loRUx4Y2hXbzBsZWFSTWFzdEhzM3JDOVhMaHExV1Nm
155 M09SWUU2aTVsVklhTFVZCnY1RXhITGpNa1crTFRPcmtNdGhnNnRGTjNFbTZVL0F1SCs5QXdyOUo1
156 TFRQN1pESXBzOHArR2N3YjZpR290dWc0NnZWQXNUK0xQaG8KbGthdm5DUFBWeXVYZnhPUXFIdmVJ
157 R2I3S1lPZHlPNzRCTEwvYnNWeTdEZExEZWJlMXNTbEdXendiYU1kOEZlSytsMCt4dmRrWE9qKwp6
158 VUpPYmZpc1YwOUhUb2owU0NvWWFFTWNYNjMyQXo2bGNLOHRGSisyMHVqbDh0RkhLNWQvWFpEamFC
159 UHduMFVCY3ZxNGMyS3BaR3h6Cit2Wmt2em1LU2Uva0lsWnNQcWF0TS9TNkRyVHNqL240YXRXSjdL
160 T1pMMW4wU2x1Znk3K094RTdzbHlsVHBreVpNbVhLbENtVGdyOEIKMktjNjJRN3k0RTRBQUFBQVNV
161 Vk9SSzVDWUlJPQo=
162 </png>
163 <latex>$$\left(\overline{\alpha} {\left\langle \psi\right|} + \overline{\beta} {\left\langle \phi\right|}\right) \left(\alpha {\left|\psi\right\rangle } + \beta {\left|\phi\right\rangle }\right)$$</latex>
164 <prompt_number>22</prompt_number>
165 </output>
166 </outputs>
167 </codecell>
168 <markdowncell>
169 <source>Distribute</source>
170 </markdowncell>
171 <codecell>
172 <input>qapply(expand(ip))
173 </input>
174 <language>python</language>
175 <prompt_number>23</prompt_number>
176 <collapsed>0</collapsed>
177 <outputs>
178 <output>
179 <output_type>pyout</output_type>
180 <text>⎽ ⎽ ⎽ ⎽
181 α⋅α⋅⟨ψ❘ψ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VzBReEZUTG9ES1lS
221 dlE2N1NKaCs4CklqT3VvT05WVkIvYmpGTmVIcTVnemxnVDZ5dEw3MmJLdFE5d1pNVDJIa1FYb3JY
222 eElBWHJwRzgzRFVPdVZnTVRZaUI2U21tVHB4Y2QKTDhydFNLMFdiVXpZM1IzYU53anphVmtTNTI3
223 SVNTT3EvNkNLd3JqVk1NNldWMUY5YkRwT2VYcFl3OWgyUExMMnJqUFhxSVBiVHZWWApxRUJxRTMr
224 bEVBL3lSQy9waHhnR0l3dFRmMGlJTVpGcG52bkFhc2UrNHI2SmtxU08yTlZSdld6amU4eW5aVW1j
225 ZHdPL3gvU3ZVVjZNClRmaTY4Q3FxajAzSEtTOFBheGk3akVmVzNuWG1XcXNmQmxtSGZJTWpUaFhz
226 N3VSczhuUkI2bGxKUzBkTU5NK3hmWlNhZ2E4YzJpZHgKUGc3NDJpRzNyd3I1TURiaDY4cExxeng4
227 YkRKT2VYcFl3OWhsUExMMnJqUFhXcDA4OXlMRjIrYVkvZjFvV3lPV3BOWEFGd243VGZLMApJTFVZ
228 VjVuK1FJUkdVNEMzSE5vbmNUNEplTWNnUjFFWW0vQjE1YVZWSGo0MkdhYzhQYXhoN0RJZVdYczNU
229 NjZwcTU3NDJrZlVyMjNiCnlDUlBiK0svMFZCcjlVc2hSeHpudnFSejhTd1M0elI0YVpXMWowM0dL
230 VThQYXhpN2prZVczaTBhMTFLbFNwVXFWYXBVcVZLbFNwVXEKVmFwVWV2b2Z6NFNPd3VmaXE1Z0FB
231 QUFBU1VWT1JLNUNZSUk9Cg==
232 </png>
233 <latex>$$\alpha \overline{\alpha} \left\langle \psi \right. {\left|\psi\right\rangle } + \alpha \overline{\beta} \left\langle \phi \right. {\left|\psi\right\rangle } + \beta \overline{\alpha} \left\langle \psi \right. {\left|\phi\right\rangle } + \beta \overline{\beta} \left\langle \phi \right. {\left|\phi\right\rangle }$$</latex>
234 <prompt_number>23</prompt_number>
235 </output>
236 </outputs>
237 </codecell>
238 <markdowncell>
239 <source>&lt;h2&gt;Operators&lt;/h2&gt;</source>
240 </markdowncell>
241 <markdowncell>
242 <source>Create symbolic operators</source>
243 </markdowncell>
244 <codecell>
245 <input>A = Operator('A')
246 B = Operator('B')
247 C = Operator('C')</input>
248 <language>python</language>
249 <prompt_number>24</prompt_number>
250 <collapsed>1</collapsed>
251 <outputs />
252 </codecell>
253 <markdowncell>
254 <source>Test commutativity</source>
255 </markdowncell>
256 <codecell>
257 <input>A*B == B*A
258 </input>
259 <language>python</language>
260 <prompt_number>25</prompt_number>
261 <collapsed>0</collapsed>
262 <outputs>
263 <output>
264 <output_type>pyout</output_type>
265 <text>False</text>
266 <prompt_number>25</prompt_number>
267 </output>
268 </outputs>
269 </codecell>
270 <markdowncell>
271 <source>Distribute A+B squared</source>
272 </markdowncell>
273 <codecell>
274 <input>expand((A+B)**2)</input>
275 <language>python</language>
276 <prompt_number>26</prompt_number>
277 <collapsed>0</collapsed>
278 <outputs>
279 <output>
280 <output_type>pyout</output_type>
281 <text>2 2
282 A⋅B + A + B⋅A + B</text>
283 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQU1BQUFBQVpDQVlBQUFCbjdTSGdBQUFBQkhOQ1NWUUlD
284 QWdJZkFoa2lBQUFCT05KUkVGVQplSnp0Mmx1b0ZWVWN4L0ZQNmpuWnNkTk5LelZGS0xzWDFFT1Jw
285 R1lJS1JrRlJnUkpENzBvRkJSRm1sUXYwa3NQUVVWWVBZWFJUY1RxCklTcUtvdWhDRDBZU2RDVUt0
286 SXRkMEpKU3V1bnBZZTNOMlU0emU2ODFNL3NjT2N3WERwczlhODNNLy9mL25UWHJ2OVpzR2hvYUdo
287 STUKRW1kZ3luZ0gwdENUcmw1Tkh0dFlKZ1Fyc0JMSFlDT21ZdHU0UnRSUVJPTlZ6UXpncGRZbm5J
288 NFJYRGh1RVRVVTBYalZCMDdBbjFqUQpjZXdQckJtZmNCcTZFT1ZWYWcyN0VvUFkzS1hQUnN3cmFQ
289 c0h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QllkVzhIUTkxSEwrNDR5WjVET0FTUEZQUS9v
303 TWdZTEV3bFhVR3VreFkKdEdTWkk3elZtNS9UOWg0MmRYemZLZnp3cVJ1cDJnWXhBNy8ydUc0djZ0
304 RFhTWlZjVTk1anhzYXJNdnFTdlNvYUFIY0tLK3N0bWVQZgpDblZaMGRQaEl1RnQyN3NGN1dmak9H
305 RlVadzNaSnRSdFdSWUlpWG95cHkxYlErNFM2c0J1YjRGVHRaMG0xSmtqQmRlTHBRNTluVlRKCk5l
306 VTlabXk4S3FNdjJhdThBVEFQbHd1ai9HQ21iV2JtTTB1N1ppc0src2JXNTFNNWJYc2NXdWUxbVlG
307 cHdnbytoczNDMUppM3cxQkcKMnhMRlQ2RVU2dExYcGtxdXEzak0ySGhWUnQ4U0ZiMGF4anZDVzdV
308 ODVndWphMU5CK3l1S0YxeXJXK2MrSnlRcGx0UnR3aUc4NXYrdgp4Y3RvbTRGWGhYM2tmbEYyRzdS
309 c3JxdDYzSTI2dkNKZFh5bXYyalBBTU83Qk5UaEwyQlBlNE5CZGdEWENDQ004UGRiaFpYeU5tNFZW
310 Ci9SWENOdHA2L05zUjJKV0MyRnZ4U0VxQUpkZ3Y3R3FzRm1yY0t0cFdDZHFxbGo5MU1WWDVYRmZK
311 dzZlMUt3bGt2YXFpN3c0bHZHcVAKbG1GYzFuRjhCRzhZL1NVZFlick1qdFNQOEVzcjJLS1Jkd0Fm
312 QzR1V01pekhCYmcvOGJ4VDhMMXEyaVlMTlhFL1NkRTNvSHl1cStRaAoxcnVxWGxYUk4xZi92Um9Y
313 bHVHdThRNmlqMHdrZlJOSnkySEROUDNma3g1UEpwSytpYVNsb2FHaG9hR2hvV0dpOGgrc1pjTHdo
314 djBRCnV3QUFBQUJKUlU1RXJrSmdnZz09Cg==
315 </png>
316 <latex>$$A B + \left(A\right)^{2} + B A + \left(B\right)^{2}$$</latex>
317 <prompt_number>26</prompt_number>
318 </output>
319 </outputs>
320 </codecell>
321 <markdowncell>
322 <source>Create a commutator</source>
323 </markdowncell>
324 <codecell>
325 <input>comm = Commutator(A,B); comm
326 </input>
327 <language>python</language>
328 <prompt_number>27</prompt_number>
329 <collapsed>0</collapsed>
330 <outputs>
331 <output>
332 <output_type>pyout</output_type>
333 <text>[A,B]</text>
334 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUM0QUFBQVdDQVlBQUFDL2tLNzNBQUFBQkhOQ1NWUUlD
335 QWdJZkFoa2lBQUFBa2hKUkVGVQpTSW50MTgyTFRXRWNCL0RQdk9XbEpwVEdZTEt3VUZNenpZWm1N
336 ek5KaVdsMi9nSEZRbFptNHlVYlk0V3RRc3FVRlJZaVNvUTRhSXBTCjhyS1FST1JkU1pFTU0xZzh6
337 K1hPblhQbW5udG5aa0crZFh2Ty9YM1A3L3Y3M3Q5em51YzhsNzhVTlNYZkwrQXJMdUZBbWR3OXFN
338 TzIKS3VvT1lDMDY4UU5EK0JLNVJpekIyWGpmK3hqdngwbzBvSzlVTU1sWnVCM2ZjYXdLMHdVMENH
339 WlBwWEJ0VWY4ZWFrdTRSRW93RDJxdwpEL1ZvcmlLL2dPV1loWXNwM0FOY0ZoclVscFpjamZIMXNk
340 aG5relBlRThlckdYd3JSdkU4ajFoU2hwOFhDOVhqTVQ3a0VjM0FPYnpLCjROYmhwekN6cFVqU0Vs
341 S0RSVGlFVmZGNktJclBLT2N3QmJYNGlPTWw4ZG5ZSExudHhtOGV2ejNXVjFCc2hkRHhLL0g3Mnpn
342 MjQxa0YKT3RDQk9aaUx2VEUyRTZ1RlhXME5ibFVpbUdURWEzRk4yS1lLT0NoMHZMT1NBaEZiWXU2
343 eUZHNGp2bUhEUkI3ekxzNU53dDVldkZDSwpPMTRwZXZBT2oxSzRRYndXR3RPWUpaRG5VV25Demxp
344 a3F5amVFc2RxakhmaitnVDhKMkYybCtKdUhzRWtKWFlVdlNueFBtRzZkK1VSCkxrSnJ6T3ZQNEJk
345 Ry9xa0pGbWU1UjZWTGVJT2RUK0ZleERHdDQ0c20wQ3pzM3pjeStJRTRIaEYrUUM0a1JkZnRlSU1G
346 R2ZjdWpzS24KUytJZHd2bGpNQ1B2cFBEeXFpdUpOMkUvUnJBanA4Y3h3Zm5DR1dFMEdudm96L05j
347 d0FtOGpQeXcwTDNDd2FjRlQzRGYyS2srZzVzeApaeVJlSi9Gelczak5IeloySFZWa2ZLcXdld3Ex
348 aXBGUTNWa2xMNlpUZTlyRWUzRm5tclF4M3ZpSThHY2lhNnZLcTlrdC9adzlHV3dWCnZBMVBzZTUv
349 L052NEJmcHZkNXROTFJsdUFBQUFBRWxGVGtTdVFtQ0MK
350 </png>
351 <latex>$$\left[A,B\right]$$</latex>
352 <prompt_number>27</prompt_number>
353 </output>
354 </outputs>
355 </codecell>
356 <markdowncell>
357 <source>Carry out the commutator</source>
358 </markdowncell>
359 <codecell>
360 <input>comm.doit()</input>
361 <language>python</language>
362 <prompt_number>28</prompt_number>
363 <collapsed>0</collapsed>
364 <outputs>
365 <output>
366 <output_type>pyout</output_type>
367 <text>A⋅B - B⋅A</text>
368 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUU0QUFBQVNDQVlBQUFEMTV1aVJBQUFBQkhOQ1NWUUlD
369 QWdJZkFoa2lBQUFBaTVKUkVGVQpXSVh0MXp0b1ZFRVlCZURQR0VHTGxRUU1haFFpcEJVRjBTcVl3
370 bWRockN4Rk8rMEYwVUt4VVZTMEVMRU5hV09oUWhvckZmR0JsWStnCklwcE9nbURBS2tyVXFMR1lR
371 ZGRrN3U1OUpBRmhEeXgzZHM0L2M4N1p1WFBuTGkyVXdwS0M5VmN3aVRNTmFnYXhEWnZ3RlUvd1BY
372 S3IKMEluck9JZXBndnFOc0JDNmVmSTJ4VmI4eEZDTzJnMll3YVVFdHk5eUkxWE1MSUp1a2J5WmFN
373 UGRLSHc3Ui8yaFdMc3JneCtMcG1wVgpUQzJnYnRPOGJUa05IY1VOVEdOTmp2cCtZWnM4VG5BMXJN
374 Y0VQdWZVejR2NTBpMmFONGt1NGRkdnd6Zys1Qmp6Rmc4enVCUENTaDRwCmEyaUJkY3ZrVFdJSWZi
375 SDlGRDgwdmxOWFI0Tm5aL1YzeEw0SkhDNXJaaEYwYytWdGJ6SkpINWI2ZSt0L2pOKzdZanVGL25q
376 dHhjWFkKcm1FQTcrS2NZMDN0RjhkODZKYkpPd2Z0ZUlTMWRYMUR3cXB1YmpEdUdyNWhlWUk3THh6
377 dnUvT2FLSUNxdW1YenpzRXhISi9WZHlGTwp0TGZCdUZIcGh6T3NFQjY0NzRzWXlZbXF1b1h5Wm0z
378 VjdqakpHLzhlN1QzeG1uWFNkR0FqTG1mdzA4SmRzVTdZUnBQQ1ZqcWRVWi9DCmlCQ29xbTQ5eXVh
379 ZGcySHNTUFFmRUZiZ1pNYTQvWkVmeU9DM1IvNU9YaU01VVZXM2NON1U2YmdUbjNBdndZM0hhOVlL
380 OUVlaDFKWloKaGxPeFBaZ3h2aXlxNkZiSit3ZGJoTk9qTTRQdmpRYUhNL2puZUpubzc4Rk5mTUhC
381 WmlaS29LeHUxYnk2OFFxL1l1RnI0YjJvSHJlRQpsOEVaNFUvMEErekJTbUcxWGtSdVNqaWQ3c2ZQ
382 S0o3aHF2QWNtaTlVMGEyU3Q0VVdXdmgvOEJ0MXY4VEcwN0FDaFFBQUFBQkpSVTVFCnJrSmdnZz09
383 Cg==
384 </png>
385 <latex>$$A B - B A$$</latex>
386 <prompt_number>28</prompt_number>
387 </output>
388 </outputs>
389 </codecell>
390 <markdowncell>
391 <source>Create a more fancy commutator</source>
392 </markdowncell>
393 <codecell>
394 <input>comm = Commutator(A*B,B+C); comm</input>
395 <language>python</language>
396 <prompt_number>29</prompt_number>
397 <collapsed>0</collapsed>
398 <outputs>
399 <output>
400 <output_type>pyout</output_type>
401 <text>[A⋅B,B + C]</text>
402 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUdBQUFBQVdDQVlBQUFBLzQ1bmtBQUFBQkhOQ1NWUUlD
403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QTNSbTJkSU4zbFdKUEg4V3hTZDZPCjUvRmt5M3N6
417 NWY2WVllOXFQSmFoaCtJVXRBVlhGL1EzdzNCdENkZUtKTCt4Ukw0MHlTZHpqZXN4YjUwVWRGYWE0
418 NGtLdmNXNHY2MnYKVmdwYUprNjhieFRJZHFXMkxBTEdVcnV0UURaRFZDdndkTW40VTN2RTJ3MThL
419 NnJBNnhUdlE4UWlyUkY3WlRZYUxjOUw4Qk5PTHRFOQpUWGpCS3lYeUhmaW1vSDhSWGhScDRyYVNz
420 YzFUN2dOZDV1MkV1bVhvYkxFSWt6aTlwWDhVdDRoQ29haEVyeXhENTR0Uzh4eUhxNTl4Cmh6MmV1
421 RnhhbnA2dkVkNjRQbzE3VFpScDU0c0xzdTBpaW9qNnZaa2VMaEViYVJGMjRRY1JnUk00cmt1ODNj
422 UWVYQ1VPZlJ1RUEzeUYKWDBYQlV1UThsV2gweWJodTRaRSt6aldWcTRpcFlFcGw2SFJnV0hoMXY3
423 QlAvNjZ1RDZIdVhWQS9jVGRlN2VOOFcvczQxeUcwUjhBQgpFU0w5Q01WT21DL3kva2ZUYkVjM2Ni
424 UDR0NmZvM1FYaEFBTU1NRUFkL0FmM1FPSkhTbklZTndBQUFBQkpSVTVFcmtKZ2dnPT0K
425 </png>
426 <latex>$$\left[A B,B + C\right]$$</latex>
427 <prompt_number>29</prompt_number>
428 </output>
429 </outputs>
430 </codecell>
431 <markdowncell>
432 <source>Expand the commutator</source>
433 </markdowncell>
434 <codecell>
435 <input>comm.expand(commutator=True)</input>
436 <language>python</language>
437 <prompt_number>30</prompt_number>
438 <collapsed>0</collapsed>
439 <outputs>
440 <output>
441 <output_type>pyout</output_type>
442 <text>[A,B]⋅B + [A,C]⋅B + A⋅[B,C]</text>
443 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQU44QUFBQVdDQVlBQUFCQUhrbFFBQUFBQkhOQ1NWUUlD
444 QWdJZkFoa2lBQUFCT1ZKUkVGVQplSnp0bTB0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ZEIvQ1NhMlFRWDNLUHJx
471 eG1UeTZ5TFhKbnNNMmpvYVpYOTEKYUd5eXgyQ1UvV1hUUCtmcDlINmRmTmRrSC9LNjBrOE9kaDBI
472 UWNNVXN1a2ZjOElsaG8zQSs1bDg5NUpkcFAzblJpci9CeDM3cldFSwpXZlV2UDlVSGtIMEozNUpz
473 cU04cDNQOHpsY0x0U0d4L0tQdlZSa05EME5meFlORXZsVmIvbHBhV2xwYVdscGFXbGc3L0FwMkpD
474 c0NZCkVCSG1BQUFBQUVsRlRrU3VRbUNDCg==
475 </png>
476 <latex>$$\left[A,B\right] B + \left[A,C\right] B + A \left[B,C\right]$$</latex>
477 <prompt_number>30</prompt_number>
478 </output>
479 </outputs>
480 </codecell>
481 <markdowncell>
482 <source>Carry out and expand the commutators</source>
483 </markdowncell>
484 <codecell>
485 <input>_.doit().expand()
486 </input>
487 <language>python</language>
488 <prompt_number>31</prompt_number>
489 <collapsed>0</collapsed>
490 <outputs>
491 <output>
492 <output_type>pyout</output_type>
493 <text>2
494 A⋅B⋅C + A⋅B - B⋅A⋅B - C⋅A⋅B</text>
495 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQU84QUFBQVpDQVlBQUFEWnUzbTlBQUFBQkhOQ1NWUUlD
496 QWdJZkFoa2lBQUFCYlJKUkVGVQplSnp0bTNsb0hVVWN4ejgyaHpIeXZHdmFSQnN4MFZvUFBHdGJQ
497 R093aWhWRkJTc2VVQlFNRkd5MUZxMFhLdjVURmRPb3FNVzdGUThDClZnUVZFVk9Mb2tYVVJNRnFL
498 R28xYXFnVlJJMHRhbHZqSDc5WnN0bnN2SjNaMmJmN3JQT0I1ZTB4TS92N3p2eDJkK1kzODhEajhY
499 ZzgKdWRBRU5CZHRoS2Q0ZGl2YUFJOHhOY0R0d0RBd0ZiZ0F1QXo0cWtpalBCNVBNbGNEVjRhT0h3
500 VGVMOGdXVHhVd3FXZ0RQTVljQ0Z3ZgpPaDRBVHNLMzRmOFcyMjd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EKZkloRWhtY0NINmswRGFTdmw0T1JLWVB1Yk9SWjRXSjNr
528 WDdrU2hvL0xGUnZzTFN1eFBoSTJDandObVAvWUFIcERrUlhsUFFqRWJxNQo2SmZwN1FRK1F3YmRK
529 clFpYjc0QjlQL1FNYUVIcVhDVGJyT0wvckN1RnVCSHRWOUgrbnBwVWVkSERXelBHaGU3cThtUFhE
530 SHh3MTFKCmIxV3hBdm5Mbk1maitZOHhEYk0xMEI2UHgrUHhlRHdlajhmajJUWDVGN1NTV0xra1du
531 SzdBQUFBQUVsRlRrU3VRbUNDCg==
532 </png>
533 <latex>$$A B C + A \left(B\right)^{2} - B A B - C A B$$</latex>
534 <prompt_number>31</prompt_number>
535 </output>
536 </outputs>
537 </codecell>
538 <markdowncell>
539 <source>Take the dagger</source>
540 </markdowncell>
541 <codecell>
542 <input>Dagger(_)</input>
543 <language>python</language>
544 <prompt_number>32</prompt_number>
545 <collapsed>0</collapsed>
546 <outputs>
547 <output>
548 <output_type>pyout</output_type>
549 <text>2
550 † † † † † † ⎛ †⎞ † † † †
551 - B ⋅A ⋅B - B ⋅A ⋅C + ⎝B ⎠ ⋅A + C ⋅B ⋅A</text>
552 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQVd3QUFBQWFDQVlBQUFDVGsyYlJBQUFBQkhOQ1NWUUlD
553 QWdJZkFoa2lBQUFCd1pKUkVGVQplSnp0blhtSVZWVVl3SDh6NHpLbUpZV2FXMlhtVXBKbVdZcWhF
554 bEdSTFdwa0N5MDZ4UmoxUndXYWxRU2xMWnFwYmYrMENiYUlCZGtDCnRraUxtVVVGWlNsYUZsbVVS
555 WVlsV0VHN1RuOTg5ekhYTy9lK2Q5Wjc1MDduQjQ4Mzk1eHp6M2UrNzV6djNIUFA4Z1lDZ1VBZ0VG
556 Q2sKRWRnVVpIaW43RFlvMnI1ZGdjVkFuYVA4VlBRNUZ6ak5rVHhUaXJhN0NiN0xYSmd2ZGZJc1ZJ
557 Vy9nTitERE8rV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Thob3dtOTlE
584 RVhtcWwzZzAzZmkyTmc5ejNiU1JJbDgKS2Y2VTI0Sk05TnN3Q2ZuQmt1U3ByQ1FETE9WY0RSeEU2
585 N0hjQ3Yxb1BjNnB1aFVyaVU4ZFhOZ1l5bXZuejZQdjNRcHBiOEROY2R3WgpHZUVyZ1p1QjcydmN2
586 eHBaelI5WUphM3YrcmdHdU5mdzNpUStmU2VPamQzemJDZGw5U1VuYkFmZXJCSy9FWGxhMlp6ZzZZ
587 T01QcnVsCnhDMlA4aDlwa1g4ZU90aFNWanNQamU1YlhDUGRPT0FLemJ4MVVWMzhBam13a2p6Vkdz
588 ZG5mUnlQZEdDZERlNU40dHQzVkZDeGU1N3QKcEt5K1pFMy9TUEQ4alBpWnlKeE5OZU9vc0lMc1Vl
589 cjhxQXltUDRDVGx3NDJsTjNPYXhFbjZaVVJmekl5Q21uSWlIZUZUb2RkaC96WQowcFNVT0ovMVVS
590 L2RON1pXUWtWOCtvNHFxbmJQbzUyVTNaZXNhSTRFbjVFSTd3dk1SbFpabHlPbngweG9CTzVHVm82
591 enVERXFRNU9oCkROODZ1S0RzZG01RWRqaHNSanFpeXNoeEJMTHdNNWQ4VG96cWROZ2dIY05DMnBi
592 TlozMU1wWFdQc0ExNStJNHFxbmJQbzUyVXpwZGMKT01aczVNVFZRR1RmNmg1azVSTmtoSEFBOGpP
593 UWE0RlhER1djRDl5RC9MSldDN0kvOGJKWS9ERGdjV1NlcVFINEEvbDV3dWxSZWRxRApEclowQkR0
594 WDZBcWNoMnluR28wc3FHMURIRFN2LzI2aU9vZWRSUm5hRE9SWHA2cm8yTjFYTytsSXZoUUkvQys0
595 QXpuRUVNaVhZUGRBCklCQUlCQUtCUUNBUUNBUUNnVUFnRUFnRUFvRkFJQkFvaXY4QUxKRDhNYVAw
596 U3pRQUFBQUFTVVZPUks1Q1lJST0K
597 </png>
598 <latex>$$- B^{\dagger} A^{\dagger} B^{\dagger} - B^{\dagger} A^{\dagger} C^{\dagger} + \left(B^{\dagger}\right)^{2} A^{\dagger} + C^{\dagger} B^{\dagger} A^{\dagger}$$</latex>
599 <prompt_number>32</prompt_number>
600 </output>
601 </outputs>
602 </codecell>
603 </cells>
604 </worksheet>
605 </worksheets>
606 </notebook>
This diff has been collapsed as it changes many lines, (1044 lines changed) Show them Hide them
@@ -1,1 +1,1043 b''
1 {"cells":[{"cell_type":"text","text":"<h1>Gate Decomposition</h1>"},{"code":"%load_ext sympyprinting","cell_type":"code","prompt_number":1},{"code":"from sympy import sqrt, symbols, Rational\nfrom sympy import expand, Eq, Symbol, simplify, exp, sin\nfrom sympy.physics.quantum import *\nfrom sympy.physics.quantum.qubit import *\nfrom sympy.physics.quantum.gate import *\nfrom sympy.physics.quantum.grover import *\nfrom sympy.physics.quantum.qft import QFT, IQFT, Fourier\nfrom sympy.physics.quantum.circuitplot import circuit_plot","cell_type":"code","prompt_number":2},{"cell_type":"text","text":"<h2>Example 1</h2>"},{"cell_type":"text","text":"Create a symbolic controlled-Y gate"},{"code":"CY10 = CGate(1, Y(0)); CY10\n","cell_type":"code","prompt_number":3},{"cell_type":"text","text":"Decompose it into elementary gates and plot it"},{"code":"CY10.decompose()\n","cell_type":"code","prompt_number":4},{"code":"circuit_plot(CY10.decompose(), nqubits=2)","cell_type":"code","prompt_number":5},{"cell_type":"text","text":"<h2>Example 2</h2>"},{"cell_type":"text","text":"Create a controlled-Z gate"},{"code":"CZ01 = CGate(0, Z(1)); CZ01\n","cell_type":"code","prompt_number":6},{"cell_type":"text","text":"Decompose and plot it"},{"code":"CZ01.decompose()\n","cell_type":"code","prompt_number":7},{"code":"circuit_plot(CZ01.decompose(), nqubits=2)","cell_type":"code","prompt_number":8},{"cell_type":"text","text":"<h2>Example 3</h2>"},{"cell_type":"text","text":"Create a SWAP gate"},{"code":"SWAP10 = SWAP(1, 0); SWAP10\n","cell_type":"code","prompt_number":9},{"cell_type":"text","text":"Decompose and plot it"},{"code":"SWAP10.decompose()","cell_type":"code","prompt_number":10},{"code":"circuit_plot(SWAP10.decompose(), nqubits=2)","cell_type":"code","prompt_number":11},{"cell_type":"text","text":"<h2>All together now</h2>"},{"code":"gates = [CGate(1,Y(0)), CGate(0,Z(1)), SWAP(1, 0)]","cell_type":"code","prompt_number":12},{"code":"for g in gates:\n dg = g.decompose()\n display(Eq(g, dg))\n circuit_plot(g, nqubits=2)\n circuit_plot(dg, nqubits=2) ","cell_type":"code","prompt_number":13},{"code":"%notebook save decompose.ipynb","cell_type":"code","prompt_number":30},{"code":"%notebook load gate_rules.ipynb","cell_type":"code","prompt_number":53}]} No newline at end of file
1 <?xml version="1.0" encoding="utf-8"?>
2 <notebook>
3 <name>decompose</name>
4 <nbformat>2</nbformat>
5 <worksheets>
6 <worksheet>
7 <cells>
8 <markdowncell>
9 <source>&lt;h1&gt;Gate Decomposition&lt;/h1&gt;</source>
10 </markdowncell>
11 <codecell>
12 <input>%load_ext sympyprinting</input>
13 <language>python</language>
14 <prompt_number>1</prompt_number>
15 <collapsed>1</collapsed>
16 <outputs />
17 </codecell>
18 <codecell>
19 <input>from sympy import sqrt, symbols, Rational
20 from sympy import expand, Eq, Symbol, simplify, exp, sin
21 from sympy.physics.quantum import *
22 from sympy.physics.quantum.qubit import *
23 from sympy.physics.quantum.gate import *
24 from sympy.physics.quantum.grover import *
25 from sympy.physics.quantum.qft import QFT, IQFT, Fourier
26 from sympy.physics.quantum.circuitplot import circuit_plot</input>
27 <language>python</language>
28 <prompt_number>2</prompt_number>
29 <collapsed>1</collapsed>
30 <outputs />
31 </codecell>
32 <markdowncell>
33 <source>&lt;h2&gt;Example 1&lt;/h2&gt;</source>
34 </markdowncell>
35 <markdowncell>
36 <source>Create a symbolic controlled-Y gate</source>
37 </markdowncell>
38 <codecell>
39 <input>CY10 = CGate(1, Y(0)); CY10
40 </input>
41 <language>python</language>
42 <prompt_number>3</prompt_number>
43 <collapsed>0</collapsed>
44 <outputs>
45 <output>
46 <output_type>pyout</output_type>
47 <text>C ⎛Y ⎞
48 1⎝ 0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0lTUEZzZ1BxTSs1VVRpdi9MalloWWN6WXl3cQpIS05GUVpwZDVlalI1T2daUTNPdkg2OWpZWW5l
63 QXNXVFc1anNkVlg0bkNmeTVmbUN2bjVSQzBhazl5NXhlYmd2SjNkdnNuRm5oUi9FCjdOZmpFM0ZS
64 M2lGMlozS0ZUdG5rYmhWVmJGSkIzekt4QzJmVHdFN2lZMFB6NW5GOGs5UDdITXR6Yll0eExPK2dL
65 QjhPcE9lZjRFY3gKZ1g1eFY4MHltSjRxYmhjN24rV0M0WGZVYWVJb0cwSmJOK29PMlN3dXlKMXdY
66 T3hxbGg0UnFpMjZ4Vkd5SmEvOGIweHVVRndNSHVwQQo5NkE0ZXJLTXc3ZVo5elU0SXNMMW1sQ1dj
67 eTFtaVZBZjA0SHR3NjU4VDg0UXgwVnJVL3J3bGZMajRhcm9FaCt6NzRuY2VFWDU5ZWxCCnhSV3hq
68 dGxpOTFkZ0V4N0k5RzFTVWVpcVNuUlQ4bjh6bk1jdkpiSmo4RWVIZm9wMHI4YmVkYTd6WDNBWmd6
69 dWJDa2Y3Z3o0QUFBQUEKU1VWT1JLNUNZSUk9Cg==
70 </png>
71 <latex>$$C_{1}{\left(Y_{0}\right)}$$</latex>
72 <prompt_number>3</prompt_number>
73 </output>
74 </outputs>
75 </codecell>
76 <markdowncell>
77 <source>Decompose it into elementary gates and plot it</source>
78 </markdowncell>
79 <codecell>
80 <input>CY10.decompose()
81 </input>
82 <language>python</language>
83 <prompt_number>4</prompt_number>
84 <collapsed>0</collapsed>
85 <outputs>
86 <output>
87 <output_type>pyout</output_type>
88 <text>S ⋅CNOT ⋅S ⋅Z
89 0 1,0 0 0</text>
90 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUlnQUFBQWNDQVlBQUFDNlRmY0hBQUFBQkhOQ1NWUUlD
91 QWdJZkFoa2lBQUFCZ2xKUkVGVQphSUh0bW4rc2xtTVl4ejl2NXpqbnRKTFRjYUlpVFVScHhQcGhO
92 VkZN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Kb3dYczVKQjFRS1g1R1RRdFZmY0NYa1hwWGxoR2tFRW5VQ051
119 Z3YyWVN2UUdpZUlxTGQ0cmdMZFJnbkN1ejRjMktJaHZRT3NTMnovNwpmbXFMRnE4N0t0VldvOExL
120 SG5TLzI1WE1MbWdoUEd4R0M5NEMrTk8wVFFHK1FKbkdORlJ5M3dtc001UGU3WE4wTW5wN2E4MllR
121 OGgrClU3Q3h5T2k1cnJCTlpvTERnUmRRb0ZscHhwNUQ4RkUrMDh5cEhkbEZXbTNtVlk4QzRLU0k0
122 aW90M3NlaEUySWIyWHBSR2Rwb05lYTUKRVhndFQvOFNZUVg2Z09UaEpETjRlN2Y2RVlzNEowaWFY
123 QldEOTFDYnpWdzlZbUNqTWVLaGhmbS9JNkc5SXhscGNsVU0za050SnQwZwo2MUFBNWFFdE90cjJK
124 clIzSkNOTnJvckJlNmpOcEJ2a0U3S1JOZWp6ZWxES2VyU2hpcVpGdmpTNUtnYnZvVGJMRWhyZGlq
125 NVAxNkdVCnJ5MnFZRFlrdEhlNG9UMXdLMHFGejBROGJrTkJlRS8wNjYwVnFCNlJKbGZGNEQzVVpx
126 RS9lc21nTDQ3N0NyUnp1S0dDYkdiZ1lSZloKbzc0aitvUlFiOG5UNUtvWXZCK3RhM2xJY0RXSC9q
127 dE9La2dhZzVRUWpDcDB1bXcvMUk2VThQOUVodVN4WFFrbGxGQkNDU1dVVUVJSgp3TDl4anFTc1FZ
128 cHF6UUFBQUFCSlJVNUVya0pnZ2c9PQo=
129 </png>
130 <latex>$$S_{0} CNOT_{1,0} S_{0} Z_{0}$$</latex>
131 <prompt_number>4</prompt_number>
132 </output>
133 </outputs>
134 </codecell>
135 <codecell>
136 <input>circuit_plot(CY10.decompose(), nqubits=2)</input>
137 <language>python</language>
138 <prompt_number>5</prompt_number>
139 <collapsed>0</collapsed>
140 <outputs>
141 <output>
142 <output_type>pyout</output_type>
143 <text>&amp;lt;sympy.physics.quantum.circuitplot.CircuitPlot object at 0x2c85f10&amp;gt;</text>
144 <prompt_number>5</prompt_number>
145 </output>
146 <output>
147 <output_type>display_data</output_type>
148 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQVE4QUFBQ09DQVlBQUFBdnRJMzNBQUFBQkhOQ1NWUUlD
149 QWdJZkFoa2lBQUFBQWx3U0ZsegpBQUFMRWdBQUN4SUIwdDErL0FBQUNUNUpSRUZVZUp6dDNFdElW
150 SDhZeHZIMzJEQ2psZUNGTGhob0dCUkJFR0ZFRUZtTFNNelNMTHU0CmtHaFRVRkl0dWkyc0lJcWlG
151 a0VVRmFVdXdxZzJicnFIMVNLNi9CZWhkTEVMMnQwd0tteTZwL2IrZDVIbHFQTjY5TXlNM3cvTTVw
152 d3oKUDU3ZmVlTnBqb002cWhvVWtVUUJnREE0cXFwZWh3QVFmZUs4RGdBZ09sRWVBRXdvRHdBbWxB
153 Y0FFOG9EZ0FubEFjQ0U4Z0JnUW5rQQpNS0U4QUpoUUhnQk1LQThBSnBRSEFCUEtBNEFKNVFIQWhQ
154 SUFZRUo1QURDaFBBQ1lVQjRBVENnUEFDYVVCd0FUeWdPQUNlVUJ3SVR5CkFHQkNlUUF3b1R3QW1G
155 QWVBRXdvRHdBbWxBY0FFOG9EZ0FubEFjQ0U4Z0JnUW5rQU1LRThBSmhRSG9ncXo1OC9sMGVQSG9t
156 cWVoMWwKd0tNOEVCV2FtcHBrOHVUSk1uNzhlTW5LeXBMUm8wZkxuVHQzdkk0MW9EbEtoU01LWkdW
157 bFNWMWRuYlMzdC84K2xweWNMRTFOVFJJZgpIKzloc29HTFR4NkllRStmUHBYNit2b094U0VpMHQ3
158 ZUxoY3ZYdlFvRlVKKzhuQWNwNyt6QUlnaXZsQW5lSnBCcFBqMTY1ZWtwNmZMCjY5ZXZPeHhQU0Vp
159 UVY2OWVTVXBLaWtmSkJqWWVXeER4NHVMaXBMcTZXcEtTa2lReE1WRkVST0xqNDZXeXNwTGk4QkEv
160 TUVYVStQcjEKcTF5NGNFRVdMbHd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gzNnRMeDkrMVpxYW1wa3dZ
201 SUZrcGVYSjB1WExwWEJnd2Q3SGJGSFltMTJsSWNIYS9aR3JQMERIRWhpYlhZOHRnQXdpYmx2V3h6
202 SApjWFc5NU9Sa1Y5ZHpnMXQ3ak1TOXhicFltbDFNUGJZQTZEODh0Z0F3b1R3QW1GQWVBRXdvRHdB
203 bWxBY0FFOG9EZ0FubEFjQ0U4Z0JnClFua0FNS0U4QUpoUUhnQk1LQThBSnBRSEFCUEtBNEFKNVFI
204 QWhQSUFZRUo1QURDaFBBQ1lVQjRBVENnUEFDYVVCd0FUeWdPQUNlVUIKd0lUeUFHQkNlUUF3b1R3
205 QW1GQWVBRXdvRHdBbWxBY0FFOG9EZ0FubEFjQ0U4Z0JnUW5rQU1LRThBSmo4RHdBb24zcHVmNG1n
206 QUFBQQpBRWxGVGtTdVFtQ0MK
207 </png>
208 </output>
209 </outputs>
210 </codecell>
211 <markdowncell>
212 <source>&lt;h2&gt;Example 2&lt;/h2&gt;</source>
213 </markdowncell>
214 <markdowncell>
215 <source>Create a controlled-Z gate</source>
216 </markdowncell>
217 <codecell>
218 <input>CZ01 = CGate(0, Z(1)); CZ01
219 </input>
220 <language>python</language>
221 <prompt_number>6</prompt_number>
222 <collapsed>0</collapsed>
223 <outputs>
224 <output>
225 <output_type>pyout</output_type>
226 <text>C ⎛Z ⎞
227 0⎝ 1⎠</text>
228 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQURrQUFBQVlDQVlBQUFCQTZGVVdBQUFBQkhOQ1NWUUlD
229 QWdJZkFoa2lBQUFBMUpKUkVGVQpXSVh0MkZ1SVZXVVV3UEhmTk9NTVhaalIwcHA1cUxCb3hxZ0gw
230 NHJJUUVub01rUVFYWVRvWXNKa1JCRkVwQlVSQlltOUdkUkRQaVF5ClVFUXZSWlFpaEQ1MEU4RXVV
231 RVpCV2c5Tzl3dFptV1Qxc1BiT2MvYnN2YzkzenB5SEh1WVArMkYvYTUyMTl0cmZXdXRi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ZGlvbmIxcEQrQlkvaVRGeApUSE9RUnhRNllKZklNNkNKbE1tbWp2MGlQ
246 WEpPZE95ektHY3picGlobnhUNmNMVm9URTNNTk1pOU9MWGhmaGhmaTUzS21SUUR4dklaCittckZn
247 M2dQbjNYYjhCTE5xZjBVSGkzUlc1cnBEWFRCWjFuakdjVUhLa3FndDJ5eERhWXl3MWZnUExHckd6
248 VHZaSzYzRHplSmZ4ZzYKWVZ4OGZxMFE1K0JjeDQ2bmpiaFRqSVRUS0d2dG5kQWpPbUl4dUNKNTEr
249 MkVlWm96NFNpKzY0TGRXV2I1UC9Fdk4yS243REZxRG5vQQpBQUFBU1VWT1JLNUNZSUk9Cg==
250 </png>
251 <latex>$$C_{0}{\left(Z_{1}\right)}$$</latex>
252 <prompt_number>6</prompt_number>
253 </output>
254 </outputs>
255 </codecell>
256 <markdowncell>
257 <source>Decompose and plot it</source>
258 </markdowncell>
259 <codecell>
260 <input>CZ01.decompose()
261 </input>
262 <language>python</language>
263 <prompt_number>7</prompt_number>
264 <collapsed>0</collapsed>
265 <outputs>
266 <output>
267 <output_type>pyout</output_type>
268 <text>H ⋅CNOT ⋅H
269 1 0,1 1</text>
270 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUh3QUFBQWNDQVlBQUFDajZ0dmtBQUFBQkhOQ1NWUUlD
271 QWdJZkFoa2lBQUFCV1pKUkVGVQphSUh0bW10c0ZVVVV4MzlGb0FnK1FLaVNxdHhHVUxDQXFFQWsx
272 bUlOUGo2SUdKR0VEeEJCRVIvMWtXQWtCbVBVcUlTWUdLTDRxQXBHCkhzSFkrUG9naWkyb0JWRlJh
273 MUt4S1BWRjFFZ2dKR0FWQ2VEenczL1c3dDA3czd1M2R5ODBkSDlmNXQ0NXMyZG01OHljT1dmdWha
274 UVUKNEExZ0cvQXY4Q2ZRQWl3MXNnendQdkNMa2Y4R2ZBYmNsb2YrWTRHWndOUEFScUFCYUFLbUdm
275 bGx3SHhmK3llQnpjQmZ3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czRy8yaUZPZXk1
302 V2hnTmdvOEcxRnVmejJLNmtHLy9kZVEKL2NlTFlzNVhxTzZrN29UN29CVEx6eDZ5SSsvdVFDblow
303 VHBvam05QWY1endLT1o4cGJib0F0eDBwQWVRY3Zpb1JwY2tLZDJFcE9LawpsSlNVbEpTVWxHN01m
304 MjBkWGlkUDdJV25BQUFBQUVsRlRrU3VRbUNDCg==
305 </png>
306 <latex>$$H_{1} CNOT_{0,1} H_{1}$$</latex>
307 <prompt_number>7</prompt_number>
308 </output>
309 </outputs>
310 </codecell>
311 <codecell>
312 <input>circuit_plot(CZ01.decompose(), nqubits=2)</input>
313 <language>python</language>
314 <prompt_number>8</prompt_number>
315 <collapsed>0</collapsed>
316 <outputs>
317 <output>
318 <output_type>pyout</output_type>
319 <text>&amp;lt;sympy.physics.quantum.circuitplot.CircuitPlot object at 0x472d550&amp;gt;</text>
320 <prompt_number>8</prompt_number>
321 </output>
322 <output>
323 <output_type>display_data</output_type>
324 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQU5jQUFBQ09DQVlBQUFDaS9KMktBQUFBQkhOQ1NWUUlD
325 QWdJZkFoa2lBQUFBQWx3U0ZsegpBQUFMRWdBQUN4SUIwdDErL0FBQUIxTkpSRUZVZUp6dDNVMUlW
326 RzBid1BIclRJOVprMlZaazVDTEtLaVJYR2lVQzVueVl4T1ZWQWlSClVxc0tETVlXdFluMkxTSnBx
327 N1hLb1hiWklvSlNORFFzb3pBRE45R21ORnRVUXdiMm9WYk9YTS9xaWQ3WEdkUEp5ek56NXY4RE45
328 N04KNlRyZS9wMDduY3BSMWM4aXNsSUFMQ2hIVmRYdElRQXY4cms5QU9CVnhBVVlJUzdBQ0hFQlJv
329 Z0xNRUpjZ0JIaUFvd1FGMkNFdUFBagp4QVVZSVM3QUNIRUJSb2dMTUVKY2dCSGlBb3dRRjJDRXVB
330 QWp4QVVZSVM3QUNIRUJSb2dMTUVKY2dCSGlBb3dRRjJDRXVBQWp4QVVZCj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1Z0FBQUFCSlJVNUVya0pnZ2c9PQo=
371 </png>
372 </output>
373 </outputs>
374 </codecell>
375 <markdowncell>
376 <source>&lt;h2&gt;Example 3&lt;/h2&gt;</source>
377 </markdowncell>
378 <markdowncell>
379 <source>Create a SWAP gate</source>
380 </markdowncell>
381 <codecell>
382 <input>SWAP10 = SWAP(1, 0); SWAP10
383 </input>
384 <language>python</language>
385 <prompt_number>9</prompt_number>
386 <collapsed>0</collapsed>
387 <outputs>
388 <output>
389 <output_type>pyout</output_type>
390 <text>SWAP
391 1,0</text>
392 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUU4QUFBQWNDQVlBQUFBZ0x1TGZBQUFBQkhOQ1NWUUlD
393 QWdJZkFoa2lBQUFCRGRKUkVGVQphSUh0Mkh1SVYxVVFCL0NQN3VyNjNEUnJlLzBSdUVUMlFIcFEw
394 c08wc2toSndoSktvaWlWSUFpRHBEQXF3WXdzaWg1WTlLU283RVZHClVWRXJiaVhhd3lpa0NJMG9r
395 dktQeU5JMHJWeGJzei9tL05pNzEvdjcvVzQrU25TL2NEbm56Snd6TTJmdXVUTnpMajNZSTJqRURD
396 ekEKUzNnZDB6QVE3NkFkSGRpT1Rpekg0TFIyRnI1UHZPMzRIRmRtWkYrRnRZbTNHWGVXc09jMVRL
397 M0I3NE5GK0RiSjNZREZhTU15ZkllMwpjR0lKWGJ1RS9rblJyZWlkb2QrTXI0VXo0ZTVrNkpNRk1s
398 b1Q3OVVxT2s3Rnh4aFV3cDZMazZ6WkplWmVtT1plbjZQM3dlUFlnbk5LCnlLbUwzbFhveitKSDNJ
399 Ry9NL1I1NG5TMXAvSGExRzRwa05HVTJyNVZkRnlVbnMxMWJCeUkyMVAvMERwellYUnEyM1AwdnpB
400 MzJUVzkKaEp5NktITGVBV0pUcjFSWjh5WGVUZjExTldUUFNPMndBdDd4K0VtWDgydmhOanlRK21X
401 Y053YnJzYXFBTnlDMWg1V1FVeGRGemp0VApIUEdqcXF4Wmh0V3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Tlo1CnQ5
415 anhwdFVwQ3ZIOUZtV2RkNys0M1dTeFNmcXhVQ1lPN2M5WWJjZHIzZ0RwV3RyanZOcFlJZUpjQlMy
416 aUlsanovNWl6ZDZEb3N4MkoKdzNPMFFlTFhYQ1ZCWElHWEs4eHFtVzFmeFFUeEYzdXNjTXdRZkpG
417 NDgzR1o3Z2x1cXpobDE0Z2IwaW5pbHJUaFA3RjJMOE5RVVdSWApub016dkFaY1hXTnRVNTVRVkp2
418 dHkvaTFCbStiMnY3bzJNMjI3Rk9ZS0s1ZlBkZ0o3RzlmWVE5NjBJTWUvQ3Y4QTk3RzZZNFE3TUxv
419 CkFBQUFBRWxGVGtTdVFtQ0MK
420 </png>
421 <latex>$$SWAP_{1,0}$$</latex>
422 <prompt_number>9</prompt_number>
423 </output>
424 </outputs>
425 </codecell>
426 <markdowncell>
427 <source>Decompose and plot it</source>
428 </markdowncell>
429 <codecell>
430 <input>SWAP10.decompose()</input>
431 <language>python</language>
432 <prompt_number>10</prompt_number>
433 <collapsed>0</collapsed>
434 <outputs>
435 <output>
436 <output_type>pyout</output_type>
437 <text>CNOT ⋅CNOT ⋅CNOT
438 1,0 0,1 1,0</text>
439 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQU9RQUFBQWNDQVlBQUFCeGxoUDVBQUFBQkhOQ1NWUUlD
440 QWdJZkFoa2lBQUFCVGhKUkVGVQplSnp0bTN1SVZVVWN4ejkzdDAxdGEwUEQyaDd1WnFRR1dXUmdT
441 dlorSzBRRVlVUVBlbUNSRWowa2tMVEFpRW9JQXd1V2lwRE5zcVJhCmdnaEN4WTBzTFhBVkNyUFdq
442 YzJnTXJRbnZTaHMrK1AzdTd0elorZWNNL2VlcytuZW1ROWN6ajN6KzgzcmUrYk0vYzNjY3lBU2lZ
443 d2EKcGdJUEFLOERId0xyZ2JYQVpLQUVkQUt0Nm5zUzBBM3NCZ2FBYlk3eVpnS2ZxMzBBNkFNdXRu
444 d2FnT3VBTG1DTmZ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5wUDdiV3FYcEdncHhi
471 QlhNSXVLYTJwZW9WWFZFdldvZ3RHZ2gKRDFHcjZvaDZSU0tSU0NRU2lVUWlrVWlrY1A0RGNJbU5W
472 d2I2YnpNQUFBQUFTVVZPUks1Q1lJST0K
473 </png>
474 <latex>$$CNOT_{1,0} CNOT_{0,1} CNOT_{1,0}$$</latex>
475 <prompt_number>10</prompt_number>
476 </output>
477 </outputs>
478 </codecell>
479 <codecell>
480 <input>circuit_plot(SWAP10.decompose(), nqubits=2)</input>
481 <language>python</language>
482 <prompt_number>11</prompt_number>
483 <collapsed>0</collapsed>
484 <outputs>
485 <output>
486 <output_type>pyout</output_type>
487 <text>&amp;lt;sympy.physics.quantum.circuitplot.CircuitPlot object at 0x7f082c973650&amp;gt;</text>
488 <prompt_number>11</prompt_number>
489 </output>
490 <output>
491 <output_type>display_data</output_type>
492 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQU5jQUFBQ09DQVlBQUFDaS9KMktBQUFBQkhOQ1NWUUlD
493 QWdJZkFoa2lBQUFBQWx3U0ZsegpBQUFMRWdBQUN4SUIwdDErL0FBQUNybEpSRUZVZUp6dDNXdG9V
494 L2NmeC9GUC9rNU1VN3ZXU3kvTzBWUkJXcEZONnh5dVExMTNZVk9xCmlBVzEwd2RqVHF3R0ZjY1FW
495 K2NGdGoxeGJHeXNVeXVsRjhXaVZrVXBvclcyVnFadTBMS3RtNjNWVGV2TWRKdXhyZGlzTmtyUzcv
496 K0IKSUhaTm9zbjZ6VEhKNXdWNWtuTU9mSC8rK2lZbkY5QWtJbDBBNGtCRUE4b2tJbUwwRUVTUjZI
497 OUdEMEFVcVJnWGtSTEdSYVNFY1JFcApZVnhFU2hnWGtSTEdSYVNFY1JFcFlWeEVTaGdYa1JMR1Jh
498 U0VjUkVwWVZ4RVNoZ1hrUkxHUmFTRWNSRXBZVnhFU2hnWGtSTEdSYVNFCmNSRXBZVnhFU2hnWGtS
499 TEdSYVNFY1JFcFlWeEVTaGd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VTNuMjJXZmwKNVpkZmx1TGlZamwr
553 L0xnQWtJcUtDcGt6WjQ2TUdERkMxcXhaSXpkdjNqUjYzSDRpOGoyWE54Y3ZYa1J4Y1RGYVcxdHg5
554 T2hSNU9UawpZUHo0OFZpMmJCbkdqUnRuOUhqa2g5dnR4cEVqUjFCWldRbUh3NEc2dWpyazV1WWlK
555 eWNIZVhsNXNGZ3NSby9vVmRURVJSUnFFZmM5CkY5R1RnbkVSS1dGY1JFb1lGNUVTeGtXa2hIRVJL
556 V0ZjUkVvWUY1RVN4a1draEhFUktXRmNSRW9ZRjVFU3hrV2toSEVSS1dGY1JFb1kKRjVFU3hrV2to
557 SEVSS1dGY1JFb1lGNUVTeGtXa2hIRVJLV0ZjUkVvWUY1RVN4a1draEhFUktXRmNSRW9ZRjVFU3hr
558 V2toSEVSS1dGYwpSRW9ZRjVFU3hrV2toSEVSS1dGY1JFb1lGNUVTeGtXazVQOENrR2JYaWgwNml3
559 QUFBQUJKUlU1RXJrSmdnZz09Cg==
560 </png>
561 </output>
562 </outputs>
563 </codecell>
564 <markdowncell>
565 <source>&lt;h2&gt;All together now&lt;/h2&gt;</source>
566 </markdowncell>
567 <codecell>
568 <input>gates = [CGate(1,Y(0)), CGate(0,Z(1)), SWAP(1, 0)]</input>
569 <language>python</language>
570 <prompt_number>12</prompt_number>
571 <collapsed>1</collapsed>
572 <outputs />
573 </codecell>
574 <codecell>
575 <input>for g in gates:
576 dg = g.decompose()
577 display(Eq(g, dg))
578 circuit_plot(g, nqubits=2)
579 circuit_plot(dg, nqubits=2) </input>
580 <language>python</language>
581 <prompt_number>16</prompt_number>
582 <collapsed>0</collapsed>
583 <outputs>
584 <output>
585 <output_type>display_data</output_type>
586 <text>C ⎛Y ⎞ = S ⋅CNOT ⋅S ⋅Z
587 1⎝ 0⎠ 0 1,0 0 0</text>
588 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQU5NQUFBQWNDQVlBQUFEN3VZcTRBQUFBQkhOQ1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dlFSdUlRdE5K
629 VTAvWThtdThJUElnR1FUUHdDcHI5N1VURWQ4aTFmZC94Zlg2TFhObHowY2JsR2pRdwpGNXZ2K29G
630 RGc0dFFKNHN5WjZQUXh1L1hLTGI2MEhHL05MTDBDcWw5ZDZSVk03QTM4SlNwMXgzWW1mS0FtVk9G
631 emNSNFpvazVRdkFKCldncjdVam1ZcHBzampTM1FyQjFuTlpYditPMkswc3oxSm5xVEdEUWJwdUhi
632 ZHFoZTh4VlVybkF1cnM0b24yVU9YeGFoV0NzMFdYcUYKMUg0Vm5obTZLbXcyNUkzck8xQ0FsNGZs
633 VkdabnVpQXhJcHBRYXYxM09lOVJMM3phWGxBbXBGNzEwRDdUWmlNRzAzUzBLWGxnam11ZgpRMm5o
634 T0Qzb21QazZDN2xFUzNPMXJuNzR0TDJnVEVpOTZxRjl3NTVuVm5BNUFMa3g5Z3VGUHJ4SytiYzlr
635 WDhhVFFLOVVDWnBteHgyCkcwRmEyOWMzWEgxa0lIS2hJS3hlOWRDK3JzK3poQklIOXlOL2NqTHUx
636 NEgySnpsamw4VWd0THFOUXo4dkdCd3JtNHJlMC9xaGt0YjIKOVlXc1BqSWYrTDM1ZDBpOTZxRjkz
637 WjluVCt0SWU5a3h6OHFVZG0wdDlockovMG83NjBWYUgybEJuVE5PU0wzcW9mMzYvandMZnFBMApB
638 YWVzNjBZVUZQdy9jRHo2VDFBS0NncHFwTkUvbXlrb0tDZ29LQ2dvS0Nnb0tDaFlCM3dQaGh0a2J0
639 QVNBTWNBQUFBQVNVVk9SSzVDCllJST0K
640 </png>
641 <latex>$$C_{1}{\left(Y_{0}\right)} = S_{0} CNOT_{1,0} S_{0} Z_{0}$$</latex>
642 </output>
643 <output>
644 <output_type>display_data</output_type>
645 <text>C ⎛Z ⎞ = H ⋅CNOT ⋅H
646 0⎝ 1⎠ 1 0,1 1</text>
647 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQU1rQUFBQWNDQVlBQUFETE5adVpBQUFB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clNEVmw2U0N4RGUvSmZB
688 RGlhZTRSVWhLMWkzakZBU1BJaTZiN3ZRM292WmhNbmRxQmFtK0pEdEp6SElNcG5wVwo1VFNTNVpw
689 UGtuOXVNU0FIR0VIc0pEbWk5dU0yZDlKSjRaWnUwS1I1RjNIbENKSXR1Qjc1MDA0TEpFaXpyd1pI
690 a0tCOEJCS2pKRU0rCmN0VWhEN25DMHBSWWtENFgrYy9FMFNSMW53M2Mrbk0rNERaM0xrZHVOZTlB
691 L3JBVjlsaTU2bmZLVlBpbERwSXU5Tm9xNnlOWmwyVEkKSW5Fbk9nWDhHSURlczRWYmY4NG5uT1pP
692 SnJLN2xCTCtXRVcyaURnbkdZRHNLR2VkVkdPU2lJZ3dxSXZjbXRoL3Roc1NFVkdiY1RybwpqSWlJ
693 aUlpSWlJaUlpSWlJT0svNEgyR1pJUFRKVVRpYkFBQUFBRWxGVGtTdVFtQ0MK
694 </png>
695 <latex>$$C_{0}{\left(Z_{1}\right)} = H_{1} CNOT_{0,1} H_{1}$$</latex>
696 </output>
697 <output>
698 <output_type>display_data</output_type>
699 <text>SWAP = CNOT ⋅CNOT ⋅CNOT
700 1,0 1,0 0,1 1,0</text>
701 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQVVZQUFBQWNDQVlBQUFBZHRSYlZBQUFBQkhOQ1NWUUlD
702 QWdJZkFoa2lBQUFDTVZKUkVGVQplSnp0bkhtUUZjVWR4ejhybDRBdUlJcEdUVUFwU3dJSjVSbE5Q
703 RERlNGxWR3E2S0ZRU0pSUzBRdGcwbU1XbW9PUWp6S1JCQkZRVW5FCkk1U2F5NFFqRUxNQ0doUzB2
704 TkR5S1BFSUtzR05paGVzbU0wZjM1NjhtWjZlbVg2N0QvY2QvYWw2TmU5MTkvVHhuZDkwOS95NjUw
705 RWcKRUFnRXZPa09YQURjQ2Z3TytDTXdIdWdMekFjV0F4dUJkbUFUc0J6WTJweDdDZkNhaVdzSG5n
706 VEd4dkllQi96YnhIMEk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Q3dBK3I3RlhIWAp1NjdMWkRKSjB6U1p6K2RKa3VWeW1mVjZuWnViRzNp
952 NmNoVVJYMVZWdWJ5OHpIdytQK3g0UjBkSFdTNlh1Ymk0Z0tjclYxRXZISHRWClZmMjZ0ZUovVk1U
953 SnA1L0orSVF4UG1HTVR4ampFOGI0aERFK1lZeFBHT01UeHZpRU1UNWhqRThZNHhQRytJUXhQbUdN
954 VHhqakU4YjQKaERFK1lZeFBHT01UeHZpRU1UNWhqRThZNHhQRytJUXhQbUdNVHhqakU4YjRoREUr
955 WVl4UEdPTVR4dmlFTVQ1aGpFOFk0eFBHK0lReApQbUdNVHhqakU4YjRoREUrWVl4UEdPTVR4dmlF
956 TVQ1aGlvbnY4ZkV4Nysvdm42N3RkcnM4UFQxQkU2bUkrTHF1eTJLeHlOWFYxU0hBCjNXNlh1cTd6
957 L1B3TVQxZXVZdjVwdkczYmpNZmpORTJUMVdxVjBXaVU0WENZNlhTYVhxK0k3K0NQVTh4ZDcvVjZ1
958 YnU3eThuSlNaTGsKL1B6YzhHQmZubnhWVlgzM0xDck1uNjgrK0cxUDQvMk9OeHdPYzN0N204bGtr
959 cVpwTXAvUDArLzM2ZkdLVk1UTzEzVmQ2cnJPWURBNApQR3IzTytCMnU4MXNOcU5ITEZJUjhTWEpa
960 clBKNmVucHB4MnZiZHU4dnI3bTdPd01uS3hjeGNTbm44ZFhQV0dNVHhqakU4YjRoREUrCllZeFBH
961 T01UeHZpRU1UNWhqRThZNHhQRytJUXhQbUdNVHhqakU4YjRoREUrWVl4UEdPTVR4dmlFTVQ1aGpF
962 OFk0eFBHK0lReFBtR00KVHhqakU4YjRoREUrWVl4UEdPTVR4dmlFTVQ1aGpFOFk0eFBHK0lReFBt
963 R01UeGpqRThiNGhERStZWXhQbUg4TUV0VnhWRm41VGdBQQpBQUJKUlU1RXJrSmdnZz09Cg==
964 </png>
965 </output>
966 <output>
967 <output_type>display_data</output_type>
968 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEV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jVFU3hrV2toSEVSS1dGY1JFb1lGNUVTeGtXazVQOENrR2JYaWgwNml3
1035 QUFBQUJKUlU1RXJrSmdnZz09Cg==
1036 </png>
1037 </output>
1038 </outputs>
1039 </codecell>
1040 </cells>
1041 </worksheet>
1042 </worksheets>
1043 </notebook>
This diff has been collapsed as it changes many lines, (727 lines changed) Show them Hide them
@@ -1,1 +1,726 b''
1 {"cells":[{"cell_type":"text","text":"<h1>Dense Coding\n</h1>"},{"code":"%load_ext sympy_printing","cell_type":"code","prompt_number":1},{"code":"from sympy import sqrt, symbols, Rational\nfrom sympy import expand, Eq, Symbol, simplify, exp, sin\nfrom sympy.physics.quantum import *\nfrom sympy.physics.quantum.qubit import *\nfrom sympy.physics.quantum.gate import *\nfrom sympy.physics.quantum.grover import *\nfrom sympy.physics.quantum.qft import QFT, IQFT, Fourier\nfrom sympy.physics.quantum.circuitplot import circuit_plot","cell_type":"code","prompt_number":2},{"code":"psi = Qubit('00')/sqrt(2) + Qubit('11')/sqrt(2); psi\n","cell_type":"code","prompt_number":3},{"code":"circuits = [H(1)*CNOT(1,0), H(1)*CNOT(1,0)*X(1), H(1)*CNOT(1,0)*Z(1), H(1)*CNOT(1,0)*Z(1)*X(1)]","cell_type":"code","prompt_number":4},{"code":"for circuit in circuits:\n circuit_plot(circuit, nqubits=2)\n display(Eq(circuit*psi,qapply(circuit*psi)))","cell_type":"code","prompt_number":5},{"code":"%notebook save dense_coding.ipynb","cell_type":"code","prompt_number":28},{"code":"%notebook load teleportation.ipynb","cell_type":"code","prompt_number":181}]} No newline at end of file
1 <?xml version="1.0" encoding="utf-8"?>
2 <notebook>
3 <name>dense_coding</name>
4 <nbformat>2</nbformat>
5 <worksheets>
6 <worksheet>
7 <cells>
8 <markdowncell>
9 <source>&lt;h1&gt;Dense Coding
10 &lt;/h1&gt;</source>
11 </markdowncell>
12 <codecell>
13 <input>%load_ext sympyprinting</input>
14 <language>python</language>
15 <prompt_number>2</prompt_number>
16 <collapsed>1</collapsed>
17 <outputs />
18 </codecell>
19 <codecell>
20 <input>from sympy import sqrt, symbols, Rational
21 from sympy import expand, Eq, Symbol, simplify, exp, sin
22 from sympy.physics.quantum import *
23 from sympy.physics.quantum.qubit import *
24 from sympy.physics.quantum.gate import *
25 from sympy.physics.quantum.grover import *
26 from sympy.physics.quantum.qft import QFT, IQFT, Fourier
27 from sympy.physics.quantum.circuitplot import circuit_plot</input>
28 <language>python</language>
29 <prompt_number>3</prompt_number>
30 <collapsed>1</collapsed>
31 <outputs />
32 </codecell>
33 <codecell>
34 <input>psi = Qubit('00')/sqrt(2) + Qubit('11')/sqrt(2); psi
35 </input>
36 <language>python</language>
37 <prompt_number>4</prompt_number>
38 <collapsed>0</collapsed>
39 <outputs>
40 <output>
41 <output_type>pyout</output_type>
42 <text>⎽⎽⎽ ⎽⎽⎽
43 ╲╱ 2 ⋅❘00⟩ ╲╱ 2 ⋅❘11⟩
44 ────────── + ──────────
45 2 2</text>
46 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUx3QUFBQWtDQVlBQUFBemZGQ0ZBQUFBQkhOQ1NWUUlD
47 QWdJZkFoa2lBQUFCWlJKUkVGVQplSnp0bTN1b0ZVVWN4ei9uZHRLajFkVWUxc2x1NlI5WkJua3ZV
48 WlJhNlNraktId2tGR1lVeHVWaTlsRENJTXNvYmxGSlJDLzZKeW1vCnVFSVlScEhSU3dLTmdpQUp1
49 bVQvRk1TbGgwVVBVSzVrcVp6KytPMXlkL2ZNUG1aM1ovZWMwM3hnT1p5WjMrek03bmQyWm42LzJR
50 V0wKeFdLeGRDZVZzaHNRUXpPSGM3VDdOWFlxWndFLzVYQ2V0dFZuRmxBcnVNNGR3Q2tGMTltSldH
51 MFMwcFBBcGcrNEJkZ0wxTTAyeDhkRgp3Qmp3VjRGMWRocFdHd05jQnd3Z3k0dlpCZGE3RFprMkxl
52 RlliVFNwSnJENXdIZ3JXamtQT0FUOFhFTGRuWVRWeGlCRmppSXZBM01LCnFxc2JzT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V0cxeVppN3dMUEt4UVE5d1Vybk5zWGl3MnVUTU9VaG96bzNvTEtDYwpUUVJMSzFZYlRlTENr
80 cWNpMzNaNkEvdlRnUXVSWFVGTGVWaHRVaERYNGFmUnVtSFFSR0txbG5LeDJsZ3NGb3ZGWXJGWUxK
81 YXU1ejl2CjByak9nS2lER3dBQUFBQkpSVTVFcmtKZ2dnPT0K
82 </png>
83 <latex>$$\frac{1}{2} \sqrt{2} {\left|00\right\rangle } + \frac{1}{2} \sqrt{2} {\left|11\right\rangle }$$</latex>
84 <prompt_number>4</prompt_number>
85 </output>
86 </outputs>
87 </codecell>
88 <codecell>
89 <input>circuits = [H(1)*CNOT(1,0), H(1)*CNOT(1,0)*X(1), H(1)*CNOT(1,0)*Z(1), H(1)*CNOT(1,0)*Z(1)*X(1)]</input>
90 <language>python</language>
91 <prompt_number>5</prompt_number>
92 <collapsed>1</collapsed>
93 <outputs />
94 </codecell>
95 <codecell>
96 <input>for circuit in circuits:
97 circuit_plot(circuit, nqubits=2)
98 display(Eq(circuit*psi,qapply(circuit*psi)))</input>
99 <language>python</language>
100 <prompt_number>6</prompt_number>
101 <collapsed>0</collapsed>
102 <outputs>
103 <output>
104 <output_type>display_data</output_type>
105 <text>⎛ ⎽⎽⎽ ⎽⎽⎽ ⎞
106 ⎜╲╱ 2 ⋅❘00⟩ ╲╱ 2 ⋅❘11⟩⎟
107 H ⋅CNOT ⋅⎜────────── + ──────────⎟ = ❘00⟩
108 1 1,0 ⎝ 2 2 ⎠</text>
109 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQVdVQUFBQW1DQVlBQUFBY1Bvck5BQUFBQkhOQ1NWUUlD
110 QWdJZkFoa2lBQUFESDlKUkVGVQplSnp0blh1MEZWVWR4ei8zQWhmaUlWZEpGRlF3VVRSSVVhTTBJ
111 YTRQYUdtWnBsbGsrVWd5OUlMWnc5VUNuNVhTUXpPU1FJMjBSTHhHCnFZdlZhNEd2MHBKOHhTTzFG
112 QVVWU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NhVG52Zi8zUU4ycApvcnZ0RG1lYldoaUd4bUpxbVJqVEZEaW5YSDlHVTU1cUJKclFNb2pTVDZZ
180 ZmdRWXJUVjJ6VFNqZHFkUHllbHNwWDdCL0psckQ5bG5MCjR4MzF3OW1tZXFhaUg1d29ZaTJZcGlU
181 TGRXS2JrYmo3L3g3bUZKNXhxSkNkaFhJMlJ4cGtmUHhXZE5vVXBlbG9LVlJINCtGc1k4OUEKMUpC
182 cGxKK0JhZ3F5V2llMldVbTYvN2dKTExiSi9zZWlpVHUybkVCcCttOS90cTlLc3RGeHRrbkhMV2lR
183 YjdzZ0s4ZTVGVTNVQ0g3eQpXaCtpRVVpNi8wTkk5NE1BSnA1Q2FUV0hrYnh3MGtRMFEvQk85Tklm
184 ai9LZFRiT01IUG5pYkpPT3MxRWFXYlhUeHgyT0NnNG4yMWw1CmM5RU15Q2oyUlhIbzdzQm5DOW4v
185 MHJZalBjNDI2UmlKL1k4eE94eldWTE1XZ2NQaGNEZ2NEb2ZENFhBNEhBNkh3K0Z3T0J3T2g4TVIK
186 eS84QlhNMmZXWUlsVDVRQUFBQUFTVVZPUks1Q1lJST0K
187 </png>
188 <latex>$$H_{1} CNOT_{1,0} \left(\frac{1}{2} \sqrt{2} {\left|00\right\rangle } + \frac{1}{2} \sqrt{2} {\left|11\right\rangle }\right) = {\left|00\right\rangle }$$</latex>
189 </output>
190 <output>
191 <output_type>display_data</output_type>
192 <text>⎛ ⎽⎽⎽ ⎽⎽⎽ ⎞
193 ⎜╲╱ 2 ⋅❘00⟩ ╲╱ 2 ⋅❘11⟩⎟
194 H ⋅CNOT ⋅X ⋅⎜────────── + ──────────⎟ = ❘01⟩
195 1 1,0 1 ⎝ 2 2 ⎠</text>
196 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQVgwQUFBQW1DQVlBQUFBb1IwdlJBQUFBQkhOQ1NWUUlD
197 QWdJZkFoa2lBQUFEUmRKUkVGVQplSnp0blh1MEZWVWR4ejlYcmtB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X_{1} \left(\frac{1}{2} \sqrt{2} {\left|00\right\rangle } + \frac{1}{2} \sqrt{2} {\left|11\right\rangle }\right) = {\left|01\right\rangle }$$</latex>
280 </output>
281 <output>
282 <output_type>display_data</output_type>
283 <text>⎛ ⎽⎽⎽ ⎽⎽⎽ ⎞
284 ⎜╲╱ 2 ⋅❘00⟩ ╲╱ 2 ⋅❘11⟩⎟
285 H ⋅CNOT ⋅Z ⋅⎜────────── + ──────────⎟ = ❘10⟩
286 1 1,0 1 ⎝ 2 2 ⎠</text>
287 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQVhvQUFBQW1DQVlBQUFES20xQ29BQUFBQkhOQ1NWUUlD
288 QWdJZkFoa2lBQUFEU2RKUkVGVQplSnp0blhtMEhFVVZoNzlKQWdsSndNZFRsZ1N5U1dSUDJBS1J4
289 WmVBbkNoSGhJQ3lSRUFRaUVCa0UyUlJBUWNDaWhnSUVjU2pva0FTCkRFaEFrTEFKSWtza0VZR0Fv
290 S0NRR0RBSWFvaEMyR1NMZi95Nno4ejBWSFZYOTNUUHpNdXI3NXc1TTlOMXA2dXFiODJ0cWx1M3Vz
291 SGoKOFhnOEhzOXF6UnF0TG9ESDAyUjhtL2YwS0Q0RG5OWHFRbmc4VGVaYVlIaXJDK0h4TklQUndH
292 MUE3MVlYSklaMWdhNVdGOEpqcGJ2cQpaeER3RzJDZFZoZkU0eW1TRFlISGdJMWFYWkFFeXNBNFlG
293 VU9MMC8rbE9tKytwa0F6S085QnpvZVQwUGNEQnlVOGpkZkJNNHNvQ3cyCkJnSzNOakcvN283WFQz
294 b3VBMDV1ZFNFOG5pTFlDbmdlOTVITWpzQTV3Q1BBK1VVVnlzQ3B3TjVOeksrNzR2V1RuVTJBRjRB
295 MVcxMFEKanlkdlpwRnRBZlpLbW1kSStnSjNBcVVtNWJjNjRQV1RqVHVBeWEwdVJOSDBhblVCUEUx
296 bE9QQTVaQlRhbWNPQm1YamZlcnV5T3VubgpDdUIwVm5OZnZ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rQ3JjVkY3KzNqc1pEblBiRzdJM0gxdnhqZHRqWEtybWpSOVJqMHg3U0ZrRGFhdjRrNUtLUXMK
364 RFNOUmhGTXI3MERvc2VQMWs1NHJhZHgxMXFQSTY1N1kzWldrK3NkdDJzcmpxVFpwcjM4bmlud2E3
365 bmorUWVpV3orRitneTFqWkQzTgp4K3NuUFJOUjFFcFBlN2k3cDBDaWp4MXNCelpGRDVkSmV1UllK
366 d3JKM0FqdGhoNkNRdms4N1lIWFQzcUdvdWl6L2ttQ0hvOHI0Mm5mCkVkWWUxRC9ZSk1yOTFNZER4
367 ODFRUE0zRjZ5YzljNmlzajNrOHVlQ25oaDZQeCtQeGVEd2VqOGZqOFhnOEhvL0g0L0Y0UEI1UEQr
368 VC8KTDVLMlhIQlkzbllBQUFBQVNVVk9SSzVDWUlJPQo=
369 </png>
370 <latex>$$H_{1} CNOT_{1,0} Z_{1} \left(\frac{1}{2} \sqrt{2} {\left|00\right\rangle } + \frac{1}{2} \sqrt{2} {\left|11\right\rangle }\right) = {\left|10\right\rangle }$$</latex>
371 </output>
372 <output>
373 <output_type>display_data</output_type>
374 <text>⎛ ⎽⎽⎽ ⎽⎽⎽ ⎞
375 ⎜╲╱ 2 ⋅❘00⟩ ╲╱ 2 ⋅❘11⟩⎟
376 H ⋅CNOT ⋅Z ⋅X ⋅⎜────────── + ──────────⎟ = ❘11⟩
377 1 1,0 1 1 ⎝ 2 2 ⎠</text>
378 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQVpFQUFBQW1DQVlBQUFBRm1hWXVBQUFBQkhOQ1NWUUlD
379 QWdJZkFoa2lBQUFEaU5KUkVGVQplSnp0blh1MFZVVWR4ejl3TDNDNVNKQ0ZBWWFvRmJsMEFhYVFE
380 eFR3cmFra2lpV0Zqd3dSTExPSDcwU3RXSm1LbVpZUzV1T0tvS2JtCmtudy9LaFVUVXhNRlV3aEZZ
381 S21VcG9XSWI2VS92bnM2Kyt3emUrL1orN3h2ODFscnI3d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xiL2J5UThtL1dEClVubnlyMGY2MDVIcnRp
462 c25VZkQyMnh5NW0zc2FBeStiN0xRanI4cWhhUkU5SGhlaW45TDlmMkVPY3Z0TjR4aDBxRnYvNERx
463 WDlNK2sKZW1xRGwwMCtaZ1A3MTdzUW5zN0JXQnBqRjNjOTZJSE9PRXM2VCt0Z1NuMyttMzFuYjJm
464 Qnl5WWY0OUdocVI1UFJhaUV1Y3JqOFhnOApIby9INC9GNFBCNlB4K1B4ZUR3ZWo4Zmo4WGc4ZGVL
465 L0E2bjMvdnVXdlNFQUFBQUFTVVZPUks1Q1lJST0K
466 </png>
467 <latex>$$H_{1} CNOT_{1,0} Z_{1} X_{1} \left(\frac{1}{2} \sqrt{2} {\left|00\right\rangle } + \frac{1}{2} \sqrt{2} {\left|11\right\rangle }\right) = {\left|11\right\rangle }$$</latex>
468 </output>
469 <output>
470 <output_type>display_data</output_type>
471 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUo4QUFBQ09DQVlBQUFBdmtkcmVBQUFBQkhOQ1NWUUlD
472 QWdJZkFoa2lBQUFBQWx3U0ZsegpBQUFMRWdBQUN4SUIwdDErL0FBQUJ0cEpSRUZVZUp6dDNWOUlV
473 MzBjeC9IUFdiVm84aVNOMmxaSWd5Qm9XTWlDTEhSclEwcEJyd3FDCkxyck1yQzZxaXlDaWl5NGxT
474 UHBqekNUb29xam96OVdDaXY2d2xhNGlpelJ6VVJEUklRaktpaHhyV3VHdmkrZEpxdjNSWnptLzJ6
475 bWYKRjV3YmZ6cStCOStkYzNZYUhrMHBOUVRnSHhCTk1VMHBwYVNISUhPeVNBOUE1c1g0U0F6akl6
476 R01qOFF3UGhMRCtFZ000eU14akkvRQpNRDRTdy9oSURPTWpNWXlQeERBK0VzUDRTQXpqSXpHTWo4
477 UXdQaExEK0VnTTR5TXhqSS9FTUQ0U3cvaElET01qTVl5UHhEQStFc1A0ClNBempLd0YydXgyYXBo
478 VnNzOXZ0SXZ2RnY5VlNBalJO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HMnordjE0dXVyaTd4ZlRINlpyalRycy9uZzY3cmlNZmplZjE4YjI4dkJnY0hzV3JWcWttZWpQ
506 NWt1UGlzClZpdWFtNXZ6dmwzUzBkR0JscFlXVEovT3A4RVdtdUZ1dFFEQW16ZHZVRlZWaFZnc2x2
507 Rm1jYlpiTFFNREEvRDcvWWpINDNDNVhGTXgKcXFrWjdzZ0hBQlVWRlRoNDhDQWFHeHZ4NnRXckNm
508 M015NWN2MGRUVWhQYjJkb1kzVlpTQkhUdDJUTTJmUDErZE9YTkdEUThQajMzOQoxOTFPcFZMcTFL
509 bFR5dVZ5cWM3T1Rva3hUY3ZROFNtbDFNMmJOOVdhTld1VXcrRlFlL2Z1VmVGd1dBRlE0WEJZN2Rt
510 elI4MmJOMC9WCjE5ZXJTQ1FpUGFycEdQS2FMNVBuejUvanhJa1RlUGJzR2E1Y3VZS21waVo0UEI1
511 czJiSUZpeGN2bGg3UGxFd1RIeFVmUTc3aG9OTEEKK0VnTTR5TXhqSS9FTUQ0U3cvaElET01qTVl5
512 UHhEQStFc1A0U0F6akl6R01qOFF3UGhMRCtFZ000eU14akkvRU1ENFN3L2hJRE9NagpNWXlQeERB
513 K0VzUDRTQXpqSXpHTWo4UXdQaExEK0VnTTR5TXhqSS9FTUQ0U3cvaElET01qTVl5UHhEQStFc1A0
514 U0F6akl6R01qOFF3ClBoTHpBM3FpQkxJVnd1UkNBQUFBQUVsRlRrU3VRbUNDCg==
515 </png>
516 </output>
517 <output>
518 <output_type>display_data</output_type>
519 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQU5jQUFBQ09DQVlBQUFDaS9KMktBQUFBQkhOQ1NWUUlD
520 QWdJZkFoa2lBQUFBQWx3U0ZsegpBQUFMRWdBQUN4SUIwdDErL0FBQUNaQkpSRUZVZUp6dDNWbElW
521 SDBZeC9IZlVkT3diQkZMcFZKOG96SWwyZ2x4cXd3Ukl6RlNFb21vCm9GV2tJT2lxMjJnbFd0QnN4
522 eVFvS3k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Y4U0FpRmNhRGlGUVlEeUpTWVR5SVNJWHhJQ0lWeG9P
717 SVZCZ1BJbEpoUEloSWhmRWdJaFhHZzRoVUdBOGlVbUU4CmlFaUY4U0FpRmNhRGlGUVlEeUpTWVR5
718 SVNPVi95UGJ3Z3RmM2dOQUFBQUFBU1VWT1JLNUNZSUk9Cg==
719 </png>
720 </output>
721 </outputs>
722 </codecell>
723 </cells>
724 </worksheet>
725 </worksheets>
726 </notebook>
@@ -1,7 +1,6 b''
1 <?xml version="1.0" encoding="utf-8"?>
1 <?xml version="1.0" encoding="utf-8"?>
2 <notebook>
2 <notebook>
3 <name>formatting</name>
3 <name>formatting</name>
4 <id>3eaf4ff7-e2c8-46f2-acd3-be16df73aee6</id>
5 <nbformat>2</nbformat>
4 <nbformat>2</nbformat>
6 <worksheets>
5 <worksheets>
7 <worksheet>
6 <worksheet>
@@ -49,50 +48,6 b' And another paragraph.'
49 ## Heading (h2)
48 ## Heading (h2)
50
49
51 </source>
50 </source>
52 <rendered>&lt;h1&gt;Title (h1)&lt;/h1&gt;
53
54 &lt;h2&gt;Heading (h2)&lt;/h2&gt;
55
56 &lt;h3&gt;Heading (h3)&lt;/h3&gt;
57
58 &lt;p&gt;Here is a paragraph of text.&lt;/p&gt;
59
60 &lt;ul&gt;
61 &lt;li&gt;One.
62 &lt;ul&gt;&lt;li&gt;Sublist
63 &lt;ul&gt;&lt;li&gt;Here we go&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;
64 &lt;li&gt;Sublist
65 &lt;ul&gt;&lt;li&gt;Here we go&lt;/li&gt;
66 &lt;li&gt;Here we go&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;
67 &lt;li&gt;Two.
68 &lt;ul&gt;&lt;li&gt;Sublist&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;
69 &lt;li&gt;Three.
70 &lt;ul&gt;&lt;li&gt;Sublist&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;
71 &lt;/ul&gt;
72
73 &lt;p&gt;Now another list:&lt;/p&gt;
74
75 &lt;hr&gt;
76
77 &lt;ol&gt;
78 &lt;li&gt;Here we go
79 &lt;ol&gt;&lt;li&gt;Sublist&lt;/li&gt;
80 &lt;li&gt;Sublist&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;
81 &lt;li&gt;There we go&lt;/li&gt;
82 &lt;li&gt;Now this&lt;/li&gt;
83 &lt;/ol&gt;
84
85 &lt;p&gt;And another paragraph.&lt;/p&gt;
86
87 &lt;h3&gt;Heading (h3)&lt;/h3&gt;
88
89 &lt;h4&gt;Heading (h4)&lt;/h4&gt;
90
91 &lt;h5&gt;Heading (h5)&lt;/h5&gt;
92
93 &lt;h6&gt;Heading (h6)&lt;/h6&gt;
94
95 &lt;h2&gt;Heading (h2)&lt;/h2&gt;</rendered>
96 </markdowncell>
51 </markdowncell>
97 <markdowncell>
52 <markdowncell>
98 <source># Heading (h1)
53 <source># Heading (h1)
@@ -113,25 +68,6 b' Now for a simpel code example:'
113 print i
68 print i
114
69
115 Now more text</source>
70 Now more text</source>
116 <rendered>&lt;h1&gt;Heading (h1)&lt;/h1&gt;
117
118 &lt;h2&gt;Heading (h2)&lt;/h2&gt;
119
120 &lt;h3&gt;Heading (h3)&lt;/h3&gt;
121
122 &lt;h4&gt;Heading (h4)&lt;/h4&gt;
123
124 &lt;h5&gt;Heading (h5)&lt;/h5&gt;
125
126 &lt;h6&gt;Heading (h6)&lt;/h6&gt;
127
128 &lt;p&gt;Now for a simpel code example:&lt;/p&gt;
129
130 &lt;pre&gt;&lt;code&gt;for i in range(10):
131 print i
132 &lt;/code&gt;&lt;/pre&gt;
133
134 &lt;p&gt;Now more text&lt;/p&gt;</rendered>
135 </markdowncell>
71 </markdowncell>
136 <markdowncell>
72 <markdowncell>
137 <source>## Heading (h2)
73 <source>## Heading (h2)
@@ -161,39 +97,11 b' Here is text'
161 &lt;td&gt;row 2, cell 2&lt;/td&gt;
97 &lt;td&gt;row 2, cell 2&lt;/td&gt;
162 &lt;/tr&gt;
98 &lt;/tr&gt;
163 &lt;/table&gt;</source>
99 &lt;/table&gt;</source>
164 <rendered>&lt;h2&gt;Heading (h2)&lt;/h2&gt;
165
166 &lt;p&gt;Here is text.&lt;/p&gt;
167
168 &lt;blockquote&gt;
169 &lt;p&gt;This is a &lt;em&gt;block&lt;/em&gt; quote. This is a block quote. This is a block quote. &lt;br&gt;
170 This is a &lt;strong&gt;block&lt;/strong&gt; quote. This is a block quote. This is a block quote. &lt;br&gt;
171 This is a &lt;code&gt;block&lt;/code&gt; quote. This is a block quote. This is a block quote. &lt;br&gt;
172 This is a block quote. This is a block quote. This is a block quote. &lt;br&gt;
173 This is a block quote. This is a block quote. This is a block quote. &lt;br&gt;
174 This is a block quote. This is a block quote. This is a block quote. &lt;/p&gt;
175 &lt;/blockquote&gt;
176
177 &lt;p&gt;Here is text&lt;/p&gt;
178
179 &lt;table&gt;
180 &lt;tbody&gt;&lt;tr&gt;
181 &lt;th&gt;Header 1&lt;/th&gt;
182 &lt;th&gt;Header 2&lt;/th&gt;
183 &lt;/tr&gt;
184 &lt;tr&gt;
185 &lt;td&gt;row 1, cell 1&lt;/td&gt;
186 &lt;td&gt;row 1, cell 2&lt;/td&gt;
187 &lt;/tr&gt;
188 &lt;tr&gt;
189 &lt;td&gt;row 2, cell 1&lt;/td&gt;
190 &lt;td&gt;row 2, cell 2&lt;/td&gt;
191 &lt;/tr&gt;
192 &lt;/tbody&gt;&lt;/table&gt;</rendered>
193 </markdowncell>
100 </markdowncell>
194 <codecell>
101 <codecell>
195 <input />
102 <input />
196 <language>python</language>
103 <language>python</language>
104 <collapsed>1</collapsed>
197 <outputs />
105 <outputs />
198 </codecell>
106 </codecell>
199 </cells>
107 </cells>
@@ -1,1 +1,417 b''
1 {"cells":[{"cell_type":"text","text":"<h1>Grover's Algorithm</h1>"},{"code":"%load_ext sympyprinting","cell_type":"code","prompt_number":1},{"code":"from sympy import sqrt, symbols, Rational\nfrom sympy import expand, Eq, Symbol, simplify, exp, sin\nfrom sympy.physics.quantum import *\nfrom sympy.physics.quantum.qubit import *\nfrom sympy.physics.quantum.gate import *\nfrom sympy.physics.quantum.grover import *\nfrom sympy.physics.quantum.qft import QFT, IQFT, Fourier\nfrom sympy.physics.quantum.circuitplot import circuit_plot","cell_type":"code","prompt_number":2},{"code":"nqubits = 3\n","cell_type":"code","prompt_number":3},{"cell_type":"text","text":"Grover's algorithm is a quantum algorithm which searches an unordered database (inverts a function).<br/>\nProvides polynomial speedup over classical brute-force search ($O(\\sqrt{N}) vs. O(N))$ "},{"cell_type":"text","text":"Define a black box function that returns True if it is passed the state we are searching for."},{"code":"def black_box(qubits):\n return True if qubits == IntQubit(1, qubits.nqubits) else False\n","cell_type":"code","prompt_number":4},{"cell_type":"text","text":"Build a uniform superposition state to start the search."},{"code":"psi = superposition_basis(nqubits); psi\n","cell_type":"code","prompt_number":5},{"code":"v = OracleGate(nqubits, black_box)\n","cell_type":"code","prompt_number":6},{"cell_type":"text","text":"Perform two iterations of Grover's algorithm. Each iteration, the amplitude of the target state increases."},{"code":"iter1 = qapply(grover_iteration(psi, v)); iter1\n","cell_type":"code","prompt_number":7},{"code":"iter2 = qapply(grover_iteration(iter1, v)); iter2\n","cell_type":"code","prompt_number":8},{"cell_type":"text","text":"A single shot measurement is performed to retrieve the target state."},{"code":"measure_all_oneshot(iter2)\n","cell_type":"code","prompt_number":9},{"code":"%notebook save grovers.ipynb","cell_type":"code","prompt_number":28},{"code":"%notebook load qft.ipynb","cell_type":"code","prompt_number":63}]} No newline at end of file
1 <?xml version="1.0" encoding="utf-8"?>
2 <notebook>
3 <name>grovers</name>
4 <nbformat>2</nbformat>
5 <worksheets>
6 <worksheet>
7 <cells>
8 <markdowncell>
9 <source>&lt;h1&gt;Grover's Algorithm&lt;/h1&gt;</source>
10 </markdowncell>
11 <codecell>
12 <input>%load_ext sympyprinting</input>
13 <language>python</language>
14 <prompt_number>1</prompt_number>
15 <collapsed>1</collapsed>
16 <outputs />
17 </codecell>
18 <codecell>
19 <input>from sympy import sqrt, symbols, Rational
20 from sympy import expand, Eq, Symbol, simplify, exp, sin
21 from sympy.physics.quantum import *
22 from sympy.physics.quantum.qubit import *
23 from sympy.physics.quantum.gate import *
24 from sympy.physics.quantum.grover import *
25 from sympy.physics.quantum.qft import QFT, IQFT, Fourier
26 from sympy.physics.quantum.circuitplot import circuit_plot</input>
27 <language>python</language>
28 <prompt_number>2</prompt_number>
29 <collapsed>1</collapsed>
30 <outputs />
31 </codecell>
32 <codecell>
33 <input>nqubits = 3
34 </input>
35 <language>python</language>
36 <prompt_number>3</prompt_number>
37 <collapsed>1</collapsed>
38 <outputs />
39 </codecell>
40 <markdowncell>
41 <source>Grover's algorithm is a quantum algorithm which searches an unordered database (inverts a function).&lt;br/&gt;
42 Provides polynomial speedup over classical brute-force search ($O(\sqrt{N}) vs. O(N))$ </source>
43 </markdowncell>
44 <markdowncell>
45 <source>Define a black box function that returns True if it is passed the state we are searching for.</source>
46 </markdowncell>
47 <codecell>
48 <input>def black_box(qubits):
49 return True if qubits == IntQubit(1, qubits.nqubits) else False
50 </input>
51 <language>python</language>
52 <prompt_number>4</prompt_number>
53 <collapsed>1</collapsed>
54 <outputs />
55 </codecell>
56 <markdowncell>
57 <source>Build a uniform superposition state to start the search.</source>
58 </markdowncell>
59 <codecell>
60 <input>psi = superposition_basis(nqubits); psi
61 </input>
62 <language>python</language>
63 <prompt_number>5</prompt_number>
64 <collapsed>0</collapsed>
65 <outputs>
66 <output>
67 <output_type>pyout</output_type>
68 <text>⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽
69 ╲╱ 2 ⋅❘0⟩ ╲╱ 2 ⋅❘1⟩ ╲╱ 2 ⋅❘2⟩ ╲╱ 2 ⋅❘3⟩ ╲╱ 2 ⋅❘4⟩ ╲╱ 2 ⋅❘5⟩ ╲╱ 2 ⋅
70 ───────── + ───────── + ───────── + ───────── + ───────── + ───────── + ──────
71 4 4 4 4 4 4 4
72
73 ⎽⎽⎽
74 ❘6⟩ ╲╱ 2 ⋅❘7⟩
75 ─── + ─────────
76 4</text>
77 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQXRvQUFBQWtDQVlBQUFDMzZaMXpBQUFBQkhOQ1NWUUlD
78 QWdJZkFoa2lBQUFES2RKUkVGVQplSnp0blgzTUhFVWR4ejl0SDZDMFdNcWJ0bHJVQkFIZmVHbEF0
79 SUR5V0JHQ2lsQnJzRkVJR0VIaElZQmdmR2xRVTZHS2htQTFKQ2hCCkJRSVNFS3FncHVJTG9RWVFJ
80 aUJJQlZFMGVSQUZDdFFBQ3VXbHR2N3gyODB6Tjd0M3QzdTd0ek4zOS8wa203dWJuZHZkZnA1ZjUy
81 Wm0KWjJaQkNDR0VFRUlJSVlRUVFnZ2hoQkRWMlZMREpzcnhHdVE5QlBMZVBISWVCbmtQZzd3M2o1
82 eUhZV0M5dnc2WTJmQTVyd04yYlBpYwpNU0huWVpEMzVwSHpNTWg3R09TOWVlUThEQ1B2ZlhxQlBB
83 dUFqd0ozQWZQNmV6a3RMQVFlQnY3ZDREbGpRYzdESU8vTkkrZGhrUGN3CnlIdnp5SGtZNUwwRVJ3
84 RDdZTjNvcjIvd3ZGZGkzZitqaUp5SFFkNmJSODdESU85aGtQZm1rZk13eUh2Q1dJRTh2K2o3VldU
85 WkEzZ08KK0ZlQWM4ZUFuSWRCM3B0SHpzTWc3MkdROSthUjh6RElldzgwMlNxNUJOaTlvWFBGakp5
86 SFFkNmJSODdESU85aGtQZm1rZk13akx6MwpJbU8wbTJaWGJPRDhRNEhPZjN5Zzg0WWt0SE9ROTFD
87 TW1uYzVENE84aDBIZW0wZk93eEN0OXlKRFI1cm1NOEFGSGZidkRaeUlEYlMvCkUvZ3BjSDlPdm4y
88 UzF6OTY2Y2NCQjJBRDVSOERWZ05QT3Z1M3dtYkpQbHoyd2dlWWJzNmh1dm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W1DQwo=
156 </png>
157 <latex>$$\frac{1}{4} \sqrt{2} {\left|0\right\rangle } + \frac{1}{4} \sqrt{2} {\left|1\right\rangle } + \frac{1}{4} \sqrt{2} {\left|2\right\rangle } + \frac{1}{4} \sqrt{2} {\left|3\right\rangle } + \frac{1}{4} \sqrt{2} {\left|4\right\rangle } + \frac{1}{4} \sqrt{2} {\left|5\right\rangle } + \frac{1}{4} \sqrt{2} {\left|6\right\rangle } + \frac{1}{4} \sqrt{2} {\left|7\right\rangle }$$</latex>
158 <prompt_number>5</prompt_number>
159 </output>
160 </outputs>
161 </codecell>
162 <codecell>
163 <input>v = OracleGate(nqubits, black_box)
164 </input>
165 <language>python</language>
166 <prompt_number>6</prompt_number>
167 <collapsed>1</collapsed>
168 <outputs />
169 </codecell>
170 <markdowncell>
171 <source>Perform two iterations of Grover's algorithm. Each iteration, the amplitude of the target state increases.</source>
172 </markdowncell>
173 <codecell>
174 <input>iter1 = qapply(grover_iteration(psi, v)); iter1
175 </input>
176 <language>python</language>
177 <prompt_number>7</prompt_number>
178 <collapsed>0</collapsed>
179 <outputs>
180 <output>
181 <output_type>pyout</output_type>
182 <text>⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽
183 ╲╱ 2 ⋅❘0⟩ 5⋅╲╱ 2 ⋅❘1⟩ ╲╱ 2 ⋅❘2⟩ ╲╱ 2 ⋅❘3⟩ ╲╱ 2 ⋅❘4⟩ ╲╱ 2 ⋅❘5⟩ ╲╱ 2
184 ───────── + ─────────── + ───────── + ───────── + ───────── + ───────── + ────
185 8 8 8 8 8 8
186
187 ⎽ ⎽⎽⎽
188 ⋅❘6⟩ ╲╱ 2 ⋅❘7⟩
189 ───── + ─────────
190 8 8</text>
191 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQXRvQUFBQWtDQVlBQUFDMzZaMXpBQUFBQkhOQ1NWUUlD
192 QWdJZkFoa2lBQU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S1Qzc0JVUjlW
259 VTZuMkhyc2crU3RwR1hLY0JCTGJiZmljaU1pVWROWDhxb3V3c3lrdjA0NmFXVEpwRGQKVThuRHFj
260 am9TZG5KQW5WeER0VjRqL083c25nb3FtdmVHeFIxRG1udmVmZWg3YjB1enFIYU5tWWljbktYOVJt
261 MG5VTjl2RmNSNnk2VAp5YzZQM0lCY1dURHZRdFhlQWZaRjdzaTUzU3ZYanZlNk9JZHEyNWpSeUtT
262 OHJMdWdhanVIK25pdk90YkhJbTM3OHhuYk92YitNTWsxCllGZDFzcE1CNFJTeUYxVXZpamt2aG5u
263 WG9RcnY1cndZRnVzNm1IY2RySTBKajhWNnhlVEowYjRkeWJjNkM4a0ZXdE82K2tDemluUnYKdmhQ
264 TWVUSE11dzVWZURmbnhiQlkxOEc4NjJCdFRIZ3MxaFVZaXl5ZnRBMVpBM1pmM1k4ekVKaHpIY3g3
265 ZU15NUR1WmRCL01lSG5PdQpnM2t2d0Vwa0daT0RnSnVSeVQyZExHZGo1TWVjNjJEZXcyUE9kVER2
266 T3BqMzhKaHpIY3g3VHVhU3Z1UFR0Y0JDaGM4eUtKaHpIY3g3CmVNeTVEdVpkQi9NZUhuT3VnM2wz
267 R04xbSszWmdUNjlzSS9CSWR6Nk9nVG5Yd3J5SHg1enJZTjUxTU8vaE1lYzZtSGVITVcyMlA0MHMK
268 OGowUG1UaTVDRmtTNzVkZC9seURqRG5Yd2J5SHg1enJZTjUxTU8vaE1lYzZtUGNPMkEyWVJmSld0
269 a1ozTWVjNm1QZndtSE1kekxzTwo1ajA4NWx3SDgyNFlobUVZaG1FWWhtRVlobUVZaG1FWWhtRVlo
270 bUVZaG1FWWhtRVlobUVZaG1GVXl2OEI0L3U3a2hsRFZDQUFBQUFBClNVVk9SSzVDWUlJPQo=
271 </png>
272 <latex>$$\frac{1}{8} \sqrt{2} {\left|0\right\rangle } + \frac{5}{8} \sqrt{2} {\left|1\right\rangle } + \frac{1}{8} \sqrt{2} {\left|2\right\rangle } + \frac{1}{8} \sqrt{2} {\left|3\right\rangle } + \frac{1}{8} \sqrt{2} {\left|4\right\rangle } + \frac{1}{8} \sqrt{2} {\left|5\right\rangle } + \frac{1}{8} \sqrt{2} {\left|6\right\rangle } + \frac{1}{8} \sqrt{2} {\left|7\right\rangle }$$</latex>
273 <prompt_number>7</prompt_number>
274 </output>
275 </outputs>
276 </codecell>
277 <codecell>
278 <input>iter2 = qapply(grover_iteration(iter1, v)); iter2
279 </input>
280 <language>python</language>
281 <prompt_number>8</prompt_number>
282 <collapsed>0</collapsed>
283 <outputs>
284 <output>
285 <output_type>pyout</output_type>
286 <text>⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽
287 ╲╱ 2 ⋅❘0⟩ 11⋅╲╱ 2 ⋅❘1⟩ ╲╱ 2 ⋅❘2⟩ ╲╱ 2 ⋅❘3⟩ ╲╱ 2 ⋅❘4⟩ ╲╱ 2 ⋅❘5⟩ ╲
288 - ───────── + ──────────── - ───────── - ───────── - ───────── - ───────── - ─
289 16 16 16 16 16 16
290
291 ⎽⎽⎽ ⎽⎽⎽
292 ╱ 2 ⋅❘6⟩ ╲╱ 2 ⋅❘7⟩
293 ──────── - ─────────
294 16 16</text>
295 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQXdVQUFBQWtDQVlBQUFEWWZaWjNBQUFBQkhOQ1NWUUlD
296 QWdJZkFoa2lBQUFEU1pKUkVGVQplSnp0blhtUUhGVWR4ejlKMkN5SjRVeWlFY0loVjFtQlVpUktS
297 UW9WandJQkMrVFFTS0ZrS1kzaWhZaVk0dkFZRlJBeEVoVWtxSWdJCkNsSEJBZzJJSUxwS0VjRjRn
298 Q0tsd1NqS1Zad3FvQVFLaUgvOHV0bWVONjk3WnJwNzV6ZWIrWDZxcG1ybjlYdlR2Wi9mOU90NS9Z
299 NEcKSVlRUVFnZ2hoQkJDQ0NHRUVFS0lRV01uWUgwTkwxRWZpb2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NmelpFU05WNGRNTkVjUS9sL0dm
367 UGgwN0x5MytjcXY2elBFRzhRUUR5SDZQdTY4RWo1SzhjMHUwUGhpb01xbitBZithazYvdmYKU3Az
368 KzE5RThWQzZMM01lcHMrNHZPb1pjLytQWktGaWJ2Tkp1bVN5SFk0OXNYZ2hzRGR5UHJjNGdpaW43
369 QUl3VXhjUVB1ZmRGL24yUgpmMS9rM3hmNTkwUHV1OEJyb3ZGOHJFdjdWT3p1OTJWWVMrNnJUc2N6
370 VVJpdmRmcEJNZkZFN24yUmYxL2szeGY1OTBYKy9aRDdnTEpQCldhdktlcXk3SmgwT2N4TndyTk94
371 Q0VNeDhVUHVmWkYvWCtUZkYvbjNSZjc5a1BzQXIwYkJHbXlzYThvNld0Y1VGcjFGTWZGRDduMlIK
372 ZjEvazN4ZjU5MFgrL1pEN0FLOUd3V1Uwcjk4NkY1dmdJZnhRVFB5UWUxL2szeGY1OTBYK2ZaRi9Q
373 K1Erb0JkekNxWmlTMEpsdVJoNApOZlp3a1Fld0Ixc3M2c0d4Q0VNeDhVUHVmWkYvWCtUZkYvbjNS
374 Zjc5a1BzT0dNL25GT3dBTE1ZZUZqRVp1QVA0RnJZK2M4cHNMRkQzCnRKUVc0NEZpNG9mYyt5TC92
375 c2kvTC9MdmkvejdJZmRDQ0NHRUVFSUlJWVFRUWdnaGhCQkNDQ0dFRUVJSUlZUVFRZ2doaEJCdCtE
376 L1MKelNmU2hTUU41d0FBQUFCSlJVNUVya0pnZ2c9PQo=
377 </png>
378 <latex>$$- \frac{1}{16} \sqrt{2} {\left|0\right\rangle } + \frac{11}{16} \sqrt{2} {\left|1\right\rangle } - \frac{1}{16} \sqrt{2} {\left|2\right\rangle } - \frac{1}{16} \sqrt{2} {\left|3\right\rangle } - \frac{1}{16} \sqrt{2} {\left|4\right\rangle } - \frac{1}{16} \sqrt{2} {\left|5\right\rangle } - \frac{1}{16} \sqrt{2} {\left|6\right\rangle } - \frac{1}{16} \sqrt{2} {\left|7\right\rangle }$$</latex>
379 <prompt_number>8</prompt_number>
380 </output>
381 </outputs>
382 </codecell>
383 <markdowncell>
384 <source>A single shot measurement is performed to retrieve the target state.</source>
385 </markdowncell>
386 <codecell>
387 <input>measure_all_oneshot(iter2)
388 </input>
389 <language>python</language>
390 <prompt_number>9</prompt_number>
391 <collapsed>0</collapsed>
392 <outputs>
393 <output>
394 <output_type>pyout</output_type>
395 <text>❘001⟩</text>
396 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUNrQUFBQVRDQVlBQUFBTmdTUTlBQUFBQkhOQ1NWUUlD
397 QWdJZkFoa2lBQUFBYWhKUkVGVQpTSW50MXJ0ckZVRWN4ZkVQUWVNcjZEWGlDM3lrc0ZIUlJpUW9p
398 SFZDS2l1eHloOWdZeU1XVmhhQ29vS3R0WlhZaUVaUTB5aGliN0FSCmc1R0ErQ2dVSVRlK0lGck1C
399 TWE5ZS9mTzNOWjhZWmpaOHp1N2UzWjNkblpab1lnTDNRcXJrdkVaUE1WN3RIQWRiWHpCV3R6QzI4
400 cisKdWI1bE51SUpUbU91VW10akd6NDNYY2trUnVKNEdsY3J0VmRZWDlrbjF6ZUlFM2lPUDloWGMv
401 NHRPTmNVTUEwNUdnKzBQNm10dzNkYwpUclJjWHd2M2hUdCtyeUVrWE1KQVRzaTdtSytwUDhKTXNw
402 M3JTN25ZSStSeGpGZkZ1dFJIOEtaR244VWg0YkdVK0VwNEVZUDJETGtkCkN6VjZPL1k3Q24ybHpH
403 TnZLbFJEYmhMbVZWc255MXFyd05jUER6RFJGUEkzbG1LcnNqcjJTd1crZnBqQVZGUElSZDNYdUEy
404 eC8xRGcKNjRjUnZFdUZ1ams1ZzgwMStsRHNQeGI2U2pnbXZEei8wQzNrN2hyOXFQRG0vaWowbFRD
405 R2h6a2hYK0lBOWlUYVZoekd0VDU4dVF6agpxeDV6ZVZLWUQ0TjRocHRKN2J6d1RWK1RhTG0rbEJ2
406 Q1l0NnhGdUtzc0t4MWtQNWdMT0pYYktlRVQ5dHRmTU11bk1UUHhKL3JJL3hVCjdNVEJ1UDBZcjNF
407 SFY2STJoRTlkTG02Ri80ZS91K3R5ZUYwcUx2c0FBQUFBU1VWT1JLNUNZSUk9Cg==
408 </png>
409 <latex>$${\left|001\right\rangle }$$</latex>
410 <prompt_number>9</prompt_number>
411 </output>
412 </outputs>
413 </codecell>
414 </cells>
415 </worksheet>
416 </worksheets>
417 </notebook>
This diff has been collapsed as it changes many lines, (1015 lines changed) Show them Hide them
@@ -1,1 +1,1014 b''
1 {"cells":[{"cell_type":"text","text":"<h1>Quantum Error Correction</h1>"},{"code":"%load_ext sympyprinting","cell_type":"code","prompt_number":1},{"code":"from sympy import sqrt, symbols, Rational\nfrom sympy import expand, Eq, Symbol, simplify, exp, sin\nfrom sympy.physics.quantum import *\nfrom sympy.physics.quantum.qubit import *\nfrom sympy.physics.quantum.gate import *\nfrom sympy.physics.quantum.grover import *\nfrom sympy.physics.quantum.qft import QFT, IQFT, Fourier\nfrom sympy.physics.quantum.circuitplot import circuit_plot","cell_type":"code","prompt_number":2},{"cell_type":"text","text":"<h2>5 qubit code</h2>"},{"code":"M0 = Z(1)*X(2)*X(3)*Z(4); M0\n","cell_type":"code","prompt_number":3},{"code":"M1 = Z(2)*X(3)*X(4)*Z(0); M1\n","cell_type":"code","prompt_number":4},{"code":"M2 = Z(3)*X(4)*X(0)*Z(1); M2\n","cell_type":"code","prompt_number":5},{"code":"M3 = Z(4)*X(0)*X(1)*Z(2); M3\n","cell_type":"code","prompt_number":6},{"cell_type":"text","text":"These operators should mutually commute."},{"code":"gate_simp(Commutator(M0,M1).doit())\n","cell_type":"code","prompt_number":7},{"cell_type":"text","text":"And square to the identity."},{"code":"for o in [M0,M1,M2,M3]:\n display(gate_simp(o*o))\n","cell_type":"code","prompt_number":8},{"cell_type":"text","text":"<h2>Codewords</h2>"},{"code":"zero = Rational(1,4)*(1+M0)*(1+M1)*(1+M2)*(1+M3)*IntQubit(0, 5); zero\n","cell_type":"code","prompt_number":9},{"code":"qapply(4*zero)\n","cell_type":"code","prompt_number":10},{"code":"one = Rational(1,4)*(1+M0)*(1+M1)*(1+M2)*(1+M3)*IntQubit(2**5-1, 5); one\n","cell_type":"code","prompt_number":11},{"code":"qapply(4*one)\n","cell_type":"code","prompt_number":12},{"cell_type":"text","text":"<h2>The encoding circuit</h2>"},{"code":"encoding_circuit = H(3)*H(4)*CNOT(2,0)*CNOT(3,0)*CNOT(4,0)*H(1)*H(4)*\\\n CNOT(2,1)*CNOT(4,1)*H(2)*CNOT(3,2)*CNOT(4,2)*H(3)*\\\n H(4)*CNOT(4, 3)*Z(4)*H(4)*Z(4)\n","cell_type":"code","prompt_number":13},{"code":"circuit_plot(encoding_circuit, nqubits=5, scale=0.5)","cell_type":"code","prompt_number":14},{"code":"represent(4*encoding_circuit, nqubits=5)","cell_type":"code","prompt_number":14},{"code":"%notebook save qerror.ipynb","cell_type":"code","prompt_number":23},{"code":"%notebook load decompose.ipynb","cell_type":"code","prompt_number":23}]} No newline at end of file
1 <?xml version="1.0" encoding="utf-8"?>
2 <notebook>
3 <name>qerror</name>
4 <nbformat>2</nbformat>
5 <worksheets>
6 <worksheet>
7 <cells>
8 <markdowncell>
9 <source>&lt;h1&gt;Quantum Error Correction&lt;/h1&gt;</source>
10 </markdowncell>
11 <codecell>
12 <input>%load_ext sympyprinting</input>
13 <language>python</language>
14 <prompt_number>1</prompt_number>
15 <collapsed>1</collapsed>
16 <outputs />
17 </codecell>
18 <codecell>
19 <input>from sympy import sqrt, symbols, Rational
20 from sympy import expand, Eq, Symbol, simplify, exp, sin
21 from sympy.physics.quantum import *
22 from sympy.physics.quantum.qubit import *
23 from sympy.physics.quantum.gate import *
24 from sympy.physics.quantum.grover import *
25 from sympy.physics.quantum.qft import QFT, IQFT, Fourier
26 from sympy.physics.quantum.circuitplot import circuit_plot</input>
27 <language>python</language>
28 <prompt_number>2</prompt_number>
29 <collapsed>1</collapsed>
30 <outputs />
31 </codecell>
32 <markdowncell>
33 <source>&lt;h2&gt;5 qubit code&lt;/h2&gt;</source>
34 </markdowncell>
35 <codecell>
36 <input>M0 = Z(1)*X(2)*X(3)*Z(4); M0
37 </input>
38 <language>python</language>
39 <prompt_number>3</prompt_number>
40 <collapsed>0</collapsed>
41 <outputs>
42 <output>
43 <output_type>pyout</output_type>
44 <text>Z ⋅X ⋅X ⋅Z
45 1 2 3 4</text>
46 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUZzQUFBQVlDQVlBQUFDVitvRmJBQUFBQkhOQ1NWUUlD
47 QWdJZkFoa2lBQUFBMk5KUkVGVQphSUh0MkVtSUhGVWN4L0ZQa3RIUUNTNW9TR0EwS29JTElzYUxt
48 SU9HT0M0TU11QTJDQ1l3R0pmZ3dSVWRSbkJGRk1sTjlCQXZCaUZSCkJCY1VQUVJFWEhBRE1ZZ29L
49 QklWblNoQ29xakVaWnc0SHY0MU05WGQxUm03NmxXTDBEOG82RmV2NnZ0ZS8rb3QvLytqci85Y0t6
50 R0YKR2Z5RkwvQXFkbWJYdnF6dWluL0JHc091N1BrWi9JNm5jdlVYNDZlczdtOThqblZkOUxWdWZr
51 b3ZDclVKZitJV0hOSlNkeWtPNE5FdQptUTltbmJxdm9HNkwrQU9EWFRKN3dhL0RpeVk5ajVHQysy
52 ZmpON3lFeFYweVYyTWFuN1hjWDRldEpYaTk0dGZoeFp3T3hSc0Y5MC9FCkQvZ0F5MHF5WHhhamIz
53 MVdQa05NK1lHU3ZMcjVkWG9CanNPRkxmZU9FaVBtYTZ5cXdCNFJaanlERS9DQ2lwMnRtVituRjRW
54 YWlyZkUKSm5OYVJkWVNmQ1BXd0Zkd2RFVmVyL2twdldqVElqd3RkdU9oUk14N3hPaTdLeEd2Vi93
55 NnZHalN3NkxqWTRsNEE5Z3VPcnhiL0lHVQpxcE9mMm9zbWJWWWNTaldVLzdKYmNTNmV6ZGpEcFh2
56 WFczNGRYc3hwV0FUd1R4YlVYWVBMU2pBZndpWFo3L05GNTE4cz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Z(0); M1
77 </input>
78 <language>python</language>
79 <prompt_number>4</prompt_number>
80 <collapsed>0</collapsed>
81 <outputs>
82 <output>
83 <output_type>pyout</output_type>
84 <text>Z ⋅X ⋅X ⋅Z
85 2 3 4 0</text>
86 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUZvQUFBQVlDQVlBQUFCNk9PcGxBQUFBQkhOQ1NWUUlD
87 QWdJZkFoa2lBQUFBNGxKUkVGVQphSUh0MkZ1b0ZXVVVCL0RmMXBQSGtpNVVXbWszZWlzaW9oZnhJ
88 YTBzaUxDeWkxQVpkcUVNSXFtUXNxaW9TSkVvZXFnSGlTQ2pHMEVZCmxSS0JHU0ZGTnpwRUZ5Z3Fq
89 TElpNkI1azZkSFR3NW81ZS9iZWMwN3VtVy92WHZZZkJ1YWJOZk9mTmY5WjM3Zld0eGpnZjhVczdN
90 UVkKZHVFTGJNYXIyZkZ6WnJ0b0w3aVdZU1M3Znd3NzhFekJmZzUreld4NzhEbm1kK0Zyci9sVGF0
91 R0JxL0FQYnNRK2JiYkYySTJIdStSYwpuVGwwZDRudGZ1SDg3QzQ1KzhIZkN5M0dzUUdMU3E3UHhW
92 OTRDVk82NUR3S28vaXM3ZnA4ckt2QTF5LytYbWdCcHVHTmt1dkg0VWU4CmovMnFFR09qaUxyVHN2
93 RkpZcG9QVmVUck5YOHZ0WEEwem1xN2RyQ0lsSzl4V0ZWaUVSbGplQTdINGdVMUhPMERmeSsxNk1B
94 d3RvcUUKY2tKTnJxbjRScXg1bTNCSVRiNSs4NmZVb2dVTlBDdXk3aG1KT084U1VYZEhJcjUrOGZk
95 Q2kzR3NGVTR2UzhRM2hLZUVzMThKNTFPaQpsL3lwdFJqSGN1WGwwcjZxLzlGMU9CWFBaOXhuVi9h
96 dXYveTkwQUxoNEM0OFVXSzdHaGRVNEZ5RDg3UHpoY0x4RjZzNDEyZitYbWdCClRzWWYyS0t6UUlj
97 M01RUFRjWXRZRTlkanlTU2NOK0hhd3JnaGR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z(3)*X(4)*X(0)*Z(1); M2
118 </input>
119 <language>python</language>
120 <prompt_number>5</prompt_number>
121 <collapsed>0</collapsed>
122 <outputs>
123 <output>
124 <output_type>pyout</output_type>
125 <text>Z ⋅X ⋅X ⋅Z
126 3 4 0 1</text>
127 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUZvQUFBQVlDQVlBQUFCNk9PcGxBQUFBQkhOQ1NWUUlD
128 QWdJZkFoa2lBQUFBM1JKUkVGVQphSUh0MlZ0b0hIVVV4L0ZQVFRTWTFyVEVlaUhlU2xFRXhVdjFR
129 VlFNb2dnaVhsRXFYaWhhVlBMbUZhbElVYWdpZlJFVXRQaWlnbFFLCm9paUtLQ3Bvc1NnSVFRVEJL
130 cUtVV0MxNG9kWjZhVnJqdzVuTlRpYXpKanZ6bjlXSC9HQmg1LytmL2U2WjM1NzVuelAvWlVIL3FZ
131 N0UKUGt4aEVsL2hIYnlWdlg3SzVxNmRCMnNOeHJQenAvQUhOdWZtTDhNdjJkemYySTdSTG1KdG1w
132 L1NpMW02RlgvaFRoeGNtTHNhQi9CawpsOHhIc29BZUtwbmJLSUlmNlpMWkMzNFRYa3pyWlZ4ZU1u
133 NE9mc2RyT0toTDVuSFlqeThLNDZQWVZJSFhLMzRUWG9CRDhIN0orRXJzCndpY1lyQUxHNnlMckxz
134 eU9UeGUzZVg5Rlh0UDhKcjF3UEM0cGpBMkxUUGtXUjFVRmk4eVl3aGFzd0N0cUJOb0RmcE5lek5J
135 QXRvcUMKY2twTlZoOTJpRFh2RFJ4ZWs5ZHJma292Wm1nUlhoUlY5NkpFelBVaTZ4NU14T3NWdndr
136 dnB2V1lDSHBOSWw0L1hoREJmaTJDVDZrbQorYW05bU5ZZHl0dWxRMVgvUlRmaEFyeVVzUyt0SEYx
137 ditVMTRnUWh3RXMrWHpLM0ZOUldZaitLcTdQM0ZJdkJYcXdUWFkzNFRYb0F6CjhTdmVNN3RCaHcr
138 eEdFdHhnMmpvbjhIWXZ6RHZ3dTI1NDBYaUNXMC9qcGxuWEp0RkJxWGdIeVllUU1id09NN293SjJ2
139 RjNtdHdsTWQKZU5NNkZ0L2hjMkZrVVRlS1hoVTJhR2ZNc0xpb0swcytjNVB5d25TdnlMcUg1d3BL
140 L0tDVFdKS0l2MUU3TVpiakd3d1Z6dW5HaTliNQo2L0dtZURUdnFDRjhodTl4UW1GdUJPdkVYc0Z0
141 MmRnS25KMDdadzl1eVIwUFpCZjBhWWZ2RzhsNEU5bTVuYlFTTitNM000MnV5aC9FClhqTWZ4N2Rp
142 ZGU2NFd5L3lHak9IMGMrS0RKakF4OWxySEx1MU4yejJLVy9TUi9FbGxvbmIreVA4bVgzbWdOaUh5
143 T3M2MGUrMnVEdkYKdzBWUmZYZ2dlOTh5dWk3L1pHRlN2aVBaSXJxS0ZGN01hWFFWRFlzc2ZoY25w
144 WWFMakdsZFRER2pxK3A4a2RGNVBZZW5FN0RwWUhUZApqWnlmUlRWZWl3OUVJVWlsVlNLamRpVmtF
145 dXZ4VkdGc3NiaVd4bFRINkxlMUsvME8vSUM3YTBmVTFtcFI5ZGVKWWplQWUzQldUZTVPClVVL3kz
146 Y0xSNGhyK2w5cUc4N0wzL2FJTnVyK2g3MW91c2pERjBrRnNiYmEyUG9kRWtwUjFGbFZVdW5UMDFR
147 Q080d3FjaVB2RTByRkIKRkpxVU9sWDB2T2VLSDNRQ1A5WmtiaE14THhGdDJoT2l5NmlqcGVJT3Z4
148 Nm5pV0s3VjdiMHBkZ0xHQlIvSHhYWHZWUWFOTFBIM1oxOQpYd29OaUoyK0ZPckRFWVd4UFdZWDNn
149 VXRhRUVMbXEvK0FTMkNFZmVpa09YakFBQUFBRWxGVGtTdVFtQ0MK
150 </png>
151 <latex>$$Z_{3} X_{4} X_{0} Z_{1}$$</latex>
152 <prompt_number>5</prompt_number>
153 </output>
154 </outputs>
155 </codecell>
156 <codecell>
157 <input>M3 = Z(4)*X(0)*X(1)*Z(2); M3
158 </input>
159 <language>python</language>
160 <prompt_number>6</prompt_number>
161 <collapsed>0</collapsed>
162 <outputs>
163 <output>
164 <output_type>pyout</output_type>
165 <text>Z ⋅X ⋅X ⋅Z
166 4 0 1 2</text>
167 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUZvQUFBQVlDQVlBQUFCNk9PcGxBQUFBQkhOQ1NWUUlD
168 QWdJZkFoa2lBQUFBMkJKUkVGVQphSUh0MkYyb1psTVlCL0RmbURPT1lUZ2lUTWZId1pTTHVaQTBr
169 Z3VUU0EzSlIrUEs2QlROaUpxY0tXRW01SXhHY2pFcE53ZEpTb1NKCmlLSVFUY3FVbWpRMVJVTytC
170 bzBNSVYvejRiaDQxbnZPUHUvWisrVGRlKzNYaGZPdlhYdXRaNi8vZXZaL1AzdXRaejNNNHovRnlU
171 aUEKU1J6RUhyeUZOOU8xUDlsVy93dXVVZXhNejAvaUR6eGJzRitKbjVMdGIzeUNsVDM0MmpaL1Rp
172 MW00U2I4aFRFczZySmRpOE40dEVmTwpMY21oKzB0c0R3dm5oM3ZrN0FkL0cxcE00U1ZjVmRKL0lY
173 N0hxemlpUjg3VGNRZ2ZkL1d2eEVRTnZuN3h0NkVGT0JMdmxmU2ZqWDM0CkVFZlhJY1pySXVvdVNl
174 MXp4VzgrVUpPdmJmNDJ0WEFHTHUvcU8wRkV5aGM0cFM2eGlJeEpQSTh6OGJJR2p2YUJ2MDB0Wm1F
175 UTI4V0cKc3J3aDEwSjhKZGE4MTNGaVE3NSs4K2ZVWWdZVzREbXg2MTZhaWZNK0VYWDNaT0xyRjM4
176 YldremhJZUgwYUNhK0FUd2puUDFNT0o4VApiZkxuMW1JS3R5aFBseGFyLzBVbmNERzJKZTVWdGIz
177 ckwzOGJXaUFjUElpblMydzM0N29hbkEvaW1uUi9tWEQ4bFRyTzlabS9EUzNBCmVmZ0Y3NWlkb01Q
178 N09LYXJiN2w0MFNwc3dMcENlNEU0b1IzQ3FYT01XNEZOYWZ4bTFmbHFYZjQ3elMxVXIxcU00bDQ4
179 bnZ5dXpLOVAKd3pmWWphRVMrdzBpVnkxaUVkN0ZreFdjYTVSdlRIZUlxQnV2R0hjc1BzVlJxVDJP
180 QnpMeHIwcjlYK1BHaXZsNzFXSTFya2ozQTlpQgpyV1hFeDJFWHZzTklsMjBZRzBXdFlHMlhiVDN1
181 Tmx2b1FYSDAvYWppUllZVDM5NzBiRGZHOEdLaGZiNTQ4Vno4UkVTV0NWMUhpd2x4ClN1eGdJNzRz
182 bS9RcEVRRjd4ZGZZSVlvMVA1c3UyQnd3TTBtL1NLeUhhMDBMdlJnZjRNODA1ckNvUXhSeHZjaDNP
183 N3pmaXNORkVSTjQKcE5CZW1wNGR5Y1JQdGRCMXREZ0xGeFRhVzlPNHhsaUMyOU45VWVoYzJHYm11
184 ajhrWHZDY2pITlVDZDBVeDR1L1lhcEsyS1NRc3c1UApOUFZvRG53dWhPMmdzK244Mk9LY09iQVFq
185 NG1NWkh1bnM2N1FJeUxUMkNEV29xdEZBZWV1Wmo3T3dFNVJDKzVncWFpVy9aQnhqall3Ckx2YU9O
186 OHhlM3h0amkveEx4ekpSdk9rRXd5WVZ1M2dENUY0NmJoTnJOWkZpYnM3SWJZMkl2ajNpQkpVVDYw
187 VjAzQ3FLNjdtS1JDdEUKcHJRZmI2ZDVtbFlSeDB4dmxKM3JoWTR4UnkzZ0pMRXVTZVQ3TW5CMlkx
188 QlU1SEpoU2JxSytGNmtiSFV4SkRLdUluN0RydzA0NXpHUAplZnkvOFE4S29RMjJ6LzN3eXdBQUFB
189 QkpSVTVFcmtKZ2dnPT0K
190 </png>
191 <latex>$$Z_{4} X_{0} X_{1} Z_{2}$$</latex>
192 <prompt_number>6</prompt_number>
193 </output>
194 </outputs>
195 </codecell>
196 <markdowncell>
197 <source>These operators should mutually commute.</source>
198 </markdowncell>
199 <codecell>
200 <input>gate_simp(Commutator(M0,M1).doit())
201 </input>
202 <language>python</language>
203 <prompt_number>7</prompt_number>
204 <collapsed>0</collapsed>
205 <outputs>
206 <output>
207 <output_type>pyout</output_type>
208 <text>0</text>
209 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUF3QUFBQVNDQVlBQUFCdnFUOE1BQUFBQkhOQ1NWUUlD
210 QWdJZkFoa2lBQUFBTjFKUkVGVQpLSkhOMGkxTFJGRVF4dkdmN2k2THJHRTNhZENvVWJBWkJUK0d6
211 V0FUaTlWbTIyRDNROWd0WnFObzhXWE5naTlCVUhCZFVNTzlGOGJECmxHMU9PY3d6OHo5emVNNHda
212 Y3dVK1JLR2VNUWJPampHYXdhM01NSnUwSTV3aHRrTTJNWVl2YUN0NEFjN0dYQ0o4MFIvd0dtVE5L
213 UGEKV01OOUFveXdXUUlMS2dQZUUrQURBM1Fqc0JpS0dRRDlDSXpyOHpzQk9ySFdBTGY0U3BxcFhK
214 dmdKUUlUM05SdkxXTWVUeXA3LzN6SQpGWmFMNWhiV2NaMk5QbEN0d0Z6UU51cWJ0ekpnZ0R2c0Jl
215 MEVGN0dwWEw1VkhPS3p6bnZZeDNNMjRaL0VMOVhvS0JOSStWMHhBQUFBCkFFbEZUa1N1UW1DQwo=
216 </png>
217 <latex>$$0$$</latex>
218 <prompt_number>7</prompt_number>
219 </output>
220 </outputs>
221 </codecell>
222 <markdowncell>
223 <source>And square to the identity.</source>
224 </markdowncell>
225 <codecell>
226 <input>for o in [M0,M1,M2,M3]:
227 display(gate_simp(o*o))
228 </input>
229 <language>python</language>
230 <prompt_number>8</prompt_number>
231 <collapsed>0</collapsed>
232 <outputs>
233 <output>
234 <output_type>display_data</output_type>
235 <text>1</text>
236 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUFzQUFBQVNDQVlBQUFDTmRTUjFBQUFBQkhOQ1NWUUlD
237 QWdJZkFoa2lBQUFBR0JKUkVGVQpLSkh0MGJFTlFHQVFodUVuV3AxQ1pRRmJxRXhoT0kxQnRFYkFC
238 Z29qL0FvS2tjZ2ZDWjIzdVV2dXZjdVhIQzlRWUk1SktXcU1DTmRoCmN1cExkS2l3UEluUnhpNUgr
239 ZVhYNWV5bytkMWlqaDZUL1hzQkt3WTBUeEo4ekFaQmNneThUWnFOVGdBQUFBQkpSVTVFcmtKZ2dn
240 PT0K
241 </png>
242 <latex>$$1$$</latex>
243 </output>
244 <output>
245 <output_type>display_data</output_type>
246 <text>1</text>
247 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUFzQUFBQVNDQVlBQUFDTmRTUjFBQUFBQkhOQ1NWUUlD
248 QWdJZkFoa2lBQUFBR0JKUkVGVQpLSkh0MGJFTlFHQVFodUVuV3AxQ1pRRmJxRXhoT0kxQnRFYkFC
249 Z29qL0FvS2tjZ2ZDWjIzdVV2dXZjdVhIQzlRWUk1SktXcU1DTmRoCmN1cExkS2l3UEluUnhpNUgr
250 ZVhYNWV5bytkMWlqaDZUL1hzQkt3WTBUeEo4ekFaQmNneThUWnFOVGdBQUFBQkpSVTVFcmtKZ2dn
251 PT0K
252 </png>
253 <latex>$$1$$</latex>
254 </output>
255 <output>
256 <output_type>display_data</output_type>
257 <text>1</text>
258 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUFzQUFBQVNDQVlBQUFDTmRTUjFBQUFBQkhOQ1NWUUlD
259 QWdJZkFoa2lBQUFBR0JKUkVGVQpLSkh0MGJFTlFHQVFodUVuV3AxQ1pRRmJxRXhoT0kxQnRFYkFC
260 Z29qL0FvS2tjZ2ZDWjIzdVV2dXZjdVhIQzlRWUk1SktXcU1DTmRoCmN1cExkS2l3UEluUnhpNUgr
261 ZVhYNWV5bytkMWlqaDZUL1hzQkt3WTBUeEo4ekFaQmNneThUWnFOVGdBQUFBQkpSVTVFcmtKZ2dn
262 PT0K
263 </png>
264 <latex>$$1$$</latex>
265 </output>
266 <output>
267 <output_type>display_data</output_type>
268 <text>1</text>
269 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUFzQUFBQVNDQVlBQUFDTmRTUjFBQUFBQkhOQ1NWUUlD
270 QWdJZkFoa2lBQUFBR0JKUkVGVQpLSkh0MGJFTlFHQVFodUVuV3AxQ1pRRmJxRXhoT0kxQnRFYkFC
271 Z29qL0FvS2tjZ2ZDWjIzdVV2dXZjdVhIQzlRWUk1SktXcU1DTmRoCmN1cExkS2l3UEluUnhpNUgr
272 ZVhYNWV5bytkMWlqaDZUL1hzQkt3WTBUeEo4ekFaQmNneThUWnFOVGdBQUFBQkpSVTVFcmtKZ2dn
273 PT0K
274 </png>
275 <latex>$$1$$</latex>
276 </output>
277 </outputs>
278 </codecell>
279 <markdowncell>
280 <source>&lt;h2&gt;Codewords&lt;/h2&gt;</source>
281 </markdowncell>
282 <codecell>
283 <input>zero = Rational(1,4)*(1+M0)*(1+M1)*(1+M2)*(1+M3)*IntQubit(0, 5); zero
284 </input>
285 <language>python</language>
286 <prompt_number>9</prompt_number>
287 <collapsed>0</collapsed>
288 <outputs>
289 <output>
290 <output_type>pyout</output_type>
291 <text>⎛1 + Z ⋅X ⋅X ⋅Z ⎞⋅⎛1 + Z ⋅X ⋅X ⋅Z ⎞⋅⎛1 + Z ⋅X ⋅X ⋅Z ⎞⋅⎛1 + Z ⋅X ⋅X ⋅Z ⎞⋅❘0⟩
292 ⎝ 1 2 3 4⎠ ⎝ 2 3 4 0⎠ ⎝ 3 4 0 1⎠ ⎝ 4 0 1 2⎠
293 ───────────────────────────────────────────────────────────────────────────
294 4</text>
295 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQWo0QUFBQWlDQVlBQUFCZnVkTmxBQUFBQkhOQ1NWUUlD
296 QWdJZkFoa2lBQUFDcmxKUkVGVQplSnp0blh2TVhFVVp4bjhmdmRHVzBndkZwbzFXeEZwYUM2VVFS
297 TlNLRmJEU2lJcEdCU3VsSDFxVldJdEVwQnFpOFZJUlJVV05vaVVCClk3eUxZb29VcFdnVVJSc0Zi
298 Mzlvb1lLZ1RSR05pTlZTTDZEV1A5NDkrV2JuWFBaY1p2YjJQYjlrMDYrejU3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N4b1lPTzYyWXlHTTZOcnlZUFBZQUw4WW1sMDBBZm9KTmlDdGlXUHdRUzdmUW12a1VhVmlI
353 T3hpYgpaRGtKK0F0ankzYkhpeWNHVFRPZklnMmI0dmVaNDhVVGc2eVpTOGp2dkx3K3M2d25vaE42
354 bU81MDhwZDNEZ29qbUFsQzNydnBZcXpECjNOWjZiQ2Q5M2JVSkM3SGgzS1hBQ2Rqa3Y5Y0hpRHNG
355 bTBDM0QvdFZNdzk3TDY4cGVmNmcreUdtYnJFMDg4blNzQTVuWTVNMzUySy8KNXE1MG5oc3ZuaGcw
356 elh5S05HeENWcDg1WGp5Uk1HaWF1WVQ4eml2cU02dDRvaEdkdHBIZWhHV3N5V1NuUzdIWjh6ZGhr
357 NC9xY0JMcApWUXFEd25wczB1Snk0RjdneDRTNXMrLzVwSDhWZnB2OGljTjFtSXB0K2pRTHEvZWVB
358 REhuMGo1Y21kVDN6Z294QnRrUHNYV0xvWmxQCmxvWlY5SE01R3Rzc2JDZnRrd3lmVmpIbUlIdGkw
359 RFR6eWRPd0xubDk1bmp5QkF5V1ppNmh2L09LK3N5cW5vaEc3R0U2SVlRUVFvaXUKa2JmRFk4SUJi
360 TFJuUHphNU9WbXRNRDF5dllRUVFnZ2hnbFAyanFreGgrbUVFRUlJSVlRUVFnZ2hoQkJDQ0NHRUVF
361 SUlJWVFRUWdnaApoQkNDL3dQUzc3eGZYVmtEVFFBQUFBQkpSVTVFcmtKZ2dnPT0K
362 </png>
363 <latex>$$\frac{1}{4} \left(1 + Z_{1} X_{2} X_{3} Z_{4}\right) \left(1 + Z_{2} X_{3} X_{4} Z_{0}\right) \left(1 + Z_{3} X_{4} X_{0} Z_{1}\right) \left(1 + Z_{4} X_{0} X_{1} Z_{2}\right) {\left|0\right\rangle }$$</latex>
364 <prompt_number>9</prompt_number>
365 </output>
366 </outputs>
367 </codecell>
368 <codecell>
369 <input>qapply(4*zero)
370 </input>
371 <language>python</language>
372 <prompt_number>10</prompt_number>
373 <collapsed>0</collapsed>
374 <outputs>
375 <output>
376 <output_type>pyout</output_type>
377 <text>❘0⟩ + ❘3⟩ - ❘5⟩ + ❘6⟩ - ❘9⟩ - ❘10⟩ + ❘12⟩ - ❘15⟩ + ❘17⟩ - ❘18⟩ - ❘20⟩ - ❘23⟩ +
378 ❘24⟩ - ❘27⟩ - ❘29⟩ - ❘30⟩</text>
379 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQXFjQUFBQVZDQVlBQUFCN2VFZFRBQUFBQkhOQ1NWUUlD
380 QWdJZkFoa2lBQUFDelJKUkVGVQplSnp0blh1d1ZWVWR4ejhnSUFvQlJpYWEwQzFTZTJpalpCZ0tv
381 eW5UT0lKS2oxSFR0RnRwTHdldEZDbFNTQWN4TU1zYWUxR1RWRVpUClVxbVpRbHFUcGhtcGpaaTlS
382 cFFiVHZSd2tDQXVrd2phSDcrMU91dXN1L1krYTU5Nzl0Ni9RK3N6YzJiZnMvYTYrMzUvdi9QNzdi
383 WFAKZWwxSUpCS0pSQ0tSU0NUMkFENWV0NEFXYU5LblNVc0lUZm8wYVltbEd6WDdkS01OM2FnNVJE
384 ZmFrVFJYUXpkcUR0R05kaVRONVpPcApkNWp6ODluQVBjQmZnWEhBZFVBLzhBd3dFbGdPUE9uVTd3
385 ZGVDdnl6dzJKRHVOb0E5Z1l1TjM5L0hEQVIrQ3J3elFyMCtWcVdBa2NDCks0RTdnUm1tVGg5d1Nj
386 bGFZdlJaVGdiT054cjZnWFhBVFNYckMybVpCcHdGREFYK0Eyd0NQZzg4WDRNV3kxUWszbWNFem1u
387 UEJVdWUKRFllWWN5T0IvWUMxd0pYQTAwNmRNbTFvUjNPMzVCWGsyN0VKK0NNU096dUI1NXh6THdB
388 WG9DL21BYzRERGdmMkJjWUFQNlZ4djREcQpOTWZFTHRTYnArMXFyck1kQzlHdUhTRldBRDhBZm16
389 ZWEvTzlwcndzNG1jTjdXZE0zRUlIYzdJWDZERS8zdzBzODg0OWh0eW9MT09CCmo3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Vno1V3FZaUt5SjdnSmVac2czbWRSbHcKSC9wekljYUc3
444 eU1QZGVjRXJuVzk4M09aTmhUVjNBMTVGV09INVJuZ1QyVFA4ZE1VODl1UkRiMnZBSDVvZm44MGNB
445 OXdMbzJlbkNvMAp4OFp1M1huYWp1YTYyN0VRN2RqaGNnVHdKUm9MRm05QUhram1vc3YzRmcxNVdV
446 U3podmF6ajdpNHJUc24yNmJvWEpqL1o1S3Y5bXpTCjUxc1B5ZStKUFowVTQ0bXVwWXpGRHpGc1I1
447 N0VFNjFKdnRxelNaOXZQU1MvSi9aMFVvd25Fb2xFSXBGSUpCS0pSQ0tSU0NRU2lVUWkKa1Vna0Vv
448 bEVJcEZJSkRyTmZ3R2ZvaEMzKzZRWnVBQUFBQUJKUlU1RXJrSmdnZz09Cg==
449 </png>
450 <latex>$${\left|0\right\rangle } + {\left|3\right\rangle } - {\left|5\right\rangle } + {\left|6\right\rangle } - {\left|9\right\rangle } - {\left|10\right\rangle } + {\left|12\right\rangle } - {\left|15\right\rangle } + {\left|17\right\rangle } - {\left|18\right\rangle } - {\left|20\right\rangle } - {\left|23\right\rangle } + {\left|24\right\rangle } - {\left|27\right\rangle } - {\left|29\right\rangle } - {\left|30\right\rangle }$$</latex>
451 <prompt_number>10</prompt_number>
452 </output>
453 </outputs>
454 </codecell>
455 <codecell>
456 <input>one = Rational(1,4)*(1+M0)*(1+M1)*(1+M2)*(1+M3)*IntQubit(2**5-1, 5); one
457 </input>
458 <language>python</language>
459 <prompt_number>11</prompt_number>
460 <collapsed>0</collapsed>
461 <outputs>
462 <output>
463 <output_type>pyout</output_type>
464 <text>⎛1 + Z ⋅X ⋅X ⋅Z ⎞⋅⎛1 + Z ⋅X ⋅X ⋅Z ⎞⋅⎛1 + Z ⋅X ⋅X ⋅Z ⎞⋅⎛1 + Z ⋅X ⋅X ⋅Z ⎞⋅❘31⟩
465 ⎝ 1 2 3 4⎠ ⎝ 2 3 4 0⎠ ⎝ 3 4 0 1⎠ ⎝ 4 0 1 2⎠
466 ────────────────────────────────────────────────────────────────────────────
467 4</text>
468 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQWtnQUFBQWlDQVlBQUFDazdpYTZBQUFBQkhOQ1NWUUlD
469 QWdJZkFoa2lBQUFDdXhKUkVGVQplSnp0bld1c1hGVVpocC9UbnA3U2xrSUxoZHFLRlVxRjFrb3BD
470 b2hZVVFFYmpLaGdWR3ExdEdCVkloWWJFVlM4aTNoQlFZMmlrSUF4ClNMeWdHSlFpdEJwRlZGSkJG
471 Qk1wQW9wSzVHSkVMVUlGS1hyODhjM08yYk5tMy9kYXMrZnlQc21rcDN0bWY3Tm12ZStzK2ZhNmJS
472 QkMKQ0NHRUVKV1pEWXcyWFFnaGhCQkNpRjVnS25BVWNBK3diN05GRVVJSUlZUUl6NlFDcnprSm1B
473 bnNGN2dzUWdnaGhCQjl4empxUVJKQwpDQ0hFRUZDa0Iwa0lJWVFRWXFoUWdpU0VFRUtJWWVhRXBJ
474 Tzl0Q3B0RFBnNGNHYVgzL2ZWd0xxYzEvd2JtNHMxWGlEZUNIQWxNTTA1Ci9nWGcrdGJmRndQN3hK
475 NzdHM0JLdzdFamZOZEhWWnJ5QThnVEx2S0Uzem9JclprODBSM2tpUWxDKzJFTU9CYjR2blA4TU9C
476 RVlHL2cKZnVCeTRQYzVjWkw4OGkvZ3hjQ1BLNVFOOERjSDZma0p4M1lCdmdzODZpRitXWDZFQ1hj
477 MnNBTFlDMHNjUjRGenNjKzlybVRNNmNDTApnSjJ0eHlHWVFTUDJBbllBMTJDaTdONGpzYUYrZmF3
478 bytYNjk1Z2VRSjF6a0NmK2VDSzJaUEJFZWVXSUNIM1dSNVlsZGdYYzZ4OTRLClhBRHNpYTIyZncv
479 d0pMQXFKVWFlWDg3TktWOHFJOWdIckx1UzdYamd0TmovbDJBWjRVM0FmZFF6K3VRSzUreU9aWjFM
480 RTU1YmkzM20KajlRbzAxV3RHQ3VkNDI4RzNsY2picWpZUHVyakZPQU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RUVBV
534 ZmFaa29STzdEZQpvMGV3U2RyUjZvd1pnY3NsaEJCQ0NORVlSZSt3RzdKN1VBZ2hoQkJDQ0NHRUVF
535 SUlJWVFRUWdnaGhCQkNDQ0dFRUVJSUlRYUcvd05RCjQ5a1NqVUMrcFFBQUFBQkpSVTVFcmtKZ2dn
536 PT0K
537 </png>
538 <latex>$$\frac{1}{4} \left(1 + Z_{1} X_{2} X_{3} Z_{4}\right) \left(1 + Z_{2} X_{3} X_{4} Z_{0}\right) \left(1 + Z_{3} X_{4} X_{0} Z_{1}\right) \left(1 + Z_{4} X_{0} X_{1} Z_{2}\right) {\left|31\right\rangle }$$</latex>
539 <prompt_number>11</prompt_number>
540 </output>
541 </outputs>
542 </codecell>
543 <codecell>
544 <input>qapply(4*one)
545 </input>
546 <language>python</language>
547 <prompt_number>12</prompt_number>
548 <collapsed>0</collapsed>
549 <outputs>
550 <output>
551 <output_type>pyout</output_type>
552 <text>-❘1⟩ - ❘2⟩ - ❘4⟩ + ❘7⟩ - ❘8⟩ - ❘11⟩ - ❘13⟩ + ❘14⟩ - ❘16⟩ + ❘19⟩ - ❘21⟩ - ❘22⟩
553 + ❘25⟩ - ❘26⟩ + ❘28⟩ + ❘31⟩</text>
554 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQXJzQUFBQVZDQVlBQUFCRzZpWTFBQUFBQkhOQ1NWUUlD
555 QWdJZkFoa2lBQUFDcHhKUkVGVQplSnp0blgrc0hVVVZ4eit2cmI2S0xTaS9LcGpHQWhWc2FRdGlW
556 UkJMUmZrVktoRWFqS0tvdGVnVGY5dG9pb2pJUXd3Z1ZPV0hpS0xFCko2aWdSU2xLZ2hxczEwTHh0
557 eUlGSWRwSWFCdWlHRkN3U0JGZjhZK3ptenM3ZC9mZTJmdnV6Snd0ODBsZTl0M1p1WHUvYzNiT25O
558 MloKMlZsSUpCS0pSQ0tSU0NSMlVDWkgvTzFUZ01lQVJ5TnF5RWxhM05HaVQ0dU9PaVROO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lZiUG1PT2Fp
612 N1VyawpiV2tya0l0SWtQcCtCN0tzVjQ0MnUydjNVNWR5YUkycE9hNnh5Q1NhNzY2d1BpOUg3b2dl
613 b2YwZTdJM0F6NUg1T1FCdlJ1N3NmR3BaClRQRmQzUFpmdnNaZkNDMG1od0czSXlmemFTUllyRVB1
614 WkNhcXBWVWpiNVcrNDVHblQrZVU3QXRocS8yUnVUYXJrYlh5VnRONVp4cnEKbkxuVVpkZDgyalRQ
615 QmI2TzJIb2Q4dXJYVjFuSGlsa2ZYY3VSNDlPdmZHZytFckg5ZGNpeWFhZForNXRnK3oyUW52U3g3
616 UGZHNkF4QQptdHA2ME9PcnJwcER4YkdXWTc1KzdiNFBzdkxDR0xLaXdYa1ViMGhCbDkxenRQcHBu
617 WEtFaUttdEdubnQ5c1lsRmtGYzMwMG9veFZiClFDSmgwSW90NEJsTUs3YUFSS05veFJid0RLVVZX
618 OENBYU1VVzBJM1ljM1lUZzhmMXFmUkVJZ1NwUHNZajJUNVJoMVJmNHJDajJIMUgKS1VjaWtVZ2tF
619 b2xFSXBGSUpCS0pSQ0tSU0NRU2lVUWlrVWdrRW9tRVQvNFBkL09JMzdra2NxUUFBQUFBU1VWT1JL
620 NUNZSUk9Cg==
621 </png>
622 <latex>$$- {\left|1\right\rangle } - {\left|2\right\rangle } - {\left|4\right\rangle } + {\left|7\right\rangle } - {\left|8\right\rangle } - {\left|11\right\rangle } - {\left|13\right\rangle } + {\left|14\right\rangle } - {\left|16\right\rangle } + {\left|19\right\rangle } - {\left|21\right\rangle } - {\left|22\right\rangle } + {\left|25\right\rangle } - {\left|26\right\rangle } + {\left|28\right\rangle } + {\left|31\right\rangle }$$</latex>
623 <prompt_number>12</prompt_number>
624 </output>
625 </outputs>
626 </codecell>
627 <markdowncell>
628 <source>&lt;h2&gt;The encoding circuit&lt;/h2&gt;</source>
629 </markdowncell>
630 <codecell>
631 <input>encoding_circuit = H(3)*H(4)*CNOT(2,0)*CNOT(3,0)*CNOT(4,0)*H(1)*H(4)*\
632 CNOT(2,1)*CNOT(4,1)*H(2)*CNOT(3,2)*CNOT(4,2)*H(3)*\
633 H(4)*CNOT(4, 3)*Z(4)*H(4)*Z(4)
634 </input>
635 <language>python</language>
636 <prompt_number>13</prompt_number>
637 <collapsed>1</collapsed>
638 <outputs />
639 </codecell>
640 <codecell>
641 <input>circuit_plot(encoding_circuit, nqubits=5, scale=0.5)</input>
642 <language>python</language>
643 <prompt_number>14</prompt_number>
644 <collapsed>0</collapsed>
645 <outputs>
646 <output>
647 <output_type>pyout</output_type>
648 <text>&amp;lt;sympy.physics.quantum.circuitplot.CircuitPlot object at 0x38a6950&amp;gt;</text>
649 <prompt_number>14</prompt_number>
650 </output>
651 <output>
652 <output_type>display_data</output_type>
653 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQWhjQUFBQ2xDQVlBQUFEdlJOOGZBQUFBQkhOQ1NWUUlD
654 QWdJZkFoa2lBQUFBQWx3U0ZsegpBQUFMRWdBQUN4SUIwdDErL0FBQUlBQkpSRUZVZUp6dDNYdFlW
655 Tlg2Qi9EdkJ0R0UwQmdGMDBSQ1RVRzhwQW5lVUxDVHFDaWllTWZqCnRRakZNdE51SHF0VEJ3dVBw
656 enBwQmw1UnBERHhHbG9hWHNBTFJpQW01VEcxSjFQd2dpQWdvaUFnczM1LzlPZ3ZZd1ptaGoyelo0
657 YnYKNTNuNFE5YXM5YTY5WisvRjYxNXI3eTBKSVFTSWlJaUlaR0tqZEFlSWlJakl1akM1SUNJaUls
658 a3h1U0FpSWlKWk1ia2dJaUlpV1RHNQpJQ0lpSWxreHVTQWlJaUpaTWJrZ0lpSWlXVEc1SUNJaUls
659 a3BrbHlvVkNwSWtpVHJqMHFsTWxtc3V1S2FjdnRNU1lsOVNXU3VlRDZRCnJocmlzU0lwOFlST1Na
660 SWdkMWh0YlJvalZsM3RtM0w3VEVtSmZVbGtybmcra0s0YTRySENhUkVpSWlLU0ZaTUxJaUlpa2hX
661 VEN5SWk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W9VMmJk
860 cklIdS84K2ZPSWpZM0ZoUXNYc0hYclZreWVQQm05ZXZYQ3pKa3owYUpGQzluam5UcDFDbkZ4Y2Jo
861 OAorVEsyYmR1R0tWT21vSC8vL3BnNmRTb2NIUjFsajJkdG1Gd1FFUkdSckxpZ2s0aUlpR1RGNUlL
862 SWlJaGt4ZVNDaUlpSVpNWGtnb2lJCmlHVEY1SUtJaUloa3hlU0NpSWlJWk1Ya2dvaUlpR1RGNUlL
863 SWlJaGt4ZVNDaUlpSVpNWGtnb2lJaUdURjVJS0lpSWhreGVTQ2lJaUkKWk1Ya2dvaUlpR1RGNUlL
864 SWlJaGt4ZVNDaUlpSVpNWGtnb2lJaUdURjVJS0lpSWhreGVTQ2lJaUlaTVhrZ29pSWlHVEY1SUtJ
865 aUloawp4ZVNDaUlpSVpNWGtnb2lJaUdURjVJS0lpSWhrOVg4T1FoaGRPdEJ6bGdBQUFBQkpSVTVF
866 cmtKZ2dnPT0K
867 </png>
868 </output>
869 </outputs>
870 </codecell>
871 <codecell>
872 <input>represent(4*encoding_circuit, nqubits=5)</input>
873 <language>python</language>
874 <prompt_number>15</prompt_number>
875 <collapsed>0</collapsed>
876 <outputs>
877 <output>
878 <output_type>pyout</output_type>
879 <text>⎡1 0 1 0 1 0 1 0 0 -1 0 -1 0 -1 0 -1 0 -1 0 -
880
881 ⎢0 1 0 1 0 1 0 1 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0
882
883 ⎢0 1 0 -1 0 1 0 -1 -1 0 1 0 -1 0 1 0 -1 0 1 0
884
885 ⎢1 0 -1 0 1 0 -1 0 0 -1 0 1 0 -1 0 1 0 -1 0 1
886
887 ⎢0 -1 0 -1 0 1 0 1 1 0 1 0 -1 0 -1 0 -1 0 -1 0
888
889 ⎢-1 0 -1 0 1 0 1 0 0 1 0 1 0 -1 0 -1 0 -1 0 -
890
891 ⎢1 0 -1 0 -1 0 1 0 0 -1 0 1 0 1 0 -1 0 1 0 -
892
893 ⎢0 1 0 -1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0 -1 0 -1 0 ⎥
984
985 1 0 1 0 0 1 0 1 0 -1 0 -1⎥
986
987 1 0 -1 0 0 1 0 -1 0 -1 0 1 ⎥
988
989 0 1 0 -1 1 0 -1 0 -1 0 1 0 ⎥
990
991 0 1 0 1 -1 0 -1 0 -1 0 -1 0 ⎥
992
993 1 0 1 0 0 -1 0 -1 0 -1 0 -1⎥
994
995 -1 0 1 0 0 1 0 -1 0 1 0 -1⎥
996
997 0 -1 0 1 1 0 -1 0 1 0 -1 0 ⎥
998
999 -1 0 -1 0 0 -1 0 -1 0 1 0 1 ⎥
1000
1001 0 -1 0 -1 -1 0 -1 0 1 0 1 0 ⎥
1002
1003 1 0 -1 0 1 -1 0 1 0 1 0 -1 0 ⎥
1004
1005 -1 0 1 0 0 -1 0 1 0 1 0 -1⎦</text>
1006 <latex>$$\left(\begin{smallmatrix}1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0\\0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1\\0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1\\1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0\\0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1\\-1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0\\1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0\\0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1\\0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1\\-1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0\\-1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0\\0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1\\1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0\\0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1\\0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1\\-1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0\\0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1\\1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0\\-1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0\\0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1\\-1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0\\0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1\\0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1\\-1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0\\1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0\\0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; -1\\0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1\\-1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0\\0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1\\-1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0\\-1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0\\0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; -1 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; -1 &amp; 0 &amp; 1 &amp; 0 &amp; 1 &amp; 0 &amp; -1\end{smallmatrix}\right)$$</latex>
1007 <prompt_number>15</prompt_number>
1008 </output>
1009 </outputs>
1010 </codecell>
1011 </cells>
1012 </worksheet>
1013 </worksheets>
1014 </notebook>
This diff has been collapsed as it changes many lines, (526 lines changed) Show them Hide them
@@ -1,1 +1,525 b''
1 {"cells":[{"cell_type":"text","text":"<h1>Quantum Fourier Transform</h1>"},{"code":"%load_ext sympyprinting","cell_type":"code","prompt_number":1},{"code":"from sympy import sqrt, symbols, Rational\nfrom sympy import expand, Eq, Symbol, simplify, exp, sin\nfrom sympy.physics.quantum import *\nfrom sympy.physics.quantum.qubit import *\nfrom sympy.physics.quantum.gate import *\nfrom sympy.physics.quantum.grover import *\nfrom sympy.physics.quantum.qft import QFT, IQFT, Fourier\nfrom sympy.physics.quantum.circuitplot import circuit_plot","cell_type":"code","prompt_number":2},{"cell_type":"text","text":"QFT is useful for a quantum algorithm for factoring numbers which is exponentially faster than what is thought to be possible on a classical machine.<br>\nThe transform does a DFT on the state of a quantum system<br>\nThere is a simple decomposition of the QFT in terms of a few elementary gates."},{"cell_type":"text","text":"<h2>QFT Gate and Circuit</h2>"},{"cell_type":"text","text":"Build a 3 qubit QFT and decompose it into primitive gates."},{"code":"fourier = QFT(0,3).decompose(); fourier\n","cell_type":"code","prompt_number":3},{"code":"circuit_plot(fourier, nqubits=3)","cell_type":"code","prompt_number":4},{"cell_type":"text","text":"The QFT circuit can be represented in various symbolic forms."},{"code":"m = represent(fourier, nqubits=3)","cell_type":"code","prompt_number":5},{"code":"m","cell_type":"code","prompt_number":6},{"code":"represent(Fourier(0,3), nqubits=3)*4/sqrt(2)\n","cell_type":"code","prompt_number":7},{"cell_type":"text","text":"<h2>QFT in Action</h2>"},{"cell_type":"text","text":"Build a 3 qubit state to take the QFT of."},{"code":"state = (Qubit('000') + Qubit('010') + Qubit('100') + Qubit('110'))/sqrt(4); state\n","cell_type":"code","prompt_number":8},{"cell_type":"text","text":"Perform the QFT."},{"code":"qapply(fourier*state)\n","cell_type":"code","prompt_number":9},{"code":"%notebook save qft.ipynb","cell_type":"code","prompt_number":23},{"code":"%notebook load density_matrix.ipynb","cell_type":"code","prompt_number":207}]} No newline at end of file
1 <?xml version="1.0" encoding="utf-8"?>
2 <notebook>
3 <name>qft</name>
4 <nbformat>2</nbformat>
5 <worksheets>
6 <worksheet>
7 <cells>
8 <markdowncell>
9 <source>&lt;h1&gt;Quantum Fourier Transform&lt;/h1&gt;</source>
10 </markdowncell>
11 <codecell>
12 <input>%load_ext sympyprinting</input>
13 <language>python</language>
14 <prompt_number>1</prompt_number>
15 <collapsed>1</collapsed>
16 <outputs />
17 </codecell>
18 <codecell>
19 <input>from sympy import sqrt, symbols, Rational
20 from sympy import expand, Eq, Symbol, simplify, exp, sin
21 from sympy.physics.quantum import *
22 from sympy.physics.quantum.qubit import *
23 from sympy.physics.quantum.gate import *
24 from sympy.physics.quantum.grover import *
25 from sympy.physics.quantum.qft import QFT, IQFT, Fourier
26 from sympy.physics.quantum.circuitplot import circuit_plot</input>
27 <language>python</language>
28 <prompt_number>2</prompt_number>
29 <collapsed>1</collapsed>
30 <outputs />
31 </codecell>
32 <markdowncell>
33 <source>QFT is useful for a quantum algorithm for factoring numbers which is exponentially faster than what is thought to be possible on a classical machine.&lt;br&gt;
34 The transform does a DFT on the state of a quantum system&lt;br&gt;
35 There is a simple decomposition of the QFT in terms of a few elementary gates.</source>
36 </markdowncell>
37 <markdowncell>
38 <source>&lt;h2&gt;QFT Gate and Circuit&lt;/h2&gt;</source>
39 </markdowncell>
40 <markdowncell>
41 <source>Build a 3 qubit QFT and decompose it into primitive gates.</source>
42 </markdowncell>
43 <codecell>
44 <input>fourier = QFT(0,3).decompose(); fourier
45 </input>
46 <language>python</language>
47 <prompt_number>3</prompt_number>
48 <collapsed>0</collapsed>
49 <outputs>
50 <output>
51 <output_type>pyout</output_type>
52 <text>SWAP ⋅H ⋅C ⎛S ⎞⋅H ⋅C ⎛T ⎞⋅C ⎛S ⎞⋅H
53 0,2 0 0⎝ 1⎠ 1 0⎝ 2⎠ 1⎝ 2⎠ 2</text>
54 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQVRrQUFBQWNDQVlBQUFBYTk4akFBQUFBQkhOQ1NWUUlD
55 QWdJZkFoa2lBQUFDYWxKUkVGVQplSnp0bkh1UUhFVWR4ei9oTHJrTGdRc1FFbEZFeTBSTE5GYUlt
56 a0pEQW9rYUExRWU0cU0wUmhFSUZpSWlWVVRVbUJCQlNrRVJsZUtwCnFNaERwUFJRZVlnNWlXUk5J
57 QjZDS0FVK1VpTHhVTEY0bkFvSkNCaHkvdkg3alRzNzI5M1RNN083YzNQcFQ5WFczdTZ2OS9mci90
58 NXYKdTZjZnN4QUlCQUk3S2QzQXg0RnJnT3VBSHdQTGdVbkFUNEYxd0xQQUNMQWRHQVIyMTg5K0do
59 aFMyd2p3VytDWW1POWpnVWZWdGczNApna2Q5ZmdRYzc3Q1BCd2FBQjlUdnY0RmJnYlhBUnVCQjRH
60 Ymd0UjZ4c3RLanNSL1UyTThBOXdEbnFuMDJzQUY0VE8zL0JPNEVsbWFJCk1SazREdmdHY0lmR1d3
61 Y3NWdnRTdGJjU1Z3N2MzQUwvWTBXM1ZWcS9wNUh2d1ZwZ2k3NzNLUEF6ZmR5cjc5MVdNRjVFcDNO
62 aUxPVEQKLzVtSVZIbzFzRXZzL1pY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{2}\right)} H_{2}$$</latex>
117 <prompt_number>3</prompt_number>
118 </output>
119 </outputs>
120 </codecell>
121 <codecell>
122 <input>circuit_plot(fourier, nqubits=3)</input>
123 <language>python</language>
124 <prompt_number>4</prompt_number>
125 <collapsed>0</collapsed>
126 <outputs>
127 <output>
128 <output_type>pyout</output_type>
129 <text>&amp;lt;sympy.physics.quantum.circuitplot.CircuitPlot object at 0x4992910&amp;gt;</text>
130 <prompt_number>4</prompt_number>
131 </output>
132 <output>
133 <output_type>display_data</output_type>
134 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQWE4QUFBREZDQVlBQUFEamMzMkpBQUFBQkhOQ1NWUUlD
135 QWdJZkFoa2lBQUFBQWx3U0ZsegpBQUFMRWdBQUN4SUIwdDErL0FBQUVuaEpSRUZVZUp6dDNYOU1W
136 ZlhqeC9IWHVaZXVBaUVDU1psT2l6a1hHalZyRUNFZ1FicTBXV0hhCm9tWHBWcE5wemJJZmxMVmFm
137 eGkxMnF6Vy9GU3pIMXQva0ptMVlhNW1UbjdJYmVudEY3T29HRkZpcThSTUVMaG8vRGpmUDVwOFk5
138 eUwKZ0pkNzd2djZmR3pubi9QV3crdk5rZnZpdk0rNVY4dTJiVnNBQUJqRTVYUUFBQUJHaS9JQ0FC
139 aUg4Z0lBR0lmeUFnQVloL0lDQUJpSAo4Z0lBR0lmeUFnQVloL0lDQUJpSDhnSUFHSWZ5QWdBWWgv
140 SUNBQmlIOGdJQUdJZnlBZ0FZaC9JQ0FCaUg4Z0lBR0lmeUFnQVloL0lDCkFCaUg4Z0lBR0lmeUFn
141 QVloL0lDQUJpSDhnSUFHSWZ5QWdBWWgvSUNBQmlIOGdJQUdJZnlBZ0FZaC9JQ0FCZ25Lc29yT1Rs
142 WmxtV04KMjVhY25PejBGQWVFY3E2Uk5DOXBmTTVqcE0wUlFHaFl0bTNiVG9jNFc1WmxhVHluTWQ3
143 SEg0MVFab21rZVVuamt5ZlM1Z2dnTktMaQp5Z3NBY0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ckx5d3M0WGxkWApKOG5zKzEyUzFOWFZwYUtpSWoz
237 KytPTXFMUzBkV0VJOGVQQ2dubm5tR1VlemNjOExScmo0NG92bDgvbDA2TkFoblR4NVVyTm56MmJK
238 CnhTQWxKU1c2OWRaYjFkallxQXN2dkZCVHBreHhPdEpaT1gyL0s5QWo4cExrOVhvbHlmajdYZkh4
239 OGZya2swK1VucDQrc085MGdiVzMKdHp1WWpFL1lBSUNnZ24yaXhPMjMzNjd0Mjdmcmp6LytVR3Bx
240 NnBEeGl5NjZTSk1tVFZKalkrT1lqbzh6WTlrUUFFYmgxS2xUcXE2dQpWbHBhV3NEaXFxK3ZWMnRy
241 cStiUG4rOUF1bk1INVFVQUk5RFMwcUlGQ3hZb1BUMWRSNDhlVlV0TGkzSnpjL1hhYTY5Sit2ZSti
242 RTVPCmpoWXVYQ2pMc2xSWldhbUNnZ0xIUDRraVdyRnNDQUJCOEo5UlJpNnV2QUFBeHFHOEFBREdv
243 YndBQU1iaGZWNEFNSXp4ZkQ5aFVsTFMKdUIwNzJsRmVBQkFFRDFORUxwWU5BUURHb2J3QUFNYWh2
244 QUFBeHFHOEFBREdvYndBQU1haHZBQUF4cUc4QUFER29id0FBTWFodkFBQQp4cUc4QUFER29id0FB
245 TWFodkFBQXhxRzhBQURHb2J3QUFNYWh2QUFBeHFHOEFBREdvYndBQU1haHZBQUF4cUc4QUFER29i
246 d0FBTWFoCnZBQUF4cUc4QUFER29id0FBTWFodkFBQXhxRzhBQURHb2J3QUFNYWh2QUFBeHFHOEFB
247 REdvYndBQU1haHZBQUF4cUc4QUFER29id0EKQU1haHZBQUF4cUc4QUFERytUOWJuYnVwaW1SUzFn
248 QUFBQUJKUlU1RXJrSmdnZz09Cg==
249 </png>
250 </output>
251 </outputs>
252 </codecell>
253 <markdowncell>
254 <source>The QFT circuit can be represented in various symbolic forms.</source>
255 </markdowncell>
256 <codecell>
257 <input>m = represent(fourier, nqubits=3)</input>
258 <language>python</language>
259 <prompt_number>5</prompt_number>
260 <collapsed>1</collapsed>
261 <outputs />
262 </codecell>
263 <codecell>
264 <input>m</input>
265 <language>python</language>
266 <prompt_number>6</prompt_number>
267 <collapsed>0</collapsed>
268 <outputs>
269 <output>
270 <output_type>pyout</output_type>
271 <text>⎡ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽
272 ⎢╲╱ 2 ╲╱ 2 ╲╱ 2 ╲╱ 2 ╲╱ 2 ╲╱ 2 ╲╱ 2
273 ⎢───── ───── ───── ───── ───── ───── ─────
274 ⎢ 4 4 4 4 4 4 4
275
276 ⎢ ⅈ⋅π ⅈ⋅π ⅈ⋅π
277 ⎢ ─── ─── ───
278 ⎢ ⎽⎽⎽ ⎽⎽⎽ 4 ⎽⎽⎽ ⎽⎽⎽ 4 ⎽⎽⎽ ⎽⎽⎽ 4 ⎽⎽⎽
279 ⎢╲╱ 2 ╲╱ 2 ⋅ℯ ╲╱ 2 ⋅ⅈ ╲╱ 2 ⋅ⅈ⋅ℯ -╲╱ 2 -╲╱ 2 ⋅ℯ -╲╱ 2 ⋅
280 ⎢───── ────────── ─────── ──────────── ────── ─────────── ───────
281 ⎢ 4 4 4 4 4 4 4
282
283 ⎢ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽
284 ⎢╲╱ 2 ╲╱ 2 ⋅ⅈ -╲╱ 2 -╲╱ 2 ⋅ⅈ ╲╱ 2 ╲╱ 2 ⋅ⅈ -╲╱ 2
285 ⎢───── ─────── ────── ──────── ───── ─────── ──────
286 ⎢ 4 4 4 4 4 4 4
287
288 ⎢ ⅈ⋅π ⅈ⋅π ⅈ⋅π
289 ⎢ ─── ─── ───
290 ⎢ ⎽⎽⎽ ⎽⎽⎽ 4 ⎽⎽⎽ ⎽⎽⎽ 4 ⎽⎽⎽ ⎽⎽⎽ 4 ⎽⎽⎽
291 ⎢╲╱ 2 ╲╱ 2 ⋅ⅈ⋅ℯ -╲╱ 2 ⋅ⅈ ╲╱ 2 ⋅ℯ -╲╱ 2 -╲╱ 2 ⋅ⅈ⋅ℯ ╲╱ 2 ⋅ⅈ
292 ⎢───── ──────────── ──────── ────────── ────── ───────────── ───────
293 ⎢ 4 4 4 4 4 4 4
294
295 ⎢ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽
296 ⎢╲╱ 2 -╲╱ 2 ╲╱ 2 -╲╱ 2 ╲╱ 2 -╲╱ 2 ╲╱ 2
297 ⎢───── ────── ───── ────── ───── ────── ─────
298 ⎢ 4 4 4 4 4 4 4
299
300 ⎢ ⅈ⋅π ⅈ⋅π ⅈ⋅π
301 ⎢ ─── ─── ───
302 ⎢ ⎽⎽⎽ ⎽⎽⎽ 4 ⎽⎽⎽ ⎽⎽⎽ 4 ⎽⎽⎽ ⎽⎽⎽ 4 ⎽⎽⎽
303 ⎢╲╱ 2 -╲╱ 2 ⋅ℯ ╲╱ 2 ⋅ⅈ -╲╱ 2 ⋅ⅈ⋅ℯ -╲╱ 2 ╲╱ 2 ⋅ℯ -╲╱ 2 ⋅
304 ⎢───── ─────────── ─────── ───────────── ────── ────────── ───────
305 ⎢ 4 4 4 4 4 4 4
306
307 ⎢ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽ ⎽⎽⎽
308 ⎢╲╱ 2 -╲╱ 2 ⋅ⅈ -╲╱ 2 ╲╱ 2 ⋅ⅈ ╲╱ 2 -╲╱ 2 ⋅ⅈ -╲╱ 2
309 ⎢───── ──────── ────── ─────── ───── ──────── ──────
310 ⎢ 4 4 4 4 4 4 4
311
312 ⎢ ⅈ⋅π ⅈ⋅π ⅈ⋅π
313 ⎢ ─── ─── ───
314 ⎢ ⎽⎽⎽ ⎽⎽⎽ 4 ⎽⎽⎽ ⎽⎽⎽ 4 ⎽⎽⎽ ⎽⎽⎽ 4 ⎽⎽⎽
315 ⎢╲╱ 2 -╲╱ 2 ⋅ⅈ⋅ℯ -╲╱ 2 ⋅ⅈ -╲╱ 2 ⋅ℯ -╲╱ 2 ╲╱ 2 ⋅ⅈ⋅ℯ ╲╱ 2 ⋅ⅈ
316 ⎢───── ───────────── ──────── ─────────── ────── ──────────── ───────
317 ⎣ 4 4 4 4 4 4 4
318
319 ⎽⎽⎽ ⎤
320 ╲╱ 2 ⎥
321 ───── ⎥
322 4 ⎥
323
324 ⅈ⋅π⎥
325 ───⎥
326 ⎽⎽⎽ 4 ⎥
327 ⅈ -╲╱ 2 ⋅ⅈ⋅ℯ ⎥
328 ─ ─────────────⎥
329 4 ⎥
330
331 ⎽⎽⎽ ⎥
332 -╲╱ 2 ⋅ⅈ ⎥
333 ──────── ⎥
334 4 ⎥
335
336 ⅈ⋅π ⎥
337 ─── ⎥
338 ⎽⎽⎽ 4 ⎥
339 -╲╱ 2 ⋅ℯ ⎥
340 ─────────── ⎥
341 4 ⎥
342
343 ⎽⎽⎽ ⎥
344 -╲╱ 2 ⎥
345 ────── ⎥
346 4 ⎥
347
348 ⅈ⋅π ⎥
349 ─── ⎥
350 ⎽⎽⎽ 4 ⎥
351 ⅈ ╲╱ 2 ⋅ⅈ⋅ℯ ⎥
352 ─ ──────────── ⎥
353 4 ⎥
354
355 ⎽⎽⎽ ⎥
356 ╲╱ 2 ⋅ⅈ ⎥
357 ─────── ⎥
358 4 ⎥
359
360 ⅈ⋅π ⎥
361 ─── ⎥
362 ⎽⎽⎽ 4 ⎥
363 ╲╱ 2 ⋅ℯ ⎥
364 ────────── ⎥
365 4 ⎦</text>
366 <latex>$$\left(\begin{smallmatrix}\frac{1}{4} \sqrt{2} &amp; \frac{1}{4} \sqrt{2} &amp; \frac{1}{4} \sqrt{2} &amp; \frac{1}{4} \sqrt{2} &amp; \frac{1}{4} \sqrt{2} &amp; \frac{1}{4} \sqrt{2} &amp; \frac{1}{4} \sqrt{2} &amp; \frac{1}{4} \sqrt{2}\\\frac{1}{4} \sqrt{2} &amp; \frac{1}{4} \sqrt{2} e^{\frac{1}{4} \mathbf{\imath} \pi} &amp; \frac{1}{4} \sqrt{2} \mathbf{\imath} &amp; \frac{1}{4} \sqrt{2} \mathbf{\imath} e^{\frac{1}{4} \mathbf{\imath} \pi} &amp; - \frac{1}{4} \sqrt{2} &amp; - \frac{1}{4} \sqrt{2} e^{\frac{1}{4} \mathbf{\imath} \pi} &amp; - \frac{1}{4} \sqrt{2} \mathbf{\imath} &amp; - \frac{1}{4} \sqrt{2} \mathbf{\imath} e^{\frac{1}{4} \mathbf{\imath} \pi}\\\frac{1}{4} \sqrt{2} &amp; \frac{1}{4} \sqrt{2} \mathbf{\imath} &amp; - \frac{1}{4} \sqrt{2} &amp; - \frac{1}{4} \sqrt{2} \mathbf{\imath} &amp; \frac{1}{4} \sqrt{2} &amp; \frac{1}{4} \sqrt{2} \mathbf{\imath} &amp; - \frac{1}{4} \sqrt{2} &amp; - \frac{1}{4} \sqrt{2} \mathbf{\imath}\\\frac{1}{4} \sqrt{2} &amp; \frac{1}{4} \sqrt{2} \mathbf{\imath} e^{\frac{1}{4} \mathbf{\imath} \pi} &amp; - \frac{1}{4} \sqrt{2} \mathbf{\imath} &amp; \frac{1}{4} \sqrt{2} e^{\frac{1}{4} \mathbf{\imath} \pi} &amp; - \frac{1}{4} \sqrt{2} &amp; - \frac{1}{4} \sqrt{2} \mathbf{\imath} e^{\frac{1}{4} \mathbf{\imath} \pi} &amp; \frac{1}{4} \sqrt{2} \mathbf{\imath} &amp; - \frac{1}{4} \sqrt{2} e^{\frac{1}{4} \mathbf{\imath} \pi}\\\frac{1}{4} \sqrt{2} &amp; - \frac{1}{4} \sqrt{2} &amp; \frac{1}{4} \sqrt{2} &amp; - \frac{1}{4} \sqrt{2} &amp; \frac{1}{4} \sqrt{2} &amp; - \frac{1}{4} \sqrt{2} &amp; \frac{1}{4} \sqrt{2} &amp; - \frac{1}{4} \sqrt{2}\\\frac{1}{4} \sqrt{2} &amp; - \frac{1}{4} \sqrt{2} e^{\frac{1}{4} \mathbf{\imath} \pi} &amp; \frac{1}{4} \sqrt{2} \mathbf{\imath} &amp; - \frac{1}{4} \sqrt{2} \mathbf{\imath} e^{\frac{1}{4} \mathbf{\imath} \pi} &amp; - \frac{1}{4} \sqrt{2} &amp; \frac{1}{4} \sqrt{2} e^{\frac{1}{4} \mathbf{\imath} \pi} &amp; - \frac{1}{4} \sqrt{2} \mathbf{\imath} &amp; \frac{1}{4} \sqrt{2} \mathbf{\imath} e^{\frac{1}{4} \mathbf{\imath} \pi}\\\frac{1}{4} \sqrt{2} &amp; - \frac{1}{4} \sqrt{2} \mathbf{\imath} &amp; - \frac{1}{4} \sqrt{2} &amp; \frac{1}{4} \sqrt{2} \mathbf{\imath} &amp; \frac{1}{4} \sqrt{2} &amp; - \frac{1}{4} \sqrt{2} \mathbf{\imath} &amp; - \frac{1}{4} \sqrt{2} &amp; \frac{1}{4} \sqrt{2} \mathbf{\imath}\\\frac{1}{4} \sqrt{2} &amp; - \frac{1}{4} \sqrt{2} \mathbf{\imath} e^{\frac{1}{4} \mathbf{\imath} \pi} &amp; - \frac{1}{4} \sqrt{2} \mathbf{\imath} &amp; - \frac{1}{4} \sqrt{2} e^{\frac{1}{4} \mathbf{\imath} \pi} &amp; - \frac{1}{4} \sqrt{2} &amp; \frac{1}{4} \sqrt{2} \mathbf{\imath} e^{\frac{1}{4} \mathbf{\imath} \pi} &amp; \frac{1}{4} \sqrt{2} \mathbf{\imath} &amp; \frac{1}{4} \sqrt{2} e^{\frac{1}{4} \mathbf{\imath} \pi}\end{smallmatrix}\right)$$</latex>
367 <prompt_number>6</prompt_number>
368 </output>
369 </outputs>
370 </codecell>
371 <codecell>
372 <input>represent(Fourier(0,3), nqubits=3)*4/sqrt(2)
373 </input>
374 <language>python</language>
375 <prompt_number>7</prompt_number>
376 <collapsed>0</collapsed>
377 <outputs>
378 <output>
379 <output_type>pyout</output_type>
380 <text>⎡1 1 1 1 1 1 1 1 ⎤
381 ⎢ ⎥
382 ⎢ 2 3 4 5 6 7⎥
383 ⎢1 ω ω ω ω ω ω ω ⎥
384 ⎢ ⎥
385 ⎢ 2 4 6 2 4 6⎥
386 ⎢1 ω ω ω 1 ω ω ω ⎥
387 ⎢ ⎥
388 ⎢ 3 6 4 7 2 5⎥
389 ⎢1 ω ω ω ω ω ω ω ⎥
390 ⎢ ⎥
391 ⎢ 4 4 4 4⎥
392 ⎢1 ω 1 ω 1 ω 1 ω ⎥
393 ⎢ ⎥
394 ⎢ 5 2 7 4 6 3⎥
395 ⎢1 ω ω ω ω ω ω ω ⎥
396 ⎢ ⎥
397 ⎢ 6 4 2 6 4 2⎥
398 ⎢1 ω ω ω 1 ω ω ω ⎥
399 ⎢ ⎥
400 ⎢ 7 6 5 4 3 2 ⎥
401 ⎣1 ω ω ω ω ω ω ω ⎦</text>
402 <latex>$$\left(\begin{smallmatrix}1 &amp; 1 &amp; 1 &amp; 1 &amp; 1 &amp; 1 &amp; 1 &amp; 1\\1 &amp; \omega &amp; \omega^{2} &amp; \omega^{3} &amp; \omega^{4} &amp; \omega^{5} &amp; \omega^{6} &amp; \omega^{7}\\1 &amp; \omega^{2} &amp; \omega^{4} &amp; \omega^{6} &amp; 1 &amp; \omega^{2} &amp; \omega^{4} &amp; \omega^{6}\\1 &amp; \omega^{3} &amp; \omega^{6} &amp; \omega &amp; \omega^{4} &amp; \omega^{7} &amp; \omega^{2} &amp; \omega^{5}\\1 &amp; \omega^{4} &amp; 1 &amp; \omega^{4} &amp; 1 &amp; \omega^{4} &amp; 1 &amp; \omega^{4}\\1 &amp; \omega^{5} &amp; \omega^{2} &amp; \omega^{7} &amp; \omega^{4} &amp; \omega &amp; \omega^{6} &amp; \omega^{3}\\1 &amp; \omega^{6} &amp; \omega^{4} &amp; \omega^{2} &amp; 1 &amp; \omega^{6} &amp; \omega^{4} &amp; \omega^{2}\\1 &amp; \omega^{7} &amp; \omega^{6} &amp; \omega^{5} &amp; \omega^{4} &amp; \omega^{3} &amp; \omega^{2} &amp; \omega\end{smallmatrix}\right)$$</latex>
403 <prompt_number>7</prompt_number>
404 </output>
405 </outputs>
406 </codecell>
407 <markdowncell>
408 <source>&lt;h2&gt;QFT in Action&lt;/h2&gt;</source>
409 </markdowncell>
410 <markdowncell>
411 <source>Build a 3 qubit state to take the QFT of.</source>
412 </markdowncell>
413 <codecell>
414 <input>state = (Qubit('000') + Qubit('010') + Qubit('100') + Qubit('110'))/sqrt(4); state
415 </input>
416 <language>python</language>
417 <prompt_number>8</prompt_number>
418 <collapsed>0</collapsed>
419 <outputs>
420 <output>
421 <output_type>pyout</output_type>
422 <text>❘000⟩ + ❘010⟩ + ❘100⟩ + ❘110⟩
423 ─────────────────────────────
424 2</text>
425 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQVA0QUFBQWlDQVlBQUFCL2FtUUZBQUFBQkhOQ1NWUUlD
426 QWdJZkFoa2lBQUFCUjVKUkVGVQplSnp0bkZ0b0hGVVl4My9iSk5hbXBob3JhUnZGVnEyWVFnUXQr
427 aUJLS3lxaWd1TGxJWUpRUVgzd1FiRytGQzhnNjFNcGxHb3JvcjNnCkJYendwWWhJOVVHMGlvaGFC
428 VVdyQmtHRldtOTRiMU1xYWMzNjhNMjRrM0V1NTh5ZU16dVovWDZ3N002Wi8zNTgvejJabVhNTktJ
429 cWkKWkRBTTlIYzdDVVZSeW1FK3NBYjRCbGpSM1ZRVVJYSEJQQVBOQkRBRW5PVTVGMFZSS2tnTGZl
430 SXJTaTB3ZWVJcmlsSXpldjNDUHgyNAp1TnRKbEVRdmVRWDFtMG1mUmVBbXNCWDQwektoS0FOSWdv
431 ZUFHNEhKMlBuNXdMM0F6Y0FGd0JUd2MwSWNWN29wNEc1Z2J5RTNkc1Q5Cm1ub0FhQUFiZ1ErQTZS
432 Uk5sYjJHdVBCaHFwc3JmazExUmZ5ZUEveVJ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aE9iRlEwNEVMZzZZ
446 VHlHZEpYVE5ubWxrZVZ2ZHBRaDdyMWdRdS9xNER2b3dWbApYUGo3a2FiSE1yS2ZacDhpVTRaUjFn
447 QW5NSHNxMExWdU5iSkdJWXY5S2VXSERiNmJoR2x1cnVOMXc2c05kYWhiSDNUcWQ0eFk2NldNClVm
448 MFpaRzV4Vlk3dUJlQnFabmNMcmtmV0w3L2hVWGNEOEVxZUNjZVk1dVk2WGplODJsQ0h1dlZCcDM3
449 UEJsNlBGcGc4OFJjQWR5RnIKZ0E4QXo1Rzk0U0NKVGNIcnpRek5IdUFCWk1IQlZtUTI0RXFreitK
450 THR3aVpKamx1NmFkVFRITHJCKzVEQm1YdURNcDJJNXN3OWdKdgpXOGJybGxmWFBreDFWZmRiVnYx
451 T0FLOFNXd2VRTjVvL0QzZ0NlQVRwMTJ4Qm1oeHJrZWE3RGR1QWoybjNQNWFRdk91cUgybXlIRVdt
452 CklaS21NVnpwaHBEZjRKQ3BpUmh2SWF1aVRFanltNVZiSDNCdFNxeHZnYzhUeXF2bzFiVVBVMTNW
453 L1paUnY0c1JIMnVSUVhaanhwRSsKMEVod1BJb01pRnhxRXlTUzlBNWkwd3B6bkRLMmZGYUZYdklL
454 OWZDN0Jka25ZODBROEJqU2pBQzVBYlF3dnhQR0NmZmoxd1hiNWJWegptVjd5Q3ZYd3U4SlZvUFhJ
455 Wm9HQlBLR2lLUFZnREhnWGFlNHJpdElEakNMOTg1T0Q0MTcvWDMyS1Vuc1dBdy9UYnQ2dkJxN3BY
456 anFLCm9uUkszblRlU2NqRS96VHRIWGVqd0JYSTFqOUZVZVlnZVF0NEJwRUZBMUZhNkVXdktJcWlL
457 SXFpS0lxaUtJcWlLRjNuWDdyc1VmN2kKM2xJV0FBQUFBRWxGVGtTdVFtQ0MK
458 </png>
459 <latex>$$\frac{1}{2} \left({\left|000\right\rangle } + {\left|010\right\rangle } + {\left|100\right\rangle } + {\left|110\right\rangle }\right)$$</latex>
460 <prompt_number>8</prompt_number>
461 </output>
462 </outputs>
463 </codecell>
464 <markdowncell>
465 <source>Perform the QFT.</source>
466 </markdowncell>
467 <codecell>
468 <input>qapply(fourier*state)
469 </input>
470 <language>python</language>
471 <prompt_number>9</prompt_number>
472 <collapsed>0</collapsed>
473 <outputs>
474 <output>
475 <output_type>pyout</output_type>
476 <text>⎽⎽⎽ ⎽⎽⎽
477 ╲╱ 2 ⋅❘000⟩ ╲╱ 2 ⋅❘100⟩
478 ─────────── + ───────────
479 2 2</text>
480 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQU5BQUFBQWtDQVlBQUFENHA3UjdBQUFBQkhOQ1NWUUlD
481 QWdJZkFoa2lBQUFCWkJKUkVGVQplSnp0M0h1b1pWVWR3UEhQSFcvam5kRWNMYTFyVHRvZmFRWTVR
482 eFNwbzg1Y1N3SmoxQVRGQjhySWRLdXhtb2dKMG54T1lZMys0U1A2Cko2bEltSUVvUmhLTmZDR29K
483 Q2dPZ29NamdYL0kwRU1sRll1Um9sRnVmL3pPeG5QMjNlZHh6OW1QYzYvckM1dkRYZnUzOTE1bmY4
484 OWUKZTYzZjJ2dVNTQ1FTaVVRVFREUmRnVDdNbGJDUGNmK09TNTNqOExjUzlyUG9QWjZBcVpxUHVS
485 c2Zxdm1ZUzVua3NHU1dEUkN6R3BkagpENmFyclU0SG44Vit2Rm5qTVpjcXlXR0RuSXUxb2p2MWlS
486 cVB1MHZjL2hPamt4eFd4T1FBTVE5V1hvdjVuSVMzOGZjR2pyMFVTUTdICmdEcGJyMS9peEpxTzlY
487 NGlPU3laUWNaQWRmTnhNZEI5cWVtS2xNU21waXZRQUV2TklWMDhEdEtGcTV2djQvWWU2OWRnVmd5
488 TW44WDkKMkZjUXQ3YjErWHl1L0VwOFFReHNYOEc5K0dmQjltWEZmVUJrdi9iMytFNUxqWDRPR2Qx
489 anhwbFlqNTkyV1Q4Mkh1dTQvUjhqMHA3ZApPQi8zNFhNaW03UUQvOEVGQmJFenJhV2RHL0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prompt_number>9</prompt_number>
519 </output>
520 </outputs>
521 </codecell>
522 </cells>
523 </worksheet>
524 </worksheets>
525 </notebook>
This diff has been collapsed as it changes many lines, (1472 lines changed) Show them Hide them
@@ -1,1 +1,1471 b''
1 {"cells":[{"cell_type":"text","text":"<h1>Symbolic Quantum Computing</h1>"},{"code":"%load_ext sympyprinting","cell_type":"code","prompt_number":1},{"code":"from sympy import sqrt, symbols, Rational\nfrom sympy import expand, Eq, Symbol, simplify, exp, sin\nfrom sympy.physics.quantum import *\nfrom sympy.physics.quantum.qubit import *\nfrom sympy.physics.quantum.gate import *\nfrom sympy.physics.quantum.grover import *\nfrom sympy.physics.quantum.qft import QFT, IQFT, Fourier\nfrom sympy.physics.quantum.circuitplot import circuit_plot","cell_type":"code","prompt_number":2},{"cell_type":"text","text":"<h2>Qubits</h2>"},{"cell_type":"text","text":"The state of a set of qubits (Two state systems) is the quantum state that is of interest in Quantum Computing."},{"code":"alpha, beta = symbols('alpha beta',real=True)","cell_type":"code","prompt_number":3},{"code":"psi = alpha*Qubit('00') + beta*Qubit('11'); psi\n","cell_type":"code","prompt_number":4},{"code":"Dagger(psi)\n","cell_type":"code","prompt_number":5},{"code":"qapply(Dagger(Qubit('00'))*psi)\n","cell_type":"code","prompt_number":6},{"cell_type":"text","text":"SymPy supports many different types of measurements."},{"code":"for state, prob in measure_all(psi):\n display(state)\n display(prob)\n","cell_type":"code","prompt_number":7},{"cell_type":"text","text":"Qubits can be represented in the computational basis."},{"code":"represent(psi)\n","cell_type":"code","prompt_number":8},{"cell_type":"text","text":"<h2>Gates</h2>"},{"cell_type":"text","text":"Gate objects are the operators which act on a quantum state."},{"code":"g = X(0); g\n","cell_type":"code","prompt_number":9},{"code":"represent(g, nqubits=2)\n","cell_type":"code","prompt_number":10},{"code":"c = H(0)*Qubit('00'); c\n","cell_type":"code","prompt_number":11},{"code":"qapply(c)\n","cell_type":"code","prompt_number":12},{"code":"for gate in [H,X,Y,Z,S,T]:\n for state in [Qubit('0'),Qubit('1')]:\n lhs = gate(0)*state\n rhs = qapply(lhs)\n display(Eq(lhs,rhs))","cell_type":"code","prompt_number":13},{"cell_type":"text","text":"<h2>Symbolic gate rules and circuit simplification</h2>"},{"code":"for g1 in (Y,Z,H):\n for g2 in (Y,Z,H):\n e = Commutator(g1(0),g2(0))\n if g1 != g2:\n display(Eq(e,e.doit()))\n","cell_type":"code","prompt_number":14},{"code":"c = H(0)*X(1)*H(0)**2*CNOT(0,1)*X(1)**3*X(0)*Z(1)**2; c\n","cell_type":"code","prompt_number":15},{"code":"circuit_plot(c, nqubits=2)","cell_type":"code","prompt_number":16},{"cell_type":"text","text":"This performs a commutator/anticommutator aware bubble sort algorithm to simplify a circuit."},{"code":"gate_simp(c)\n","cell_type":"code","prompt_number":17},{"code":"circuit_plot(gate_simp(c),nqubits=2)","cell_type":"code","prompt_number":18},{"code":"%notebook save quantum_computing.ipynb","cell_type":"code","prompt_number":35},{"code":"%notebook load grovers.ipynb","cell_type":"code","prompt_number":90}]} No newline at end of file
1 <?xml version="1.0" encoding="utf-8"?>
2 <notebook>
3 <name>quantum_computing</name>
4 <nbformat>2</nbformat>
5 <worksheets>
6 <worksheet>
7 <cells>
8 <markdowncell>
9 <source>&lt;h1&gt;Symbolic Quantum Computing&lt;/h1&gt;</source>
10 </markdowncell>
11 <codecell>
12 <input>%load_ext sympyprinting</input>
13 <language>python</language>
14 <prompt_number>1</prompt_number>
15 <collapsed>1</collapsed>
16 <outputs />
17 </codecell>
18 <codecell>
19 <input>from sympy import sqrt, symbols, Rational
20 from sympy import expand, Eq, Symbol, simplify, exp, sin
21 from sympy.physics.quantum import *
22 from sympy.physics.quantum.qubit import *
23 from sympy.physics.quantum.gate import *
24 from sympy.physics.quantum.grover import *
25 from sympy.physics.quantum.qft import QFT, IQFT, Fourier
26 from sympy.physics.quantum.circuitplot import circuit_plot</input>
27 <language>python</language>
28 <prompt_number>2</prompt_number>
29 <collapsed>1</collapsed>
30 <outputs />
31 </codecell>
32 <markdowncell>
33 <source>&lt;h2&gt;Qubits&lt;/h2&gt;</source>
34 </markdowncell>
35 <markdowncell>
36 <source>The state of a set of qubits (Two state systems) is the quantum state that is of interest in Quantum Computing.</source>
37 </markdowncell>
38 <codecell>
39 <input>alpha, beta = symbols('alpha beta',real=True)</input>
40 <language>python</language>
41 <prompt_number>3</prompt_number>
42 <collapsed>1</collapsed>
43 <outputs />
44 </codecell>
45 <codecell>
46 <input>psi = alpha*Qubit('00') + beta*Qubit('11'); psi
47 </input>
48 <language>python</language>
49 <prompt_number>4</prompt_number>
50 <collapsed>0</collapsed>
51 <outputs>
52 <output>
53 <output_type>pyout</output_type>
54 <text>α⋅❘00⟩ + β⋅❘11⟩</text>
55 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUdrQUFBQVhDQVlBQUFBSXFtR0xBQUFBQkhOQ1NWUUlD
56 QWdJZkFoa2lBQUFBN0pKUkVGVQphSUh0MkZ1SVZWVWN4L0ZQVGlXa0RhRnBHa1JsUlRlYXdncWpy
57 TWFZNklKMG9TQ05wS0NIb2dzRjJid0VRVkZRV25ReHNDQXd1aUhFCkZGMnhseTR2UVRlc01TcENv
58 cWF5OGFIQ1NydElZdy8vdlprOSs2d3pjL2FaNDVtUzg0WEQydWUvZit2eTMydjkxNDBPSFpxa0gz
59 dE4KZFNQYVRGMmZ1NW9zOEFnc3dSZWxzdTdFTlRnRkYyQUh2a3ZVMllqdU9HeHVzbjJUWlFXdVF5
60 OXV4amFNcVBVNVoyOE00R2Q4UFU2NQpFK2xhNnZNeFdGYXkzWU8zTWExUTRTODRhaEs2ZGpNZHE3
61 Q29ZRnVJblRoVHJjOWRZcUFOWUJmT3IxTnVvN3FrejlOU3hpYm94azE0CldvdzQrQnhmNFlrbWRF
62 UmtIZEpFVzJiaDBDYnl3ZTFZaC9jTHRsOUZCUFFrOU90eHRZaTA4V2hVMTZ6UFNjcVJ0RktNa0lO
63 THVydkUKS095dXFKTTk5emZSdHFWWlBWWHB3eVVK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Xellt
77 ZFhKT1h6T3JFVDJ5bG1vcit6LzJ1YTBFM0c1LzhkVlRwcHVmYWN3eWJGbnRoek82UnZOVklzCk5M
78 cE9kdmlQOHVoVU42QVI5c1JJYXBRNWFpOTZPM1RvMEtIRDFQRXZuNWpwRldLVVN1VUFBQUFBU1VW
79 T1JLNUNZSUk9Cg==
80 </png>
81 <latex>$$\alpha {\left|00\right\rangle } + \beta {\left|11\right\rangle }$$</latex>
82 <prompt_number>4</prompt_number>
83 </output>
84 </outputs>
85 </codecell>
86 <codecell>
87 <input>Dagger(psi)
88 </input>
89 <language>python</language>
90 <prompt_number>5</prompt_number>
91 <collapsed>0</collapsed>
92 <outputs>
93 <output>
94 <output_type>pyout</output_type>
95 <text>α⋅⟨00❘ + β⋅⟨11❘</text>
96 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUdnQUFBQVhDQVlBQUFEbmFBcTFBQUFBQkhOQ1NWUUlD
97 QWdJZkFoa2lBQUFBNk5KUkVGVQphSUh0MkZ1TVhWTWN4L0dQS3BPVWlCb3oxU0pFTkc0eG9pSHRR
98 MFZMRWJRaUlXRkVFMEVRSkNLcWphZE9KT0pTRW9yb1EwV0NURHpnCndTMjh1RDY0UllSNkUwTFJT
99 MEtrZEZxaVpqejgxMDczN05ubnpONHpjODZNNW55VG5iWDNXcis5MXZydnRmLy9kYUhEQWMvYTZl
100 N0EKTk5BMm0yZFA4djJ6OFcxSi9uTGNtY3FHOFF1ZW5xQnVMUjZaWkQvcnNocExNSVJUc1FsdnBi
101 SkdObWRjaHhXNGNadzJtdW1tek9iMQp4Zzd5NmRpRGhlbDVOajdHUFJQVURVeEZSeXZTSlQ3TTRs
102 emVJdnlEbnZSY1pqTWNqN3V3RHk4MmFhT0tiaUM3bVZXaDA0MDRBcnRUClEzbnVFeDg2Kzh2MllS
103 QVA0WVFKNk9weTFDVGV2eGZQNGROYzNoOWlRUG8wdHZrT1BJaERjVkNUK3F2cXBvUmJzYUNRZDV6
104 ND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WM4UVozUE40UnV6dwpteTBJaWpiMzR4TVJ0a2ZTOVQwK05I
118 cFBWMVZYMStiL0ZYVUdxRjhjaHM1WUpuUFVNMVBabzNxSVhDVG13ZzR6bEkzVDNZSHhPQkE5CnFD
119 bzkybnp3MmFGRGh3NGRSdkVmTWFmaitnL1d6VDRBQUFBQVNVVk9SSzVDWUlJPQo=
120 </png>
121 <latex>$$\alpha {\left\langle 00\right|} + \beta {\left\langle 11\right|}$$</latex>
122 <prompt_number>5</prompt_number>
123 </output>
124 </outputs>
125 </codecell>
126 <codecell>
127 <input>qapply(Dagger(Qubit('00'))*psi)
128 </input>
129 <language>python</language>
130 <prompt_number>6</prompt_number>
131 <collapsed>0</collapsed>
132 <outputs>
133 <output>
134 <output_type>pyout</output_type>
135 <text>α</text>
136 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUE0QUFBQU5DQVlBQUFDWjNGOS9BQUFBQkhOQ1NWUUlD
137 QWdJZkFoa2lBQUFBTWxKUkVGVQpLSkhWMFRGT1FsRVFoZUhQMTJDQ0xSWVFHa0xySzRrTDBKQklZ
138 K3NpNkVqczNBQTBoTVlOYUdkbm9Sc3cwTG9FVERTVWtKaFFBUVh6CkVyaDVsWjNUekoweitXZk96
139 ZkRIT0NuUldyaERFK2RZNEI2ckEyYWJRam5tdUlrNnd5TmU0dzNqRkdyakJ3K0ozb3NOSFRSSytw
140 NEQKckNaNk04QitRUFhDU3BHdjhZN2ZCUHlLZklrS3ZnK2JGekYxa05xSTJPSVRwNFZRYkp4SGMx
141 RUNuV0dETjZ4VGNJa1hkQlBvQ2tQTQo3RStUNFpiak8xWXdRaTMrbGVFakJ1YVlZSXFuc1AxZlln
142 Y1ByaVYrNlVjV0xBQUFBQUJKUlU1RXJrSmdnZz09Cg==
143 </png>
144 <latex>$$\alpha$$</latex>
145 <prompt_number>6</prompt_number>
146 </output>
147 </outputs>
148 </codecell>
149 <markdowncell>
150 <source>SymPy supports many different types of measurements.</source>
151 </markdowncell>
152 <codecell>
153 <input>for state, prob in measure_all(psi):
154 display(state)
155 display(prob)
156 </input>
157 <language>python</language>
158 <prompt_number>7</prompt_number>
159 <collapsed>0</collapsed>
160 <outputs>
161 <output>
162 <output_type>display_data</output_type>
163 <text>❘00⟩</text>
164 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUI4QUFBQVRDQVlBQUFCb2JOWkNBQUFBQkhOQ1NWUUlD
165 QWdJZkFoa2lBQUFBV2RKUkVGVQpTSW50MWJ0TEhVRVV4L0VQRWpVK0lDYmlvekJxcTJBYUNXS2Ex
166 SXFWcGRYOUEyeHNKTFdGaFdoaG16cWxwUXFDVFN6c0Rla1VDVUx3ClVSZ0NYdk1Rcmhhek40eDcx
167 ODF1bWtESUQ0WXplODUzK0EwN1ozYjV4L1htb2NLamFENkg5L2lNTHF5aGlrczh4bHNjcDlZWDRh
168 cm8KeFVYZURpc1lUdWE3V0VuVlBxSTl0YVlJMTQyRlBPUFlmQUszR0lscWJmaUc1U2hYbElNbE5C
169 VXgzOEJKUm4wSEg2TG5vaHk4d25RYQp6TnJOT0E0ejhrY1lFMTVqR1E3Mmt3MzgxcndQVnhuNWFo
170 TDdTM0oxbldBb3oveUpjRzVWamFybnVrcHdzVFl4azJkK2cxb3kwbXBPCllxMEVGMnNHVzNubTF4
171 cnZjbDBkU1R3dHdjVWF4cWM4YzBLblBzM0lkeWJ4ckNRSGswTFQzZE5ENXM4ejhpK0ZUdjVla29N
172 cGJCY3gKUDhBb0JxTmNEMTVnOVErNFovZ2l1ejkrcVNLY1N3djJzQjdWRm9WdmZtdVVLOHJOQzll
173 eVFmR1A1Um8va3pFcmZDTGY0U3NHOEJvLwpJcjRvMTRuekxQUC8raXU2QTRCcVkvK1pLa0FTQUFB
174 QUFFbEZUa1N1UW1DQwo=
175 </png>
176 <latex>$${\left|00\right\rangle }$$</latex>
177 </output>
178 <output>
179 <output_type>display_data</output_type>
180 <text>2
181 α
182 ───────
183 2 2
184 α + β</text>
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UxTRFAxV2FtaHo2cS82ZGp6TQpvRGxGdGVkY0xFZHprNUNwSnhObkd5N2pXQ002
199 cjNaNUR5VUI5T0tEY0xsZHhFMGhzOTV0UkJBenNBSG5oSVE1aGtYQ3pJL21wRmNJClI2cDgzNU9u
200 ZUt4M3c3Tzk0V2dXOXc5QVVlZ1FMdStTa3BLU2tuL3hDNWZQYi9CTXJrVkZBQUFBQUVsRlRrU3VR
201 bUNDCg==
202 </png>
203 <latex>$$\frac{\alpha^{2}}{\alpha^{2} + \beta^{2}}$$</latex>
204 </output>
205 <output>
206 <output_type>display_data</output_type>
207 <text>❘11⟩</text>
208 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUI4QUFBQVRDQVlBQUFCb2JOWkNBQUFBQkhOQ1NWUUlD
209 QWdJZkFoa2lBQUFBT1pKUkVGVQpTSW50MVRGT0FrRVV4dkZmaUxFa0NJa0ZGa0RDSlRUaEFCcHFD
210 aXF1WUFXRnR6SGhCR0JqYTB3czdLeXNqRDJ4a1JZb2RvMncyZDNaClJpY3hmczI4dlBsZS9tOG1r
211 emY4Y2MyS05tcDc4UmhubWYwNm50QUxBTXA4YTV5R09weWdtOGJIR09BQlcvUUxhcXI0V3JqT0t6
212 N0sKeVRWd2kxZXNTcHF0Nmx2aFJITExteUxUeFBmSnYzU2ovT1JWZlJlNHlpWnJPY2FmMEdQYVFC
213 UTR2S01UQzc3QU1CWjhpR1VzZUJkdgpNZURua2tkM29OK0NYK0l1QnJ5SkR6a0RKZ1J2cG10b05w
214 ZjV4cGdINm8zUVR1Tjd2RWltMWhhZmVNWTBVMVBGVi9pci9TdUtkcWlvCkswNXl6bzdrQUFBQUFF
215 bEZUa1N1UW1DQwo=
216 </png>
217 <latex>$${\left|11\right\rangle }$$</latex>
218 </output>
219 <output>
220 <output_type>display_data</output_type>
221 <text>2
222 β
223 ───────
224 2 2
225 α + β</text>
226 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUQwQUFBQX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VhmcStl
240 OVRCVVE1K0crZVhWWm5yTW42dGpTVGdVakFtSGhEWjh6UnZFRkRUTUwyK3BjbjljCjJDYTJZSjNn
241 WFE4TGk5bGtxazNVb2R1TEI5UGM3OFFDWEJjRytRcTMxZjQ1L1pNY3IzTC9uL1RMRzgyeDFBR2tv
242 UERMQ3dvS0NxYmoKRndudWJ2aG5lQTVsQUFBQUFFbEZUa1N1UW1DQwo=
243 </png>
244 <latex>$$\frac{\beta^{2}}{\alpha^{2} + \beta^{2}}$$</latex>
245 </output>
246 </outputs>
247 </codecell>
248 <markdowncell>
249 <source>Qubits can be represented in the computational basis.</source>
250 </markdowncell>
251 <codecell>
252 <input>represent(psi)
253 </input>
254 <language>python</language>
255 <prompt_number>8</prompt_number>
256 <collapsed>0</collapsed>
257 <outputs>
258 <output>
259 <output_type>pyout</output_type>
260 <text>⎡α⎤
261 ⎢ ⎥
262 ⎢0⎥
263 ⎢ ⎥
264 ⎢0⎥
265 ⎢ ⎥
266 ⎣β⎦</text>
267 <latex>$$\left(\begin{smallmatrix}\alpha\\0\\0\\\beta\end{smallmatrix}\right)$$</latex>
268 <prompt_number>8</prompt_number>
269 </output>
270 </outputs>
271 </codecell>
272 <markdowncell>
273 <source>&lt;h2&gt;Gates&lt;/h2&gt;</source>
274 </markdowncell>
275 <markdowncell>
276 <source>Gate objects are the operators which act on a quantum state.</source>
277 </markdowncell>
278 <codecell>
279 <input>g = X(0); g
280 </input>
281 <language>python</language>
282 <prompt_number>9</prompt_number>
283 <collapsed>0</collapsed>
284 <outputs>
285 <output>
286 <output_type>pyout</output_type>
287 <text>X
288 0</text>
289 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUJrQUFBQVlDQVlBQUFBUHRWYkdBQUFBQkhOQ1NWUUlD
290 QWdJZkFoa2lBQUFBWHhKUkVGVQpTSW5sMVQ5SVZtRVVCdkRmOXlsOGlKTkRFWWhHU0tCZ0lEUUlp
291 WU1PUWRHb200bURJQmh0SVJTME8rVFNvQTJGRUxpSU5MVFcwSkNECkVkcWZSVUdRUWhJU1dpTEJS
292 UjN1KytITDdjTFYydzBISDdod3puUE8renp2djNzdlo0Z0ZiT013UE5zWWllcXpVVzBQNzFBcFl0
293 U0kKelNEVWthcFZzSVZIYUNnaUhtTXFtRHhPOFRPNC9hL2lkVnpBUHI2aEdyaUhHRDJOU041Uzk5
294 Q05QbnhFUDJxWU80M0pTVEFnMmJJTgpQQ2xiUE1aNk1McGNaSEExdjBVbkRrSThYc1FrRDYxWVFw
295 dmtmSDVJcm5acGFNRXJ5UTJEZWNtV0RaVmwwSVJGWEltNDNtRHlOcU8vCmdqSGN4elR1NUJrMDRp
296 VjZNbXBya3ZPNW11S0g4VHpFVlh6Qk5SRVJvd1B2OFJXZk1rd1d3cXduVS93VVhvZjRRTExhdStu
297 QnR4eC8KcHc2eGl4dXBuaGY0RS9WOHhrU28vY2IxcVBjQjNtUk1zakJxd2JRcjR1N2hRejA1eVh1
298 U2gzM3NCS002bXZHclRCTll4Y1VvdjRUdgpaWnVzWURES2IrSlpQU24wTjh0QVV4QmRSanQrNG1s
299 SjJuK2g5citFenhHT0FHdERTUzdLeG84WkFBQUFBRWxGVGtTdVFtQ0MK
300 </png>
301 <latex>$$X_{0}$$</latex>
302 <prompt_number>9</prompt_number>
303 </output>
304 </outputs>
305 </codecell>
306 <codecell>
307 <input>represent(g, nqubits=2)
308 </input>
309 <language>python</language>
310 <prompt_number>10</prompt_number>
311 <collapsed>0</collapsed>
312 <outputs>
313 <output>
314 <output_type>pyout</output_type>
315 <text>⎡0 1 0 0⎤
316 ⎢ ⎥
317 ⎢1 0 0 0⎥
318 ⎢ ⎥
319 ⎢0 0 0 1⎥
320 ⎢ ⎥
321 ⎣0 0 1 0⎦</text>
322 <latex>$$\left(\begin{smallmatrix}0 &amp; 1 &amp; 0 &amp; 0\\1 &amp; 0 &amp; 0 &amp; 0\\0 &amp; 0 &amp; 0 &amp; 1\\0 &amp; 0 &amp; 1 &amp; 0\end{smallmatrix}\right)$$</latex>
323 <prompt_number>10</prompt_number>
324 </output>
325 </outputs>
326 </codecell>
327 <codecell>
328 <input>c = H(0)*Qubit('00'); c
329 </input>
330 <language>python</language>
331 <prompt_number>11</prompt_number>
332 <collapsed>0</collapsed>
333 <outputs>
334 <output>
335 <output_type>pyout</output_type>
336 <text>H ⋅❘00⟩
337 0</text>
338 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQURZQUFBQVpDQVlBQUFCNnY5MCtBQUFBQkhOQ1NWUUlD
339 QWdJZkFoa2lBQUFBcmxKUkVGVQpXSVh0MWp1SWxVY1VCL0RmK21EQkY3NlNySVdLa0NEWUNFWkJX
340 S05SUVJ2RlVrUWJRU1NZV0Zpb1NFQXVpSVdOeEVyUVJnc3huU2xzClJERW1KZ1N4OFlHb0dCVU0w
341 UlhCRjFwbzFFMHhNKzUzdjcxejkzN1hsYlhZZjNPK2M4NS92amxuNXB5WllSaWZMRFpqVXF2a0U3
342 aUIKWHZ5SFN6Z2NmVFB4Sy82Ti91ZTRpTytiL0c5SEE5c21ITWRlN01PYXpOaUJlRjBEek4wUEM0
343 WEFEMlQ4dTZKL2JRdi9xcFgwRGJpTgo4VkgvREQxWTFpWnZUd3N4dk1kMklmQ1ZHZjhwdk5WYUdk
344 UUszeDI0SnF4K0VVZUZLdWlveUNNa1drNDJpNU40amJFTmZLUHhRaWpSClZsQXJmSzhTRnF3Y3lM
345 cG9uMWVSbDFDM2F5TXlnWXhBdDlBN0x4djRGd2dKLzU0WjN3eGZSM21yWlA4N3ltOHI4aEllQ3Yy
346 R2ZHSnoKTVJIbk12NmxVZjZXOFRkRG12eEZ5WjRXY0ZwRlhzSXhyRS9LcU16a2k2TmNvVy9saXBn
347 ZlpUczdsZ0l1VjBMU0oxYmtKVHpCbEtUawpFbHNpSEF4TDlWK3hVWGlHNjNpVUdkOE1yNko4VjdL
348 UEx0bGI1U1ZNRXBKRDQxTHN3RGU0ckg5U2hLWWRvNzNkZ3FzWmV6cWtIbFRrCkphd1h5aEdORTV1
349 RHFUaWYrZkdpS052cEw3Z1NaZm1hR0JkbFQwVmV3alRjVDBxalVrejk5VWNtc080b2l6czJFaHZS
350 aVJrNGc5T1oKOFNuZzZlcExlVUdVVnl2eUNGZkMyY3g4Ny9HemNFOTBaZnc5K283Y2hJMzRLWDZQ
351 eEUxOFZmRFhTdnluK0xGa080bS8ydVR0VVg5aAo5ME9uRVBqdGpIK3VrUFNSa3YyNitvdjBFSFlY
352 OUZxSi94Myt3WVNvenhMNmVWVWJ2Qy93UXlaZU00WFN1cXZ2NGZzbnRrVC9hbUdWCkhrWC9ZNkhI
353 dW9VK2ZZUFpwVVJPRlBSdERlYmNpbCt3WDlpRkRabllCdUp0eHVSY1loK0NLVUt5MHd1Mm5WcW8r
354 WStKM011akNoNEwKOTFwdndUWTIyb2NNZzVGWXIvQVkvcnhnNjhLOVFmaDMyeGlNeE9DQytzTmp1
355 WENBREJtYUhwRVZNQjRIaFVmemw3aGppQk1iYkhRTwpkUURER01Zbmh2OEJia1dqWUtHOFZNRUFB
356 QUFBU1VWT1JLNUNZSUk9Cg==
357 </png>
358 <latex>$$H_{0} {\left|00\right\rangle }$$</latex>
359 <prompt_number>11</prompt_number>
360 </output>
361 </outputs>
362 </codecell>
363 <codecell>
364 <input>qapply(c)
365 </input>
366 <language>python</language>
367 <prompt_number>12</prompt_number>
368 <collapsed>0</collapsed>
369 <outputs>
370 <output>
371 <output_type>pyout</output_type>
372 <text>⎽⎽⎽ ⎽⎽⎽
373 ╲╱ 2 ⋅❘00⟩ ╲╱ 2 ⋅❘01⟩
374 ────────── + ──────────
375 2 2</text>
376 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUx3QUFBQWtDQVlBQUFBemZGQ0ZBQUFBQkhOQ1NWUUlD
377 QWdJZkFoa2lBQUFCWDlKUkVGVQplSnp0MjF1b0pNVWR4L0hQV1UvMGVJbTNSRDBtRy9YQjFSWGNY
378 WUlTZGIyZEpCSlF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pQeGt0blB4YTR3
405 WGZRcEUyeGFlTzgvYXQzTURhMEtyQlBycW1INGlwaXUrbVVXcTN1YwovN3VvWTV2MlUvOUpnZTNP
406 WXVUWXF2ZUg0cjNzZGhjZFl4RG14VnA1R09kMGtyU2hXWDNhL2s0UlcxcDVEcVRQV3Z6YjlvWC9s
407 MXNWCitGYlZqQklkYkJUZm9nNUQwcVlHWnNRNzBPM1hNMWVLUmwwL3Rob3REMGJ4dG1UU3BnRTI0
408 V21UK2FYVTU1MU5rallqNVdqOHlYYW4KSURFNUpHMUd6R3I4VEh4c3NBSmZIRzkxRWhtU05pUG1B
409 QkVpYWtkMGpzRzN4MWVkUklha1RVWEt3cEpmRXQ4WVpnUDdlK0p3dkZWWApwUko5a2JRWmdMSU92
410 NGZGR3dZTElxYWFHQzlKbTBRaWtVZ2tFb2xFSXJIcytUL2lSYi9rVlg4UDZnQUFBQUJKUlU1RXJr
411 SmdnZz09Cg==
412 </png>
413 <latex>$$\frac{1}{2} \sqrt{2} {\left|00\right\rangle } + \frac{1}{2} \sqrt{2} {\left|01\right\rangle }$$</latex>
414 <prompt_number>12</prompt_number>
415 </output>
416 </outputs>
417 </codecell>
418 <codecell>
419 <input>for gate in [H,X,Y,Z,S,T]:
420 for state in [Qubit('0'),Qubit('1')]:
421 lhs = gate(0)*state
422 rhs = qapply(lhs)
423 display(Eq(lhs,rhs))</input>
424 <language>python</language>
425 <prompt_number>13</prompt_number>
426 <collapsed>0</collapsed>
427 <outputs>
428 <output>
429 <output_type>display_data</output_type>
430 <text>⎽⎽⎽ ⎽⎽⎽
431 ╲╱ 2 ⋅❘0⟩ ╲╱ 2 ⋅❘1⟩
432 H ⋅❘0⟩ = ───────── + ─────────
433 0 2 2</text>
434 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQU9nQUFBQWtDQVlBQUFDRGczYTNBQUFBQkhOQ1NWUUlD
435 QWdJZkFoa2lBQUFCdDVKUkVGVQplSnp0blZtTUZFVVl4Myt6Rnd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VXE5eUF2T1Z0Ygp1ekxBdThs
476 VnAyd3d1dHN3LzBOQ3o0VzRUYXN0Tkh1cURjWEI2RzR3R0F3R2c4RmdNQmdNQmtNQy9BZU1RQWFp
477 cVVraThRQUFBQUJKClJVNUVya0pnZ2c9PQo=
478 </png>
479 <latex>$$H_{0} {\left|0\right\rangle } = \frac{1}{2} \sqrt{2} {\left|0\right\rangle } + \frac{1}{2} \sqrt{2} {\left|1\right\rangle }$$</latex>
480 </output>
481 <output>
482 <output_type>display_data</output_type>
483 <text>⎽⎽⎽ ⎽⎽⎽
484 ╲╱ 2 ⋅❘0⟩ ╲╱ 2 ⋅❘1⟩
485 H ⋅❘1⟩ = ───────── - ─────────
486 0 2 2</text>
487 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQU9NQUFBQWtDQVlBQUFCN1k0MUFBQUFBQkhOQ1NWUUlD
488 QWdJZkFoa2lBQUFCc0ZKUkVGVQplSnp0bldtTUZFVVV4MzhEeTRLQ0lPQUJ3WFZCTVNZclFnSkJS
489 UEFBVlB4Z1NNQk5sdkFCcncvaUZjVUxOUW9EWWdqeENvS3dSc1NiClF4Q01Sc1hFSXh3YW80S0F3
490 VWlpaUM0b1JsQXhvaEtROWNPcmRudHF1bnE2ZDN1NmU1cjZKWk9lcWVxdXF2MTNWZldyVjI5bXdX
491 S3gKV0N3V2k2VVM2QTgwUi9DeW1FbVZ4dTJpS2lqam5CMXpmU09BcTRGY0JLOUt3V3BzTWRJUk9C
492 OVlDaXlPdWU2VndFa3gxNWtFVm1NWAo5c2xvcGcvUUZmZ3Q1bm9IQVh1QWZUSFhtd1JXWTBzb1po
493 UHZyUDBpVUJOamZXbkFhb3g5TXFhTi9zQWhvQ25waG1TWTFHcWM1c0hZCmdLd3BqaVh1Qmg1TnVB
494 MVoxejIxR3BzRzR4cmdNMkNMZW0wQ25sRjV0Y0NIS3MzSi94UzQyYWZ5eVQ1NTQ0QXBIdWxiZ1hx
495 ZjY3SkcKSDZBenNN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VHRjZDRFN2dZeVQ4YXlud0Jv
522 VlJWbkhyCm5qV05XOTIzblVkdk5kNnp5RjcxNnU1MU1SSU9WNDNNc3JXMGVGK25JYWJyR1BYNWVH
523 UmoyYUVHaVJYMFlvczZka1ZpQkpOaUVyS3QKc3hZSnNONk1CTWUvMHNaeWV5SWJ5R0hXSDhNeHgy
524 N3V4aHlXcU92dXBoYTViL3BtZHB5NloxSGpSUHQyRmZBM1lpTTd6RUJtM0VwbQpEWVd6WGlQd1FV
525 SnR5U3BXWXhkQnZXTitIQUcrUkJhOXUxVmFEMXJXSUpYS0FncGQ0cDBvRGhpd3RBMnJjUmxvcERB
526 U1podmlDTW9LClBSR1RUdjhpcmlVNnJNWVIwUStKRHh5SzJQd0xrMjFPcExSRHZNY1RrbTVJaHJF
527 YVIwdzFzdW5mSSttR1JNd3M0QUwxdmx1U0Rja3cKVm1OTFNhWlErRXZYRHliVmtBeGpOVlpFNGNE
528 SktsT1JIMnh5UXFKeXdKdkpOU2VUV0kxZDJQOFRZT1pjaWsybVhiUjRqQzF0eDJwcwpzVmdzRm92
529 RllyRllMQlpMQVA0RE5NcmxDQ0JJTDB3QUFBQUFTVVZPUks1Q1lJST0K
530 </png>
531 <latex>$$H_{0} {\left|1\right\rangle } = \frac{1}{2} \sqrt{2} {\left|0\right\rangle } - \frac{1}{2} \sqrt{2} {\left|1\right\rangle }$$</latex>
532 </output>
533 <output>
534 <output_type>display_data</output_type>
535 <text>X ⋅❘0⟩ = ❘1⟩
536 0</text>
537 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUZRQUFBQVpDQVlBQUFDdnJRbHpBQUFBQkhOQ1NWUUlD
538 QWdJZkFoa2lBQUFBMEJKUkVGVQphSUh0MkV1SUhFVWN4L0hQSnBGbFNReUtVYklzNmlGS0RCandn
539 WmZnUVR3b0VSVXhxUGhXVm9rbUo5RUVFcERNUVJSZkNBcWlvZ2pCCkhCUkJEZDRVRkZGUXdlZmlR
540 UTFrVFFJUl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DRPL2kxZ3FSTzNBblZzWDZxSkRZUHlJazk0VFpm
554 a3pJZStlTGxjTFZlcFgyVlZDcGI2T1plL3Uwc013MwpKSDFlRWxLYnJNOVgyQnpiZmplVHNNTURl
555 Q2RYdjY5a3pIRzhpYWVFSDJOejBuNnpzQzM4RzZUNk51RmpJUTdaOTUzRUJ6aHpydlVOCnh3SFg1
556 V3hiOGVsY0RMYlE2ZVdtMUkwcElkV1p6dG1XNDljKytQN1AwWStBd3VjNExWZGZMWnltaTQ1K0Jm
557 UVR4WCtKTGhQU3JFVkgKbmZ5dGloRWhnQjhKLzB6OWhLZjc1SHRSTTl5OXk0QUJBd2I4YnpnT0px
558 S2orRWxZcEh3QUFBQUFTVVZPUks1Q1lJST0K
559 </png>
560 <latex>$$X_{0} {\left|0\right\rangle } = {\left|1\right\rangle }$$</latex>
561 </output>
562 <output>
563 <output_type>display_data</output_type>
564 <text>X ⋅❘1⟩ = ❘0⟩
565 0</text>
566 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUZRQUFBQVpDQVlBQUFDdnJRbHpBQUFBQkhOQ1NWUUlD
567 QWdJZkFoa2lBQUFBMEpKUkVGVQphSUh0MkZ1SVZWVVlCL0RmbUhFWTFDRURRNUdpc0RJaElRdGZl
568 b29ldWtIUlBlZ09KbWsrUldVb1JlY2hJc2pBTGtSRkVSaENRUmVJCjNncnNvYUNDcnZOa0dwRUpS
569 VUZCWlRWZ016MThhNXA5bHZ2c3M4L0ZJelhuRDRlMTEvOWI2MXYvK2ViNzFsNXJNOEs4d2MxWWVh
570 eEYKVktBcmZidHhFRFBwZHpBNW1NVXpCZHNmZUE5akZmNjJWdGcyWVdjSlA0SDc2Z3J1RTJYNkxz
571 SHJlRFQ5Tm1iMnJ2VXR4SDRSdEZXWgpiUXpmWUR1T3ErR3JXY0tkaG0yWXh0TVY4eGJXOE44dm1s
572 bC9QWDdGS2FuZndCZTRzMlJlaTc0RkZZc2N4dlBwK2NiTXRnTmI4QWorCn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jRwZzEKNzlETithMEs0eUtBSDRndlV6L2l5UUg1bnRkb2RCNHl3Z2dqalBDL3dU
587 K1VES1FiK0JQTG9RQUFBQUJKUlU1RXJrSmdnZz09Cg==
588 </png>
589 <latex>$$X_{0} {\left|1\right\rangle } = {\left|0\right\rangle }$$</latex>
590 </output>
591 <output>
592 <output_type>display_data</output_type>
593 <text>Y ⋅❘0⟩ = ⅈ⋅❘1⟩
594 0</text>
595 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUZZQUFBQVpDQVlBQUFDcldObE9BQUFBQkhOQ1NWUUlD
596 QWdJZkFoa2lBQUFBM2xKUkVGVQphSUh0MkYyTVhWTVVCL0JmUDhiWDBLSlN4VFRVay9CRVMrTEJF
597 RjhSU1ltRXBobEUwSGdZUElnRTR5TnVoQ1lpOFNSQmVKS1FJVkdDCkJQV1ZOaUpGcEZJSlF0T0k3
598 NGVXRkJNUlREMnNmVE5uOWoxbjdqMjNkMXJwM1AvTFB2dS8xOW43ZjlaWlorMjlEbjBjMEZpSEpm
599 dGIKUkJkb3Ezc1ZQc0RmMklNSmJNSmdabmNzZmtrMms5aUc0ektiTzBybXZ4N2plQWdQNDRwc2ZD
600 bHViZk1RczQweTNYQW8zc1hwSldNZAo2NzVXT08yWk5qWmJNRlF4M3NqNmEvRU5GcVgrRXZ5SWl6
601 SzdCekN2RTVHemhFYldIOERaMkNoOHNxcml2bExkODdQK0JoR3RsK0hnCmtrbFdZRFhPeGZjZGlK
602 MkhNYnlJM3hLM0M2K0xsMWRjLzIydHp0NWZHQkMrV0lOZjI5aDJyUHRaOFlhdXpQaEZlQWxIdDdt
603 L1ViaSsKSk0xMWNXWnpWZUxQeXZnSE94RTRTMmhVOExlWU9XSXAwWjFITE9GWXVMckFMY0FUdUZQ
604 azJFNnhNclZmWi96MjFKNlg4VC9naEJyegovMS9Rb3J2TXNSdXhFNWZpcU1ROWdxZndWYzBGbDZY
605 Mmo0eWZTRzIrOFQySGtacHIxTVdJQ0pKeDVjL2ZEVnAwTHl3eCtnY3ZZRlNrCmc0UHdPZDdyWXNH
606 bVl5Y3l2dGsvTXVOM20zcVpPVmJpYWZVMnVPMm1wN1RWNHVSenM4ajVGK0N0R3ZOVm9VVjNtV09K
607 ZERDS3U4V2IKSGV0eXdiOVNPNW54QXhYODRpU3lESjhvUC9MVXdlWGk3SGtPRHNOM2V6bGZFeTI2
608 cXo2RkxjSXB1M0RQWGl6NFdRWGZQQi8vbFBFago0ck9hTGF4UDdZM2lHYi9zMGJ3dHVxc2NlNm80
609 YnIyaE5hcnFZRnRxODgvNzhOVCtuUEZEZWhkRlpkZ2hvbXVOMkRONmhSYmRWYWxnCk9MV2JTc2Jt
610 aTBycUVDd1h1ZmZOaW5tYWpsMXVlblNlbWRwaVJBOWpjOFU4Y0FhZVZEL0hyczI0YThRKzhyeHc4
611 a0x4WlhhTGRycW4KWVZ3aytieWtKU3F2eDlMMUFueUJVd3JqamN4K0orN1B1SmZ4VWNidHE4cnJZ
612 MVBSZXArcERiWlJZZC91SE50UjVVVTRheGlmYXQzTgppWnI2bFhUOXI0alltWTVJZCtFbUVSMXdv
613 dGlOMXhkc2poRlJzMmVHZVhxRklieUQ0OFVtbXFlakhNMkNhR25KV0VlNlR4SWh2U01aCi9vNzN4
614 YWZUeER5eHFaMVc0TzdGcTRYK2JTVnpqNG9vZlJTdjRicHNmRjBTdVM5d2d3aU1NUnhSNEhQZEcw
615 UXFteFQrK0JOYlRhK3kKZXFaN2NWcGtSWUc3WFkwY00xZFF0L0xZYmVxM1lST0Q2cFc1Y3dMZGxI
616 UmJUYzgzeS9CdGIrUWNPT2pHc1IvaS9FTC9RbkVNNnFPQQpibzQzZytJbnhtYWNMS0wxOFY2S211
617 c28reEhlUng5OTlOSEhGUDRENzBpdXlrYnJ4SzhBQUFBQVNVVk9SSzVDWUlJPQo=
618 </png>
619 <latex>$$Y_{0} {\left|0\right\rangle } = \mathbf{\imath} {\left|1\right\rangle }$$</latex>
620 </output>
621 <output>
622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K1BrM1dSSEdTdndNbjdIY28zcHFjcWZxZDJW
638 eWZ2RVVwREw2L3d1QzhxVzFQSFBvbkxhWGF3VQpVM21tOGhHK3h2RTRRL3hvaTloZUl0OWZCT2I3
639 VEY3bmQxbFFUaFFsOFNzYW85cE5odkJObDcveE1FN3JRUDg2YkUzWFg2VjJ0VmhmCk41VzhzeTIx
640 ZVNvK0lMVS9aUEk2djh1Q01wemFvby9Pd1RWaU03UllyRFd2bHZUVENjUFkzT1Q1VWp5cTh6WGw4
641 a3gyWTRkMjVjekgKMVhnZzNSK0xMektkSFdKZnNoanYxTWlYcGJaMkpyWHkrMzgyaWlPWC9KaUYy
642 Tkd2VDlkejhhbVl6bFVxSlgyMjJxZk1saDM5UldLeApIc0FpRS81V01yMnRlQ0tUallqTjVMd2FX
643 Y3NkUFRIUXcvaFFZL1ZBblBHOGtLNy9GVE9sblRLMnV1a2NLSGkyU0t4ZnJYYjlNNEVoCmZJd2Z4
644 YXpiVUtKM0p5N0JrZWwrSVM3RVE2SUtvdzIvanhiVDZNdWs5Q3Zld3BVMU9uMmlBRGdwKy9pTE5m
645 YzNaZjNlZ1BkRWRUR2UKL2o0VHdkdzM2YXhLQnM0R0RoVjd1Ukd4MkZmSi9ZYkx4Q25JU0dwdlVU
646 OHJwc1h2QldKUWw5VEkxbW96Si9ab2o2TDAxWXhSRTBmMwpWZnAxOStobHI2UFRvTUFINnRlRlFW
647 Rzc5NWdtSmhPVWQzRjJ6ZjF5VWFyMm1DWW1VNEwyaTRwak00NFJzK1NSNlRTcXgrUXAraWRZCmp4
648 NDlldlRZZS9rUDB5SzFTZ2ZuL0lFQUFBQUFTVVZPUks1Q1lJST0K
649 </png>
650 <latex>$$Y_{0} {\left|1\right\rangle } = - \mathbf{\imath} {\left|0\right\rangle }$$</latex>
651 </output>
652 <output>
653 <output_type>display_data</output_type>
654 <text>Z ⋅❘0⟩ = ❘0⟩
655 0</text>
656 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FB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V4LzdrSVB2cGNm
670 YmMvaDgzamRqUzN4dWsxSUIrNk45VFFQcStFc1hrditiNit3eDJVWmlSTkwwL3hOCkVHYWtGL2Nr
671 YlhjSysyTWZYb3phVVR5YXVXY1BYcTFqRXRiZ0dHNko5UWVFZkxNcjZhZTd5R1NUYUtxLzdITGVo
672 b2VFU1B3b2FtTngKdjMrK1hGd1dJckZkaUxxZXpQTy80T0Y0M1ljelNWODdZMy92NGdnZXhBdkNi
673 QSt3VVBnQU1OejhML3hORlRMM2JDNjNRVGpWM0hBVQpwVGhGbkJTT2dQMFpiVHhPVlhaMERkTG9J
674 RjRSOXMrT2pOWXBIQmxibEdDN3NCa1QzbTRuaEM4OU54eTF3VytweTBUc3dsZkNKbnhJCk9HZTNh
675 SUQya1RiUW9rV0xGazNpTDRkZnRMa09FUklrQUFBQUFFbEZUa1N1UW1DQwo=
676 </png>
677 <latex>$$Z_{0} {\left|0\right\rangle } = {\left|0\right\rangle }$$</latex>
678 </output>
679 <output>
680 <output_type>display_data</output_type>
681 <text>Z ⋅❘1⟩ = -❘1⟩
682 0</text>
683 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUdFQUFBQVpDQVlBQUFBaGQwQVBBQUFBQkhOQ1NWUUlD
684 QWdJZkFoa2lBQUFBdDFKUkVGVQphSUh0MkYrb0ZWVVV4L0hQdWY2NVdHQWhlVFVOTktGOE5RZ0tS
685 QjhrU2Fvbmc4Q1VRaUZUa0JBUzZTRkpFY1ZYa2FpbnBCQ0RJS2pJCkNDSU5SUkdFSGhMMHdSZEpp
686 OEwrVUZDQkVxZUhOVmZIT1h1T1orNDU1ODZWNWd2RDJXZnQyWHV2Myt4WmU2ODlORFFVMklyWmRU
687 c3gKSkNwckc4TjF0SEVEbC9BVnZzeXVYN082NTB2YVQ4UHJYZnAvRTdzUzlvWFlVc1hSbXVpbXI3
688 SzJrWktPbmhVUGVUdnV3U05ZalRWNApGL2ZqRUQ0dWFkL0NySVQ5VWV6SFhpR2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<latex>$$Z_{0} {\left|1\right\rangle } = - {\left|1\right\rangle }$$</latex>
705 </output>
706 <output>
707 <output_type>display_data</output_type>
708 <text>S ⋅❘0⟩ = ❘0⟩
709 0</text>
710 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUZBQUFBQVpDQVlBQUFDbVJxa0pBQUFBQkhOQ1NWUUlD
711 QWdJZkFoa2lBQUFBeEZKUkVGVQpXSVh0MkZ1SVZWVWN4L0hQTkdNb0UxcUJOUm9SR3BIVlEvU2dG
712 WVNYd0VLb2ZDbXdncDU2NmlWSWlNS2dFMXBFU2hBRVBnaUNxRlRZCmcxQmdGM29wQ08zQmw2SFFM
713 a3hSakVrM2pTWXZYY2FIL3o3TWRyWDM5dXl6ejJnajV3dUhmZFovM1g1bjdiWCsvLzg2OUxsb1dJ
714 REgKTHJTSUNncjFEVlYwR01JVFdKWjluNDEzOENiZXduMFZmWi9HSzRudEZyeUFNWnpBYVd6Qnlh
715 eitDRzQ0eDQvb0ZkT3VidzdleFhPNApKR2QvRm9mRklsYlJTc3J6Y0F6MzVHeTdzQzFwdHhaTE94
716 WFpnRlpTN3JtK1BRV2QyNHpqOFpvQ04rQ0h4TFlhazdnN1p4c1V1MkM2CmFTWGxydlhsZDFlYmVX
717 S2w5NVJNUG9xUE9oUUtsK0pKZkpEWVA4YWZ6bllGLytCM1hGNWovS1kwMGxlMGdIZGhsdkx6L29u
718 d0U1MXkKTGVianE4UitTcnoxbFluOURUeFNZL3ltTk5KWEZFUU9pSlYrRll1d043UDlsZFZ2cWls
719 d0pIditVVkEzSWFKYm5uRXNyRGxIRXhycApLMXJBbjBXdzJJVDEyV2NDTzRTdk9OYWx3SWtTZ1VY
720 SDlVdmNLQUpXeW9kaXgzVEtKQjdDMTlPaHJ5eU4yU3hTbG9leENuZUlsT1pxClBOaVI3Q2xPWmM5
721 L0MrcG1sZGlYWUdmSmVLdHJ6bjh1R3VrcjhvRnREdUY1TE1kdCtGNEVsOWsxQlk1VzFBMkwvQ3JQ
722 QW5GTUptdk8KMHkyTjlLVUwrRXpKUUo5amQ5WnBvS2JBNzNBY1Z4VFVYWVlmRTl1ajJWem5pMGI2
723 aHBMR0svRnl5VVJ6Y1ZCazZYQW5Wb2pnTWdjdgpLdDgxb3lMYTVabVA2L0JlemphWXpmTmJ5VGl3
724 VDMwZnVBN2ZWTFRwaWI0MStCdlhGOVJkaGFQQ0g4S1Z3c0czWDhBV2NUMXEwMHI2CnY0NHZFdHM2
725 RWUzejZkSUQ0dW80M2JTU2NrLzBiUmE1ME51NE9XZGZqUDBpR3JmWmdPMjU4bklSbWNvRUxzSlB1
726 RDhyRCtCOS83MFMKYml3VDEyTmFTYmxyZmZralBJTGJjU3RlRStIN0YzRmtuOEtudWJaTDhHMnVQ
727 QzdlMUxBSS9jZVRlY1pFUnI5ZTdQUzU0a2psZCsySQo2bVBXU3k2NHZuMGlWMnh6amZBMTV6TUIv
728 bDlRbGNaVU1lYnNnREdjUFg5dEptZm0wZTBDSGhTQnBjMkk4Q0VuaTV0ZnZIUzdnSitaCmlzaHdM
729 N1kybHpQekdPeXkzMUh4dDljYTNDUjI0RXVtcmtWOU9tUkEvSi9XcDArZlBqT1JNeUNPd1JpWFM5
730 ZTRBQUFBQUVsRlRrU3UKUW1DQwo=
731 </png>
732 <latex>$$S_{0} {\left|0\right\rangle } = {\left|0\right\rangle }$$</latex>
733 </output>
734 <output>
735 <output_type>display_data</output_type>
736 <text>S ⋅❘1⟩ = ⅈ⋅❘1⟩
737 0</text>
738 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUZZQUFBQVpDQVlBQUFDcldObE9BQUFBQkhOQ1NWUUlD
739 QWdJZkFoa2lBQUFBd3BKUkVGVQphSUh0MkYrb1ZGVVV4L0dQWHBPOGxrV1FYZE1IS1NVelRYeFFL
740 cUs4UVlXUS82Q0hOSWdnUytvaEVFSHFTU0g3WjlKYkNFR2lxZFNiCmtjSU5UTHdnSWxxWUlFSUZw
741 aUlVV21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4UDJsZFQzYWVLUkd3NjZ1c0YrZHZKRHppUjJR
755 K0lKT0tSMnl2Zmg2VHh4SlRORDNCNDM0cTVVK3hYWApQYUJXNjhMa0pHalZoZjMvaHFKeXE0aFQ2
756 ZytxNFpWYTlLTGlxcUxkeEI1Vi93cXREOS9qdDQ0VmpSRGFUZXdSdFFvQkhzWG16dVdNCkhIcmFI
757 SGRPbkpJTGNhZFlzYS9oOTVKMFhmV01FclZnbHk1ZHVuVDVOMzhEaXFhbVFHZGFQZmNBQUFBQVNV
758 Vk9SSzVDWUlJPQo=
759 </png>
760 <latex>$$S_{0} {\left|1\right\rangle } = \mathbf{\imath} {\left|1\right\rangle }$$</latex>
761 </output>
762 <output>
763 <output_type>display_data</output_type>
764 <text>T ⋅❘0⟩ = ❘0⟩
765 0</text>
766 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUU4QUFBQVpDQVlBQUFCdzQzTnNBQUFBQkhOQ1NWUUlD
767 QWdJZkFoa2lBQUFBdk5KUkVGVQpXSVh0MkUySVZsVWN4L0dQbzQzanU3WVFxekZ4RkVKRk1pVmNS
768 RVBVTW5RcjZTYlNRREFHaElTV0xoUkZhS2VRRUdSUWlSRVZMU3A3CldmaTIwWkJTQ0VJTHEwbGRw
769 Q2xXdnFZdHpyMXhQTjc3ekIzdkhZZXg1N3M1NS83dXZmL3plODQ5TC8vejBHYkUwNGR4dzIyaUJZ
770 WCsKUmtYMWhmZ3VxLytBbnpFVlMzRURoM0FGVS9BNHVqQU5GNk1ZNDdBYTI1TTIrdkFrVHFFVFgr
771 R0w2Sm01ZUFwdjM4VVBHd3hENW04egpQc0NrU0Z1QVc5aVZQTHNRRndwaVRNU3JpZllLamdtZERk
772 MDRsNW1OMlZSbXJFRWE5ZGNSMVpmZ0JWeUt0TjZzL0RKNTc3Z3dFZ2ZpCkFXekFibUhVUWo4T3V2
773 TXJIc1hpQ2pHYnBKYS92UE9ld0FGY1QxN0lPMjkvb28vRzd4WE1yY0NqMkp2b24yTWVlaUx0RXl5
774 dkVMTkoKYXZuTE8yODYzaW9JM2l1c0E3OG1laWMrcldCdVNWYWVTUFNUV2ZsTXBOM0EzNWhjSVc1
775 VDFQS1hkOTVlbkU0Q3pNWEQ3aHgxY0JsNwpLcGlia1pWL0pYcCsvVkNpdjRkVkZlSTJSUzEvWTFv
776 RXpxZnN2cnUyRnN4ZHhzMFNjMU1UdlI4elMySTloOWNIMmY0UnZEeFUvcXAwClh0SElxOHJWQW1P
777 RWhWckJ2VzdCWUJGZlkxRU5MMFhVOHRlaG5GNWhLcDlzOGN4QUhDL1JKMlRsbVVSZktVeU5lMFV0
778 ZjJXZDE0M1oKd2c1Y2gyTVlMMnd3TVJPejhteWtqUkZNRitXUFEwVXRmMlhUdHRXVUhZdVhoTXk4
779 Qng4TGVWR1p1VkhDeC9ncDB2TUVOUDd5eTRSMApvSXhuc2EzRi9TSyt3ZG9XOTV2MDl4OXZDQ2VM
780 QlFYMzFtTmpWdS9LR24wa3UwNHorRTVjdzdva3hrRjhsbWpEY2NKbzNOOTQvSWcvCjNINzJ6VG5q
781 OWt6N2ZlRnNXR1FPWHNQM1dWekNCN21HcDZObjV1REZLdVpxMHFpL2ZOcDI0Q1BoWE51RFdabCtX
782 SmpqYndwNTNSUmgKZS84dGluRmFPS0hBUC9nemFXT3JNSXJmRlJMdXg0VE1QbDVQbjgvYUdHcUcx
783 ZCtjcktINHo0TXQrTEJ1NEpGSXExU2xpSDdoL0hzcgowaWJnZkdPT1JoQ0Q3Ynlyd3Zvd1BkSm00
784 SmZHSE4zbjdNU2FyRDVhV1BQS2psVDNOVVc3NlVBOGlCM0NmM3p6OFMzZWFkTFUvNEd4CncyMmdU
785 WnMyYlFiSnYyYzB0aEx3SEVvZ0FBQUFBRWxGVGtTdVFtQ0MK
786 </png>
787 <latex>$$T_{0} {\left|0\right\rangle } = {\left|0\right\rangle }$$</latex>
788 </output>
789 <output>
790 <output_type>display_data</output_type>
791 <text>ⅈ⋅π
792 ───
793 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I0V3Z4UnRXNW1pTnlhSUxta0JmL2xYNUljNUkvWjZGbHh1alRrRTdNRTJzNkp3cVBtTTkwVnAx
823 CkNwckJLRkZLamV0RnJxQ2dvS0Nnb0tDZ29HRG84VCtzQXZZaDBLcnJLZ0FBQUFCSlJVNUVya0pn
824 Z2c9PQo=
825 </png>
826 <latex>$$T_{0} {\left|1\right\rangle } = e^{\frac{1}{4} \mathbf{\imath} \pi} {\left|1\right\rangle }$$</latex>
827 </output>
828 </outputs>
829 </codecell>
830 <markdowncell>
831 <source>&lt;h2&gt;Symbolic gate rules and circuit simplification&lt;/h2&gt;</source>
832 </markdowncell>
833 <codecell>
834 <input>for g1 in (Y,Z,H):
835 for g2 in (Y,Z,H):
836 e = Commutator(g1(0),g2(0))
837 if g1 != g2:
838 display(Eq(e,e.doit()))
839 </input>
840 <language>python</language>
841 <prompt_number>14</prompt_number>
842 <collapsed>0</collapsed>
843 <outputs>
844 <output>
845 <output_type>display_data</output_type>
846 <text>⎡Y ,Z ⎤ = 2⋅ⅈ⋅X
847 ⎣ 0 0⎦ 0</text>
848 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUhZQUFBQVpDQVlBQUFEa0JkcWVBQUFBQkhOQ1NWUUlD
849 QWdJZkFoa2lBQUFCU1pKUkVGVQphSUh0Mlhuc1hGTVVCL0RQYjBGcGlRcFIwa1lwaVlvcUdnU05v
850 SmJpRDJKZlNxd1ZxVmdpaEVvdHNhUmlpVkRVRW1JWGF4RFJXQ2NSCjRSZGliZElvc2RaU0ZSSjd0
851 YzNQSCtlTnZubS9OL1BtVGVjM2t2YjNUVjVtN2pudjNuUGZ1ZmZjczF5R3NGcWlLOU4rQW1Qd0pV
852 N0gKaGhuKzMvZ3BReHVHalZQdGYvQmpDM01aaWVFRjcveUJYK3J3ZXZBbWV2RXlMbWxoRHExaWZm
853 eldZdC9oNHR2VFdJb2x5ZitzZmlXOApwV1dFVkZML1Q4U0xXSUYrek1kbE9YMm1pby9xeDllW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QUFTVVZPUks1Q1lJST0K
881 </png>
882 <latex>$$\left[Y_{0},Z_{0}\right] = 2 \mathbf{\imath} X_{0}$$</latex>
883 </output>
884 <output>
885 <output_type>display_data</output_type>
886 <text>⎽⎽⎽
887 -⎡H ,Y ⎤ = -╲╱ 2 ⋅ⅈ⋅⎛- X + Z ⎞
888 ⎣ 0 0⎦ ⎝ 0 0⎠</text>
889 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQVBRQUFBQWhDQVlBQUFEdTNJWmlBQUFBQkhOQ1NWUUlD
890 QWdJZkFoa2lBQUFDTnRKUkVGVQplSnp0bkh0d1hVVWR4ejlKK3JqVXBKUVVuSlJLTzFJWlVXbEJv
891 STZvMUxZQ0xZSVVLdEtLcjBKQkhNZWlZbm1vS0tnVVI5Q0JzWXlGCmlBVmxtSWpHSWtKNU9DaXhC
892 ZXV6Z0tEVVJ5MzRtTkppa1RvUmlqYkVQNzU3ekxrblo4OXpUMjZTMmMvTW1YdnZ2czd2N081djk3
893 ZS8KM1hQQjQvRjRQQjZQeHpPOGVCWFE3K0R5ZUR3TnBnMjRvOUZDZUR3ZU4xd0l2TDNSUW5nOG52
894 S01CKzVwdEJBZWo4Y05Id0tXTkZvSQpqOGRUbmhiZ1B2UHBHV1dNY1ZUT2E0SHp6ZmMxd0tPT3lt
895 MEVwd0lMemZkUEFQOXVvQ3hWc0JUb0J2b2FMWWpIUGE0VWVocndJbkFUCjhHUWs3aXBnRGxBenYv
896 dUJmeUNIekV2QVhjRCt3RmdUM3dkc0FENWVRSTRMZ0hlSHlub0p1Qis0S0pKdUtYQko2UGZEd0Zu
897 bSs4L04KTTF3TjdNUG9VdWdtNEgzQUtRbHBGcGxyUExBUldBZnNyRjYwUWt3QTdnVGEwYk1CL0Jm
898 NEdQQ1ErWDB2MEJISzh5dmduS0VTTUlaRApnTzh3SUc4ZjBvZGcrMjh5NnI5bkE1dUhYRHJEUXVv
899 VkpNb0VKUGhqcUtORU9RRTkwRnFndWFR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U1dIU1pK
940 eUYxdUtkMFl6RHFhS2piRWJPCm1ZQjUxSjlWUGhHdFNmNVZVZm1lOG14QXM5UDVhUW1IRUZmdEhu
941 VnN1U1JKeG1ZMFNLNUVqdGxLV0lqcytSdHg5eUw3Uk9Ud09CNXQKalhSVGZ3SnFZa1hsTDBiUHNZ
942 MlI2eFFiVG94aDRKRExjQ0N0WHcwSGttUmNRWFd2aFA2Zk5xVElSK0R1bldiUWFIUTRGWjFYdFpR
943 LwpoWUZuOFgrazU0WngyTi9XYWdSVjl5c1gyR1NjRVpQVzQvRjRQQjZQeCtQeGVEd2VUMDcrQjl2
944 dE01YzJvTmlJQUFBQUFFbEZUa1N1ClFtQ0MK
945 </png>
946 <latex>$$- \left[H_{0},Y_{0}\right] = - \sqrt{2} \mathbf{\imath} \left(- X_{0} + Z_{0}\right)$$</latex>
947 </output>
948 <output>
949 <output_type>display_data</output_type>
950 <text>-⎡Y ,Z ⎤ = -2⋅ⅈ⋅X
951 ⎣ 0 0⎦ 0</text>
952 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUpVQUFBQVpDQVlBQUFBNDBHenNBQUFBQkhOQ1NWUUlD
953 QWdJZkFoa2lBQUFCVmhKUkVGVQphSUh0Mm5lb0hGVVV3T0V2UG1PTXNVWkRGQldOWFZHeFlSUjdR
954 Nk5pdzk1ckZJSmRKUGFLaW9vWUN4S0pMZGl3dHlTSUlyWllzTVVTClMreUN3UzdZRW8weC9uRm1l
955 Zk1tdTdNeisrYkZMTzRQQm5idXpEM243cGt6NTU1Nzd0Q2hROFgwcTBqT3RyZ1J2K0pNZklJRk12
956 ZDgKaTFtWnRxSG9uenIvSG4rMk9JWUZzV3lCKzZiam4wemJpVGdFUzJOai9OTGlHUDRMRmhOMmI3
957 WHZFcG0yR2ZneCtUMVEyQ1ROZC9pcgpSWDJsMkFXams5K0RjUmUrd2h6TXhBTllvMDYvRjVKN1p1
958 QjViTktMTVJ5ZnlKcUZhWGdDNDVMajd1VG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NlhoMDZkT2pRb1VPSER2OUwvZ1VWSWowVAowdXBoZXdBQUFBQkpS
986 VTVFcmtKZ2dnPT0K
987 </png>
988 <latex>$$- \left[Y_{0},Z_{0}\right] = - 2 \mathbf{\imath} X_{0}$$</latex>
989 </output>
990 <output>
991 <output_type>display_data</output_type>
992 <text>⎽⎽⎽
993 -⎡H ,Z ⎤ = ╲╱ 2 ⋅ⅈ⋅Y
994 ⎣ 0 0⎦ 0</text>
995 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUp3QUFBQWhDQVlBQUFBczdNTG1BQUFBQkhOQ1NWUUlD
996 QWdJZkFoa2lBQUFCblJKUkVGVQplSnp0MjMrc0hVVVZ3UEZQWDB0L2hWS3AxWUlvdFZoaVZCUi9v
997 RWFzTkRSUmk1aUlVcW1TR0JUUm9GWUxSR01OYVl5eGl1SnZ3VmdWClVXekVpQllzYWxyalQ2cGlv
998 bExiUUJRMVVyV1JLajlzRUtUYTlMM25IMmV2ZDkrKzNidDc3OXY3N3RYdU45bmN0ek03TTJkbnpz
999 dzUKWjJZZkRRME5EUTBOdzhwOEhJL3hHcTYrTTJzNkdtbm9LNWZoWjVneGFFRWEvditaajI4UFdv
1000 aUdJNGYxZVBtZ2hXZzRNamdLTy95UAptZEtSUVF2UTBET3Z3ZldteWRrZk5wNk16Y2wxNm9CbHFZ
1001 dTEydTgwYk1IVkNMNWorT1FxcFM2QlQ4Uy84UVg4TVpOM0pjN0EzT1IrCkhQZmhKUmpEdDdCWW1B
1002 Z1l4VTVjV29OY1orTjlxZnREK0h2cWZrblMzaXI4STFQMkovZ3RQaVg2NlhBTjh0VEZ1YmhadVV5
1003 TGNRbWUKZ2p2eFhmeWd5N1pXWVpNSVVJanh1MGVNMzJqcXVaTnhnN2FKZnhndnhvTmR0bGVKMWRq
1004 UUlYOStJdHp0bUpPVC95THhJdGVxMTh4ZgpqMy9pemFKRDBoTnNROUxteFNWMTdOQ2VMTVBDZHN3
1005 cmVXWTVmb2lY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F1V0tGYWpJdWoKcXoycHRMSE1mUlhLMmhra3ZTZ2I0V1A5cUlkeWVj
1032 cEcrTU4xak5sUWYvRzdTNXo5dFZoazhpcjRNcE9qclg2MDAxQ04wcjRjZG9WTApSMmRuNHF1cCs3
1033 UEVJWHoydzhtNjIybW96clQxNVdyeDZjbzFlSHBOZFI2amZXNTNnVGlIblozSjcyYzc1NHYzMldl
1034 NFBrOGFac3JHCnJMYi8rRm1ndlFPOVZ6dEFtQ29qWXZQNEFQNWNVNTFWMnpsQisweHhqeVAwbjFW
1035 NllMckdyS0dob2FHaG9hR2hZWnI0RDB0Y2p3bmcKNUcraEFBQUFBRWxGVGtTdVFtQ0MK
1036 </png>
1037 <latex>$$- \left[H_{0},Z_{0}\right] = \sqrt{2} \mathbf{\imath} Y_{0}$$</latex>
1038 </output>
1039 <output>
1040 <output_type>display_data</output_type>
1041 <text>⎽⎽⎽
1042 ⎡H ,Y ⎤ = ╲╱ 2 ⋅ⅈ⋅⎛- X + Z ⎞
1043 ⎣ 0 0⎦ ⎝ 0 0⎠</text>
1044 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQU5RQUFBQWhDQVlBQUFDaGdZV3lBQUFBQkhOQ1NWUUlD
1045 QWdJZkFoa2lBQUFDTUpKUkVGVQplSnp0bkgyUVZsVWR4ei9zQ2d1WTRtSUVTcVJydUNFcWtUT09o
1046 YVpZQ3I2VVpwcGw2RXdDRldWYXBqTTFrK1FMVGVFTW1KbkpvaWpZCmkrLzVWb0U2Nmx3TnRJWUph
1047 OGhFSzBkS0p6Rm8wMFJaZGZmcGorOTVlTzV6bnZ0eTd0MzdQSGRIejJmbXp0MDk1OXh6Zm52UDc1
1048 enoKTzcvZnVRc2VqOGZqOFhnOFVVd0dLZ1ZjSHM4N251SEFmV1VMNFNtT3RySUZlSWR6Sm5CVDJV
1049 SjRQRzhIMnREcXRFdlpnbmlLdzY5UQo1ZkZwNEZmQVcyVUw0dkc4SFZnTmpDcGJDRSt4Mk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BCc0plYUhZTzh5bzFjK2tGNUVyK0NwbzVxblpzQmExTQp3Nmsv
1090 VWRBYklWOWFHMlZ6Titxc0xQOUE1UkZxSjA1cyt0RDdqZUl2NkpEbkNPcmZ5ZjNJRkIrQnZLVkY4
1091 UVJ5NTFlcG9NRVQ1a2JxClkySWdVMnMyNWZUYkVocDEyZVoxZEN6c0dOeGtuSUltckoyVFZ0S0Ey
1092 a2J5Um5RenRRMm96VXZVanNKWEdVbjlwcTdYcEwxbWxYc3kKb2Myc2JaUkpQeklIc2xEWE9SbDVn
1093 OFpCOHg4MDhSMXA3a1h4YjNNbDhWUk1lcEg5bHVWcjV5enYxVlhHbVdpZnVwTm0vVCtERGVoYwpW
1094 Sml4MUh2R3VtaWNCWXB1dzZQUFFXNUJ3Y2Ura21XQll2c3R6K2tHRjF4azNCZjVEeEkvcXdrS0ZP
1095 cFphdC9GVEVTamZyZFEvcFZFCnUwS0xiR01vZnI1UkJrdElPWFBXWXRMNmJTaVFKdU1hSEE0eUJF
1096 Z0JGeFVnMEtrb2xqSU5PUy9Pc3ZLanZxa3FzbzBWeVAzc0I1UWMKSXozSW5UOFVTTk9Ob1VDU2pI
1097 T0FyN3RVTWhtZEdadFNrRkI3b0s5RXN4NXFMYUtONmRRK2cvY29pTjFWdGhBaFdxRWJneVZPUnRj
1098 VApKaDZQeCtQeGVEd2VqOGZqU2VEL004TWJMbnFHbE9jQUFBQUFTVVZPUks1Q1lJST0K
1099 </png>
1100 <latex>$$\left[H_{0},Y_{0}\right] = \sqrt{2} \mathbf{\imath} \left(- X_{0} + Z_{0}\right)$$</latex>
1101 </output>
1102 <output>
1103 <output_type>display_data</output_type>
1104 <text>⎽⎽⎽
1105 ⎡H ,Z ⎤ = -╲╱ 2 ⋅ⅈ⋅Y
1106 ⎣ 0 0⎦ 0</text>
1107 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUp3QUFBQWhDQVlBQUFBczdNTG1BQUFBQkhOQ1NWUUlD
1108 QWd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ME5EUTAKVEFML0ExWVBpV1VGdktGZkFBQUFBRWxGVGtT
1148 dVFtQ0MK
1149 </png>
1150 <latex>$$\left[H_{0},Z_{0}\right] = - \sqrt{2} \mathbf{\imath} Y_{0}$$</latex>
1151 </output>
1152 </outputs>
1153 </codecell>
1154 <codecell>
1155 <input>c = H(0)*X(1)*H(0)**2*CNOT(0,1)*X(1)**3*X(0)*Z(1)**2; c
1156 </input>
1157 <language>python</language>
1158 <prompt_number>15</prompt_number>
1159 <collapsed>0</collapsed>
1160 <outputs>
1161 <output>
1162 <output_type>pyout</output_type>
1163 <text>2
1164 H ⋅X ⋅⎛H ⎞ ⋅CNOT ⋅X ⋅X
1165 0 1 ⎝ 0⎠ 0,1 1 0</text>
1166 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQU53QUFBQWdDQVlBQUFCNUNoYmpBQUFBQkhOQ1NWUUlD
1167 QWdJZkFoa2lBQUFDSkJKUkVGVQplSnp0bkhtUUY4VVZ4ei91SW5JWVFCYU1vR0tpQzBKaWhJWFNF
1168 ckZRWTd4S1RGbEd3QWdxNGhXRHBlS1JTa0ppZ29tbHBkRVlMdU1kClJDR0pCRFZHU1dsSnFyeVBh
1169 SUpKTVBGRVZFb1RGVmNSWFR3MmYzeDczUG4xcjJlbVoyZm05MXZYK1ZSTnNkT3Y1M1cvbWI3ZTYv
1170 NEIKSlNVbEpkMkFyWUFSUUk5NlY2U2s2OUJZN3dwMFV3NERqZ1Q2QVF1QlhzRGpkYTFSU1VrM1pV
1171 dmdEdk12d0hDZ0hXaXBXNDFLU3JveApBNEVQZ1BHaHRJM0FxZldwVGtsWElzcS9XQVo4d1VwYkM1
1172 d083QVFzQUxhdzVIY0FWeVdVTndVNHprcjdIM0NDK1h0LzRCeExmam13CktrR3ZMMFhaRmVZdG9E
1173 L1FadTZiZ2Q3QXd5bnJ1aFdhRmNjRDQ0QTNnU1hBWDRFR1lCWXczK1NkQ2h3YmVuWWhzTkxTZHla
1174 d1lPaisK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ZFWnQrZ092NXFBN0RWY0JoeElkRkVtTGoxMHRh
1214 QTl3Y1U1bGRrZTZTdnNvR2k4NzgraHdJTDlqZE9oK0l2RXoKU3hGc1J2N2ExZFRHcmtiVXljOUZh
1215 LzZTYUpMYVI5TFJzczhLTmVzSFgwTVJ0bUhvTk1LS0Fzb1lpbjV0MjRhV2NRTWo4cDFFdXQrZwp4
1216 UkZuMXpray94NnVSTVM5eDBPUTM5Y1VTdlA5MXAybEtQMkovU0RUTDFRdEJnTjdJWC9odVJ6MUJr
1217 eW5jazlrSGRVT2U4QllOTnJrClFaUmRlWmJ4ZVNEcVBmWkYyeE5yMEFFQ1NQZXRPME9SK292dUJ5
1218 VWxtVG1jL0dleExrbGV2azVKU1dkcFFQL0Z3MXYxcmtoSnllZUIKZmxUNmJ5VWxKU1VsSlNVbEpT
1219 VWxKU1VsWFlML0EvS2RxeUFhY1o1bUFBQUFBRWxGVGtTdVFtQ0MK
1220 </png>
1221 <latex>$$H_{0} X_{1} \left(H_{0}\right)^{2} CNOT_{0,1} X_{1} X_{0}$$</latex>
1222 <prompt_number>15</prompt_number>
1223 </output>
1224 </outputs>
1225 </codecell>
1226 <codecell>
1227 <input>circuit_plot(c, nqubits=2)</input>
1228 <language>python</language>
1229 <prompt_number>16</prompt_number>
1230 <collapsed>0</collapsed>
1231 <outputs>
1232 <output>
1233 <output_type>pyout</output_type>
1234 <text>&amp;lt;sympy.physics.quantum.circuitplot.CircuitPlot object at 0x48cd350&amp;gt;</text>
1235 <prompt_number>16</prompt_number>
1236 </output>
1237 <output>
1238 <output_type>display_data</output_type>
1239 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQVhjQUFBQ09DQVlBQUFES0traWJBQUFBQkhOQ1NWUUlD
1240 QWdJZkFoa2lBQUFBQWx3U0ZsegpBQUFMRWdBQUN4SUIwdDErL0FBQURqbEpSRUZVZUp6dDNIMU1W
1241 ZlVmQi9EM0VWZXBLVjFFSUNHdXNxRVNMcm8rVkpyR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AzS2wvc3RaODZjd1pkZmZv
1321 blRwMDlqNzk2OWlJNk9Sa2hJQ09Mago0eEVjSEt4M1BDSzN4WEx2bXg2WWNpY2kxMkM1OTAxS2Zx
1322 RktSUFNnVSs3Wk1rVFUrMXo1bXdPRHdlQ3kxMVlaeTUySUhNSkxKbjBUCkw4c1FFU21JNVU1RXBD
1323 Q1dPeEdSZ2xqdVJFUUtZcmtURVNtSTVVNUVwQ0NXT3hHUmdsanVSRVFLWXJrVEVTbUk1VTVFcEND
1324 V094R1IKZ2xqdVJFUUtZcmtURVNtSTVVNUVwQ0NXT3hHUmdsanVSRVFLWXJrVEVTbUk1VTVFcEND
1325 V094R1JnbGp1UkVRS1lya1RFU21JNVU1RQpwQ0NXT3hHUmdsanVSRVFLWXJrVEVTbUk1VTVFcEND
1326 V094R1JnbGp1UkVRS1lya1RFU21JNVU1RXBDQ1dPeEdSZ2xqdVJFUUtZcmtUCkVTbUk1VTVFcEtE
1327 L0FWNklkZEJoanV6V0FBQUFBRWxGVGtTdVFtQ0MK
1328 </png>
1329 </output>
1330 </outputs>
1331 </codecell>
1332 <markdowncell>
1333 <source>This performs a commutator/anticommutator aware bubble sort algorithm to simplify a circuit.</source>
1334 </markdowncell>
1335 <codecell>
1336 <input>gate_simp(c)
1337 </input>
1338 <language>python</language>
1339 <prompt_number>17</prompt_number>
1340 <collapsed>0</collapsed>
1341 <outputs>
1342 <output>
1343 <output_type>pyout</output_type>
1344 <text>H ⋅CNOT ⋅X
1345 0 0,1 0</text>
1346 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUh3QUFBQWNDQVlBQUFDajZ0dmtBQUFBQkhOQ1NWUUlD
1347 QWdJZkFoa2lBQUFCZEJKUkVGVQphSUh0bW4vTTFYTVV4MTlYSlpVay9aQ1NKMHNyTmZrUnNzaWtZ
1348 U0UvVmh0YlRScU5VaXlrWkdqVVdxYm9NVDhUb2NhRFdJWkVxSWdvClUzN2w4YXRGdFN6TDc2YkU5
1349 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ZHdMazVYa3VsbURnZmZSaWNpaXUzTTVjQ3JLQTNhVAozMnFjZ25yYVliUXlKeGNC
1376 SDZLZFc0Mi9MZGpVN1AxbDlqWURFejF5b0tiSzFBZ2V3Tm5vSmMzanFINmZEOXhBOGduc1F1NmxU
1377 akR1Cm5jQzd3T3VvTklUQ3h4OEZkOEVIa2V1Ylo4MTJQK2VadWVncUNtVFdvVnltVkY4S1Foc3oy
1378 amxFbTRoT2N6bWcxUEhIaGZUVWZmRmwKNmNWaU84cUVzeUZhQzZPWEEvYW04U2Y2a3NhQ1o5Rkxs
1379 UFloV2dmZyt4UjA3d3ZZbThhZjZFc2FDdzVxbTRZVGhZRW9XU2dYeEkzLwpLT3AyQ2ZlVUw2bTFD
1380 RnVpMXVreU5NRHZLSzhGanh0L05mcEhEN2YvUGhnbFk1UFFpNkZsNUw4YmFBaGZVb2V2amk0bitN
1381 YWZRYTh5ClhSeUN3bTN3S2VSRlZLbStGTitMVGNET2xQWHRhL0NOUDR2LzlXeERKM1hsdmhaN0RQ
1382 MVJ3NnFDTWtIYVViU0NDaXFvb0lJS0tpaEQKL0FkcHRYLzBuZHJla3dBQUFBQkpSVTVFcmtKZ2dn
1383 PT0K
1384 </png>
1385 <latex>$$H_{0} CNOT_{0,1} X_{0}$$</latex>
1386 <prompt_number>17</prompt_number>
1387 </output>
1388 </outputs>
1389 </codecell>
1390 <codecell>
1391 <input>circuit_plot(gate_simp(c),nqubits=2)</input>
1392 <language>python</language>
1393 <prompt_number>18</prompt_number>
1394 <collapsed>0</collapsed>
1395 <outputs>
1396 <output>
1397 <output_type>pyout</output_type>
1398 <text>&amp;lt;sympy.physics.quantum.circuitplot.CircuitPlot object at 0x3da1990&amp;gt;</text>
1399 <prompt_number>18</prompt_number>
1400 </output>
1401 <output>
1402 <output_type>display_data</output_type>
1403 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQU5jQUFBQ09DQVlBQUFDaS9KMktBQUFBQkhOQ1NWUUlD
1404 QWd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VSRnk0TUFCTThiczlMVC84cHNWbDFlKzVtcnAwcVZMMkxwMUswcExTN0Y0OFdM
1457 RQp4OGRqeG93WnlNdkxRM0Z4TWJLenMyR3oyWkNSa1lIRXhFU3p4KzJVdlBVL1MzcDlYTjg4ZS9Z
1458 TUJ3OGV4Sk1uVDNEdTNEa2tKU1VoCk5qWVdTNWN1eGVEQmc4MGVyMU5qWEVSS3ZEVXVyM3VmaSto
1459 djRYV2ZMU1RQWkJpRzJyNkRnNFBWOXQwV3hrV204OVpYSnJ3dEpGTEMKdUlpVU1DNGlKWXlMU0Fu
1460 aklsTEN1SWlVTUM0aUpZeUxTQW5qSWxMQ3VJaVVNQzRpSll5TFNBbmpJbExDdUlpVU1DNGlKWXlM
1461 U0FuagpJbExDdUlpVU1DNGlKWXlMU0FuaklsTEN1SWlVTUM0aUpZeUxTQW5qSWxMQ3VJaVVNQzRp
1462 Sll5TFNBbmpJbExDdUlpVU1DNGlKWXlMClNBbmpJbExDdUlpVS9BOTl1T3NBYjBkaXB3QUFBQUJK
1463 UlU1RXJrSmdnZz09Cg==
1464 </png>
1465 </output>
1466 </outputs>
1467 </codecell>
1468 </cells>
1469 </worksheet>
1470 </worksheets>
1471 </notebook>
This diff has been collapsed as it changes many lines, (933 lines changed) Show them Hide them
@@ -1,1 +1,932 b''
1 {"cells":[{"code":"%notebook save dos.ipynb","cell_type":"code","prompt_number":5},{"code":"from sympy import *\nimport numpy as np\nimport math","cell_type":"code","prompt_number":47},{"cell_type":"text","text":"<h2>Strutinsky Energy Averaging Method</h2>"},{"cell_type":"text","text":"Define a callable class for computing the smooth part of the density of states $\\tilde{g}_m(E)$ with curvature\ncorrection of order $2M$."},{"code":"class SmoothDOS(object):\n\n def __init__(self, energies):\n self.energies = energies\n\n def gaussian_smoothing_func(self, M, x):\n return (mpmath.laguerre(M,0.5,x**2)*exp(-x**2)/sqrt(pi)).evalf()\n\n def __call__(self, e, M=3, gamma=1.0):\n return sum(self.gaussian_smoothing_func(M, (e-ei)/gamma)/gamma for ei in self.energies)","cell_type":"code","prompt_number":67},{"code":"def avgf(M, x):\n return (mpmath.laguerre(M,0.5,x**2)*exp(-x**2)/sqrt(pi)).evalf()","cell_type":"code","prompt_number":14},{"code":"def smooth_dos(gamma, M, e, energies):\n return sum(avgf(M, (e-ei)/gamma)/gamma for ei in energies)","cell_type":"code","prompt_number":2},{"cell_type":"text","text":"<h2>1D Simple Harmonic Oscillator DOS</h2>"},{"code":"def sho_smooth_dos(e):\n \"\"\"Compute the exact smooth DOS.\"\"\"\n return 1","cell_type":"code","prompt_number":50},{"code":"def sho_spectrum(nmax):\n \"\"\"Compute the first nmax energies of the 1D SHO.\"\"\"\n return [n+0.5 for n in range(nmax)]","cell_type":"code","prompt_number":51},{"code":"sho_evalues = np.linspace(0.0,20,100)","cell_type":"code","prompt_number":63},{"code":"sho_dos = SmoothDOS(sho_spectrum(30))","cell_type":"code","prompt_number":68},{"code":"sho_exact_dos = [sho_smooth_dos(e) for e in evalues]","cell_type":"code","prompt_number":69},{"code":"sho_approx_dos = [sho_dos(e,M=3,gamma=10.0) for e in evalues]","cell_type":"code","prompt_number":72},{"code":"plot(evalues, sho_exact, label=\"exact\")\nplot(evalues, sho_approx, label=\"approx\")\ntitle(\"Smooth part of the DOS for the 1D SHO\")\nxlabel(\"Energy\"); ylabel(\"$g(E)$\")\nlegend(loc=4)","cell_type":"code","prompt_number":73},{"cell_type":"text","text":"Note how the exact smoothed DOS and the Strutinsky approximation agree once the energy is away from\n0. In general, these are edge effects and are also present at the right limit if you don't use enough energy\nlevels. Here we have used 30, so the right side doesn't show these artifacts."},{"cell_type":"text","text":"<h2>1D Particle in a BOX (PIAB) DOS</h2>"},{"code":"def piab_smooth_dos(e):\n \"\"\"Compute the exact smooth DOS.\"\"\"\n return 1.0/(2.0*math.sqrt(e*math.pi**2/2))","cell_type":"code","prompt_number":76},{"code":"def piab_spectrum(nmax):\n \"\"\"Compute the first nmax energies of the 1D PIAB.\"\"\"\n return [0.5*math.pi**2*(n+1)**2 for n in range(nmax)]","cell_type":"code","prompt_number":77},{"code":"piab_evalues = linspace(1.0,1000.0,100)","cell_type":"code","prompt_number":78},{"code":"piab_dos = SmoothDOS(piab_spectrum(20))","cell_type":"code","prompt_number":79},{"code":"piab_exact_dos = [piab_smooth_dos(e) for e in piab_evalues]","cell_type":"code","prompt_number":80},{"code":"piab_approx_dos = [piab_dos(e, M=4, gamma=150.0) for e in piab_evalues]","cell_type":"code","prompt_number":81},{"code":"plot(piab_evalues, piab_exact, label=\"exact\")\nplot(piab_evalues, piab_approx, label=\"approx\")\ntitle(\"Smooth part of the DOS for the 1D PIAB\")\nxlabel(\"Energy\"); ylabel(\"$g(E)$\")\nlegend(loc=1)","cell_type":"code","prompt_number":85},{"code":"","cell_type":"code","prompt_number":24}]} No newline at end of file
1 <?xml version="1.0" encoding="utf-8"?>
2 <notebook>
3 <name>dos</name>
4 <nbformat>2</nbformat>
5 <worksheets>
6 <worksheet>
7 <cells>
8 <codecell>
9 <input>from sympy import *
10 import numpy as np
11 import math</input>
12 <language>python</language>
13 <prompt_number>1</prompt_number>
14 <collapsed>1</collapsed>
15 <outputs />
16 </codecell>
17 <markdowncell>
18 <source>&lt;h2&gt;Strutinsky Energy Averaging Method&lt;/h2&gt;</source>
19 </markdowncell>
20 <markdowncell>
21 <source>Define a callable class for computing the smooth part of the density of states $\tilde{g}_m(E)$ with curvature
22 correction of order $2M$.</source>
23 </markdowncell>
24 <codecell>
25 <input>class SmoothDOS(object):
26
27 def __init__(self, energies):
28 self.energies = energies
29
30 def gaussian_smoothing_func(self, M, x):
31 return (mpmath.laguerre(M,0.5,x**2)*exp(-x**2)/sqrt(pi)).evalf()
32
33 def __call__(self, e, M=3, gamma=1.0):
34 return sum(self.gaussian_smoothing_func(M, (e-ei)/gamma)/gamma for ei in self.energies)</input>
35 <language>python</language>
36 <prompt_number>2</prompt_number>
37 <collapsed>1</collapsed>
38 <outputs />
39 </codecell>
40 <codecell>
41 <input>def avgf(M, x):
42 return (mpmath.laguerre(M,0.5,x**2)*exp(-x**2)/sqrt(pi)).evalf()</input>
43 <language>python</language>
44 <prompt_number>3</prompt_number>
45 <collapsed>1</collapsed>
46 <outputs />
47 </codecell>
48 <codecell>
49 <input>def smooth_dos(gamma, M, e, energies):
50 return sum(avgf(M, (e-ei)/gamma)/gamma for ei in energies)</input>
51 <language>python</language>
52 <prompt_number>4</prompt_number>
53 <collapsed>1</collapsed>
54 <outputs />
55 </codecell>
56 <markdowncell>
57 <source>&lt;h2&gt;1D Simple Harmonic Oscillator DOS&lt;/h2&gt;</source>
58 </markdowncell>
59 <codecell>
60 <input>def sho_smooth_dos(e):
61 """Compute the exact smooth DOS."""
62 return 1</input>
63 <language>python</language>
64 <prompt_number>5</prompt_number>
65 <collapsed>1</collapsed>
66 <outputs />
67 </codecell>
68 <codecell>
69 <input>def sho_spectrum(nmax):
70 """Compute the first nmax energies of the 1D SHO."""
71 return [n+0.5 for n in range(nmax)]</input>
72 <language>python</language>
73 <prompt_number>6</prompt_number>
74 <collapsed>1</collapsed>
75 <outputs />
76 </codecell>
77 <codecell>
78 <input>sho_evalues = np.linspace(0.0,20,100)</input>
79 <language>python</language>
80 <prompt_number>7</prompt_number>
81 <collapsed>1</collapsed>
82 <outputs />
83 </codecell>
84 <codecell>
85 <input>sho_dos = SmoothDOS(sho_spectrum(30))</input>
86 <language>python</language>
87 <prompt_number>8</prompt_number>
88 <collapsed>1</collapsed>
89 <outputs />
90 </codecell>
91 <codecell>
92 <input>sho_exact_dos = [sho_smooth_dos(e) for e in sho_evalues]</input>
93 <language>python</language>
94 <prompt_number>10</prompt_number>
95 <collapsed>0</collapsed>
96 <outputs />
97 </codecell>
98 <codecell>
99 <input>sho_approx_dos = [sho_dos(e,M=3,gamma=10.0) for e in sho_evalues]</input>
100 <language>python</language>
101 <prompt_number>23</prompt_number>
102 <collapsed>1</collapsed>
103 <outputs />
104 </codecell>
105 <codecell>
106 <input>plot(sho_evalues, sho_exact_dos, label="exact")
107 plot(sho_evalues, sho_approx_dos, label="approx")
108 title("Smooth part of the DOS for the 1D SHO")
109 xlabel("Energy"); ylabel("$g(E)$")
110 legend(loc=4)</input>
111 <language>python</language>
112 <prompt_number>24</prompt_number>
113 <collapsed>0</collapsed>
114 <outputs>
115 <output>
116 <output_type>pyout</output_type>
117 <text>&amp;lt;matplotlib.legend.Legend at 0x7f1790f77990&amp;gt;</text>
118 <prompt_number>24</prompt_number>
119 </output>
120 <output>
121 <output_type>display_data</output_type>
122 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQVlvQUFBRWFDQVlBQUFBUEdCQlRBQUFBQkhOQ1NWUUlD
123 QWdJZkFoa2lBQUFBQWx3U0ZsegpBQUFMRWdBQUN4SUIwdDErL0FBQUlBQkpSRUZVZUp6dDNYbGNq
124 V24vQi9EUGFaSDJSWW1VUXRHK1NCSlNtcHJNaEJoamlRcVowU3kyCjhZelo4Rmllc1QyTVpZeWxN
125 VlJDakxFVk01S2xRbExScGl4WnNwUzBhZDlPbmV2M2g4ZjVpVXBSM2VlY3Z1L1g2N3hlVHZmMnVl
126 OXoKbk8rNXJ2czY5ODFqakRFUVFnZ2hUWkRpT2dBaGhCRFJSb1dDRUVKSXM2aFFFRUlJYVJZVkNr
127 SUlJYzJpUWtFSUlhUlpWQ2dJSVlRMAppd29GYVZSUVVCQWNIUjI1anZIT3NyS3lNSEhpUktpcnEr
128 TzMzMzVyMFRKU1VsSzRmLzkrT3lkclgrZlBuOGVJRVNPZ3JLeU1sSlNVCmR0bUdKQnduMGpwVUtE
129 aDIvZnAxZlA3NTU5RFQwME8zYnQwd2ZQaHdKQ1ltZG1pR3JLd3NTRWxKUVNBUWRPaDJtK1BzN0l6
130 ZHUzZS8KOC9MNzl1MkRxcW9xQ2dzTE1XZk9uRFpmZjNOZUhrOWxaV1dvcWFsaHdJQUJtREJoQXE1
131 ZnYvN0d2TWVQSDRlRGd3UFUxTlJnYkd5TQpiNy85RmpVMU5jTHBsWldWV0xse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UFCSlJVNUVya0pnZ2c9PQo=
491 </png>
492 </output>
493 </outputs>
494 </codecell>
495 <markdowncell>
496 <source>Note how the exact smoothed DOS and the Strutinsky approximation agree once the energy is away from
497 0. In general, these are edge effects and are also present at the right limit if you don't use enough energy
498 levels. Here we have used 30, so the right side doesn't show these artifacts.</source>
499 </markdowncell>
500 <markdowncell>
501 <source>&lt;h2&gt;1D Particle in a BOX (PIAB) DOS&lt;/h2&gt;</source>
502 </markdowncell>
503 <codecell>
504 <input>def piab_smooth_dos(e):
505 """Compute the exact smooth DOS."""
506 return 1.0/(2.0*math.sqrt(e*math.pi**2/2))</input>
507 <language>python</language>
508 <prompt_number>16</prompt_number>
509 <collapsed>1</collapsed>
510 <outputs />
511 </codecell>
512 <codecell>
513 <input>def piab_spectrum(nmax):
514 """Compute the first nmax energies of the 1D PIAB."""
515 return [0.5*math.pi**2*(n+1)**2 for n in range(nmax)]</input>
516 <language>python</language>
517 <prompt_number>17</prompt_number>
518 <collapsed>1</collapsed>
519 <outputs />
520 </codecell>
521 <codecell>
522 <input>piab_evalues = linspace(1.0,1000.0,100)</input>
523 <language>python</language>
524 <prompt_number>18</prompt_number>
525 <collapsed>1</collapsed>
526 <outputs />
527 </codecell>
528 <codecell>
529 <input>piab_dos = SmoothDOS(piab_spectrum(20))</input>
530 <language>python</language>
531 <prompt_number>19</prompt_number>
532 <collapsed>1</collapsed>
533 <outputs />
534 </codecell>
535 <codecell>
536 <input>piab_exact_dos = [piab_smooth_dos(e) for e in piab_evalues]</input>
537 <language>python</language>
538 <prompt_number>20</prompt_number>
539 <collapsed>1</collapsed>
540 <outputs />
541 </codecell>
542 <codecell>
543 <input>piab_approx_dos = [piab_dos(e, M=4, gamma=150.0) for e in piab_evalues]</input>
544 <language>python</language>
545 <prompt_number>21</prompt_number>
546 <collapsed>1</collapsed>
547 <outputs />
548 </codecell>
549 <codecell>
550 <input>plot(piab_evalues, piab_exact_dos, label="exact")
551 plot(piab_evalues, piab_approx_dos, label="approx")
552 title("Smooth part of the DOS for the 1D PIAB")
553 xlabel("Energy"); ylabel("$g(E)$")
554 legend(loc=1)</input>
555 <language>python</language>
556 <prompt_number>22</prompt_number>
557 <collapsed>0</collapsed>
558 <outputs>
559 <output>
560 <output_type>pyout</output_type>
561 <text>&amp;lt;matplotlib.legend.Legend at 0x6107410&amp;gt;</text>
562 <prompt_number>22</prompt_number>
563 </output>
564 <output>
565 <output_type>display_data</output_type>
566 <png>aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQVpjQUFBRWFDQVlBQUFEZFNCb0xBQUFBQkhOQ1NWUUlD
567 QWdJZkFoa2lBQUFBQWx3U0ZsegpBQUFMRWdBQUN4SUIwdDErL0FBQUlBQkpSRUZVZUp6dDNYbGNG
568 ZVhpUC9EUG5NTmhsVlZRTVJCVVZNQUZVQUZ4UlZLeG43bWtXV0pYCjdXcEtYZGMwN2FaMlhXNXBY
569 Y3YwYTFab3JxbDU2NXBGZVUxeEFkeFlYTUxDUFVWTEx3b3U3SnoxK2YxeDVDZ0tBbm80QncrZjkr
570 czEKcjdQTVBEUFBQT3I1K013OE15TUpJUVNJaUlpTVNHYnVDaEFSa2VWaHVCQVJrZEV4WElpSXlP
571 Z1lMa1JFWkhRTUZ5SWlNanFHQ3hFUgpHUjNEaFdway9mcjE2TkdqaDdtcjhkaXlzckl3ZlBod3VM
572 cTY0dE5QUDYxV0dabE1ob3NYTDlaeXpXclh2bjM3MExOblR6ZzZPaUlqCkk2Tld0bUVKN1VUR3cz
573 Q3BvNDRmUDQ3eDQ4ZkQyOXNiRFJzMlJQZnUzWEgwNkZHVDFpRXJLd3N5bVF3Nm5jNmsyMzJVeU1o
574 SXJGbXoKNXJITGI5cTBDYzdPenJoNTh5WW1UWnBrOVBVL1NsbDdPam82d3NYRkJXM2F0TUd3WWNO
575 dy9QanhoNWI5L3Z2dkVSRVJBUmNYRi9qNworK090dDk2Q1VxazB6Qzh1THNiQ2hRc1JGaFlHSnlj
576 bnRHblRCaDkrK0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tGQUlCdDI3WWhLeXNMNjlhdEF3RGN2bjBiRnk5ZU5Dem42K3NMQU5pOWV6ZEdqQmdCYTJ0cjlP
909 N2RHejQrClBnQUFCd2NIUkVWRjRjY2ZmNFMvdnovVWFqWGF0bTFibTd0SVpEUU1GeUlqS0h0bWhr
910 S2hRR2xwS1FCQXA5Tmg1Y3FWNk5telo3bGwKRHh3NEFFOVB6MnF0OTdYWFhzUDc3NytQZ0lBQWpC
911 MDcxcmlWSnFwRlBDeEdWRXRHamh5SnVMZzR3eUNBc2w3UGcyTm9vcU9qOGMwMwozMENsVWlFcEtR
912 bVhMMTgyekFzTEM4T2ZmLzZKTFZ1MklDWW14blNWSjNwQzdMa1FWVlBaT1pjeXp6MzNIQll0V2xS
913 dUdVbVNETS9BCmVQSEZGNUdibTR2bzZHams1K2VqUllzV2lJK1BMN2NNQUR6Ly9QUDQ3YmZmRUJ3
914 Y2pBNGRPcUJ0MjdhR1EyTUE4TkpMTHlFakk4TncKNTIraXB3R0hJaE9abVU2bmcxcXRobzJORGRM
915 VDB6RnQyalFjT25USU1MOS8vLzU0OTkxMzBhMWJOelBXa3FobTJITWhNclBpNG1MMAo3dDBicGFX
916 bGFOMjZOVDcrK0dNQXdKMDdkOUMxYTFkRVJrWXlXT2lwdzU0TEVSRVpIVS9vRXhHUjBURmNpSWpJ
917 NkJndVJFUmtkQXdYCklpSXlPb1lMRVJFWkhjT0ZpSWlNN3Y4RDVMODlZcE03bzFzQUFBQUFTVVZP
918 Uks1Q1lJST0K
919 </png>
920 </output>
921 </outputs>
922 </codecell>
923 <codecell>
924 <input />
925 <language>python</language>
926 <collapsed>1</collapsed>
927 <outputs />
928 </codecell>
929 </cells>
930 </worksheet>
931 </worksheets>
932 </notebook>
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now