-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.xml
More file actions
540 lines (535 loc) · 42.3 KB
/
index.xml
File metadata and controls
540 lines (535 loc) · 42.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Quantum Crypt Lab</title><link>https://www.quantumcryptlab.org/</link><description>Recent content on Quantum Crypt Lab</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://www.quantumcryptlab.org/index.xml" rel="self" type="application/rss+xml"/><item><title>homomorphic encryption</title><link>https://www.quantumcryptlab.org/ai/ai-security/homomorphic-encryption/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.quantumcryptlab.org/ai/ai-security/homomorphic-encryption/</guid><description><p>Content goes here&hellip;</p></description></item><item><title>Introduction to Qiskit</title><link>https://www.quantumcryptlab.org/quantum-computing/qiskit/qiskit-introduction/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.quantumcryptlab.org/quantum-computing/qiskit/qiskit-introduction/</guid><description><h2 id="what-is-qiskit">
What is Qiskit?
<a class="anchor" href="#what-is-qiskit">#</a>
</h2>
<p>Qiskit is IBM&rsquo;s open-source quantum computing framework that allows developers and researchers to work with quantum computers using Python. The name &ldquo;Qiskit&rdquo; stands for &ldquo;Quantum Information Science Kit,&rdquo; and it has become one of the most popular tools for quantum computing development.</p>
<h2 id="why-qiskit">
Why Qiskit?
<a class="anchor" href="#why-qiskit">#</a>
</h2>
<p>Qiskit offers several advantages for learning and working with quantum computing:</p>
<ol>
<li><strong>Open Source</strong>: Completely free and open-source with an active community</li>
<li><strong>Python-Based</strong>: Uses the familiar Python programming language</li>
<li><strong>Comprehensive</strong>: Covers everything from basic circuits to advanced algorithms</li>
<li><strong>Real Hardware Access</strong>: Connect to actual IBM quantum computers via the cloud</li>
<li><strong>Well-Documented</strong>: Extensive tutorials, documentation, and learning resources</li>
</ol>
<h2 id="qiskit-components">
Qiskit Components
<a class="anchor" href="#qiskit-components">#</a>
</h2>
<p>Qiskit is organized into several key modules:</p></description></item><item><title>Introduction to Quantum Computing</title><link>https://www.quantumcryptlab.org/quantum-computing/introduction-quantum-computing/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.quantumcryptlab.org/quantum-computing/introduction-quantum-computing/</guid><description><p>Quantum computing is a revolutionary technology that harnesses the principles of quantum mechanics to process information in fundamentally new ways. Unlike classical computers that we use every day, quantum computers operate based on quantum phenomena that seem strange but offer incredible potential.</p>
<h2 id="key-concepts">
Key Concepts
<a class="anchor" href="#key-concepts">#</a>
</h2>
<h3 id="quantum-bits-qubits">
Quantum Bits (Qubits)
<a class="anchor" href="#quantum-bits-qubits">#</a>
</h3>
<p>Classical computers use bits that are either 0 or 1, like a light switch that&rsquo;s either off or on. Quantum bits (qubits) are different in two amazing ways:</p></description></item><item><title>Photon Polarization</title><link>https://www.quantumcryptlab.org/quantum-physics/photon-polarization/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.quantumcryptlab.org/quantum-physics/photon-polarization/</guid><description/></item><item><title>Quantum Entanglement</title><link>https://www.quantumcryptlab.org/quantum-physics/quantum-entanglement/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.quantumcryptlab.org/quantum-physics/quantum-entanglement/</guid><description><h1 id="quantum-entanglement">
Quantum Entanglement
<a class="anchor" href="#quantum-entanglement">#</a>
</h1>
<p>Quantum entanglement is a fascinating phenomenon where two or more particles become correlated in such a way that the quantum state of each particle cannot be described independently, even when separated by large distances.</p>
<h2 id="mathematical-description">
Mathematical Description
<a class="anchor" href="#mathematical-description">#</a>
</h2>
<p>The simplest example of an entangled state is the Bell state, also known as an EPR pair. For two qubits, one of the Bell states can be written as:</p></description></item><item><title>Quantum Superposition</title><link>https://www.quantumcryptlab.org/quantum-physics/quantum-superposition/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.quantumcryptlab.org/quantum-physics/quantum-superposition/</guid><description><h1 id="quantum-superposition">
Quantum Superposition
<a class="anchor" href="#quantum-superposition">#</a>
</h1>
<p>Quantum superposition is one of the fundamental principles of quantum mechanics. It states that a quantum system can exist in multiple states simultaneously until it is measured.</p>
<h2 id="mathematical-description">
Mathematical Description
<a class="anchor" href="#mathematical-description">#</a>
</h2>
<p>In quantum mechanics, we can describe a quantum state |ψ⟩ as a superposition of basis states. For example, a qubit can be written as:</p>
<link rel="stylesheet" href="https://www.quantumcryptlab.org/katex/katex.min.css" />
<script defer src="https://www.quantumcryptlab.org/katex/katex.min.js"></script>
<script defer src="https://www.quantumcryptlab.org/katex/auto-render.min.js" onload="renderMathInElement(document.body);"></script><span>
\[
|\psi\rangle = \alpha|0\rangle + \beta|1\rangle
\]
</span>
<p>where α and β are complex numbers satisfying:</p></description></item><item><title>test</title><link>https://www.quantumcryptlab.org/about/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.quantumcryptlab.org/about/</guid><description><p>Content goes here&hellip;</p></description></item><item><title>Books</title><link>https://www.quantumcryptlab.org/learning-resources/books/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.quantumcryptlab.org/learning-resources/books/</guid><description><h1 id="books">
Books
<a class="anchor" href="#books">#</a>
</h1>
<h2 id="quantum-computing">
Quantum Computing
<a class="anchor" href="#quantum-computing">#</a>
</h2>
<h3 id="beginner-level">
Beginner Level
<a class="anchor" href="#beginner-level">#</a>
</h3>
<h3 id="intermediate-level">
Intermediate Level
<a class="anchor" href="#intermediate-level">#</a>
</h3>
<h3 id="advanced-level">
Advanced Level
<a class="anchor" href="#advanced-level">#</a>
</h3>
<h2 id="cryptography">
Cryptography
<a class="anchor" href="#cryptography">#</a>
</h2>
<h3 id="classical-cryptography">
Classical Cryptography
<a class="anchor" href="#classical-cryptography">#</a>
</h3>
<h3 id="quantum-cryptography">
Quantum Cryptography
<a class="anchor" href="#quantum-cryptography">#</a>
</h3>
<h2 id="mathematics">
Mathematics
<a class="anchor" href="#mathematics">#</a>
</h2>
<h3 id="linear-algebra">
Linear Algebra
<a class="anchor" href="#linear-algebra">#</a>
</h3>
<h3 id="group-theory">
Group Theory
<a class="anchor" href="#group-theory">#</a>
</h3>
<h3 id="boolean-algebra">
Boolean Algebra
<a class="anchor" href="#boolean-algebra">#</a>
</h3>
<h2 id="artificial-intelligence">
Artificial Intelligence
<a class="anchor" href="#artificial-intelligence">#</a>
</h2>
<h3 id="machine-learning">
Machine Learning
<a class="anchor" href="#machine-learning">#</a>
</h3>
<h3 id="ai-in-cryptography">
AI in Cryptography
<a class="anchor" href="#ai-in-cryptography">#</a>
</h3>
<h2 id="research-and-advanced-topics">
Research and Advanced Topics
<a class="anchor" href="#research-and-advanced-topics">#</a>
</h2>
<h3 id="quantum-machine-learning">
Quantum Machine Learning
<a class="anchor" href="#quantum-machine-learning">#</a>
</h3>
<h3 id="zero-knowledge-proofs">
Zero-Knowledge Proofs
<a class="anchor" href="#zero-knowledge-proofs">#</a>
</h3>
<dl>
</dl></description></item><item><title>Installation and Setup</title><link>https://www.quantumcryptlab.org/quantum-computing/qiskit/qiskit-installation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.quantumcryptlab.org/quantum-computing/qiskit/qiskit-installation/</guid><description><h2 id="system-requirements">
System Requirements
<a class="anchor" href="#system-requirements">#</a>
</h2>
<p>Before installing Qiskit, ensure your system meets these requirements:</p>
<ul>
<li><strong>Python</strong>: Version 3.8 or later (3.9+ recommended)</li>
<li><strong>Operating System</strong>: Windows, macOS, or Linux</li>
<li><strong>RAM</strong>: At least 4GB (8GB+ recommended for larger simulations)</li>
<li><strong>Internet Connection</strong>: For accessing IBM Quantum services</li>
</ul>
<h2 id="installing-python">
Installing Python
<a class="anchor" href="#installing-python">#</a>
</h2>
<p>If you don&rsquo;t have Python installed:</p>
<h3 id="windows">
Windows
<a class="anchor" href="#windows">#</a>
</h3>
<p>Download from <a href="https://www.python.org/downloads/">python.org</a> and run the installer. Make sure to check &ldquo;Add Python to PATH.&rdquo;</p>
<h3 id="macos">
macOS
<a class="anchor" href="#macos">#</a>
</h3>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#75715e"># Using Homebrew</span>
</span></span><span style="display:flex;"><span>brew install python3
</span></span></code></pre></div><h3 id="linux-ubuntudebian">
Linux (Ubuntu/Debian)
<a class="anchor" href="#linux-ubuntudebian">#</a>
</h3>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sudo apt update
</span></span><span style="display:flex;"><span>sudo apt install python3 python3-pip
</span></span></code></pre></div><h2 id="installing-qiskit">
Installing Qiskit
<a class="anchor" href="#installing-qiskit">#</a>
</h2>
<h3 id="using-pip-recommended">
Using pip (Recommended)
<a class="anchor" href="#using-pip-recommended">#</a>
</h3>
<p>The simplest way to install Qiskit is using pip:</p></description></item><item><title>Basic Quantum Circuits</title><link>https://www.quantumcryptlab.org/quantum-computing/qiskit/qiskit-basic-circuits/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.quantumcryptlab.org/quantum-computing/qiskit/qiskit-basic-circuits/</guid><description><h2 id="your-first-quantum-circuit">
Your First Quantum Circuit
<a class="anchor" href="#your-first-quantum-circuit">#</a>
</h2>
<p>Let&rsquo;s start by creating a simple quantum circuit in Qiskit:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-python" data-lang="python"><span style="display:flex;"><span><span style="color:#f92672">from</span> qiskit <span style="color:#f92672">import</span> QuantumCircuit
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Create a quantum circuit with 2 qubits</span>
</span></span><span style="display:flex;"><span>qc <span style="color:#f92672">=</span> QuantumCircuit(<span style="color:#ae81ff">2</span>)
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Add a Hadamard gate to the first qubit</span>
</span></span><span style="display:flex;"><span>qc<span style="color:#f92672">.</span>h(<span style="color:#ae81ff">0</span>)
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Add a CNOT gate with qubit 0 as control and qubit 1 as target</span>
</span></span><span style="display:flex;"><span>qc<span style="color:#f92672">.</span>cx(<span style="color:#ae81ff">0</span>, <span style="color:#ae81ff">1</span>)
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Visualize the circuit</span>
</span></span><span style="display:flex;"><span>print(qc)
</span></span></code></pre></div><p>This creates a Bell state, one of the fundamental entangled quantum states!</p></description></item><item><title>Research Papers</title><link>https://www.quantumcryptlab.org/learning-resources/papers/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.quantumcryptlab.org/learning-resources/papers/</guid><description><h1 id="research-papers">
Research Papers
<a class="anchor" href="#research-papers">#</a>
</h1>
<h2 id="quantum-computing">
Quantum Computing
<a class="anchor" href="#quantum-computing">#</a>
</h2>
<h3 id="foundational-papers">
Foundational Papers
<a class="anchor" href="#foundational-papers">#</a>
</h3>
<h3 id="quantum-algorithms">
Quantum Algorithms
<a class="anchor" href="#quantum-algorithms">#</a>
</h3>
<h3 id="quantum-error-correction">
Quantum Error Correction
<a class="anchor" href="#quantum-error-correction">#</a>
</h3>
<h2 id="cryptography">
Cryptography
<a class="anchor" href="#cryptography">#</a>
</h2>
<h3 id="classical-cryptography">
Classical Cryptography
<a class="anchor" href="#classical-cryptography">#</a>
</h3>
<h3 id="quantum-cryptography">
Quantum Cryptography
<a class="anchor" href="#quantum-cryptography">#</a>
</h3>
<h3 id="post-quantum-cryptography">
Post-Quantum Cryptography
<a class="anchor" href="#post-quantum-cryptography">#</a>
</h3>
<h2 id="zero-knowledge-proofs">
Zero-Knowledge Proofs
<a class="anchor" href="#zero-knowledge-proofs">#</a>
</h2>
<h3 id="foundational-work">
Foundational Work
<a class="anchor" href="#foundational-work">#</a>
</h3>
<h3 id="modern-developments">
Modern Developments
<a class="anchor" href="#modern-developments">#</a>
</h3>
<h2 id="artificial-intelligence-and-machine-learning">
Artificial Intelligence and Machine Learning
<a class="anchor" href="#artificial-intelligence-and-machine-learning">#</a>
</h2>
<h3 id="quantum-machine-learning">
Quantum Machine Learning
<a class="anchor" href="#quantum-machine-learning">#</a>
</h3>
<h3 id="ai-in-cryptography">
AI in Cryptography
<a class="anchor" href="#ai-in-cryptography">#</a>
</h3>
<h2 id="mathematics">
Mathematics
<a class="anchor" href="#mathematics">#</a>
</h2>
<h3 id="group-theory-in-cryptography">
Group Theory in Cryptography
<a class="anchor" href="#group-theory-in-cryptography">#</a>
</h3>
<h3 id="lattice-theory">
Lattice Theory
<a class="anchor" href="#lattice-theory">#</a>
</h3>
<h2 id="recent-developments-2020-2024">
Recent Developments (2020-2024)
<a class="anchor" href="#recent-developments-2020-2024">#</a>
</h2>
<h3 id="quantum-supremacy">
Quantum Supremacy
<a class="anchor" href="#quantum-supremacy">#</a>
</h3>
<h3 id="post-quantum-standardization">
Post-Quantum Standardization
<a class="anchor" href="#post-quantum-standardization">#</a>
</h3>
<h3 id="zero-knowledge-applications">
Zero-Knowledge Applications
<a class="anchor" href="#zero-knowledge-applications">#</a>
</h3>
<dl>
</dl></description></item><item><title>Quantum Algorithms with Qiskit</title><link>https://www.quantumcryptlab.org/quantum-computing/qiskit/qiskit-algorithms/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.quantumcryptlab.org/quantum-computing/qiskit/qiskit-algorithms/</guid><description><h2 id="introduction-to-quantum-algorithms">
Introduction to Quantum Algorithms
<a class="anchor" href="#introduction-to-quantum-algorithms">#</a>
</h2>
<p>Quantum algorithms leverage quantum mechanical phenomena like superposition and entanglement to solve problems more efficiently than classical algorithms. In this section, we&rsquo;ll implement several fundamental quantum algorithms using Qiskit.</p>
<h2 id="deutsch-jozsa-algorithm">
Deutsch-Jozsa Algorithm
<a class="anchor" href="#deutsch-jozsa-algorithm">#</a>
</h2>
<p>The Deutsch-Jozsa algorithm determines whether a function is constant or balanced with just one query, whereas a classical algorithm would need multiple queries.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-python" data-lang="python"><span style="display:flex;"><span><span style="color:#f92672">from</span> qiskit <span style="color:#f92672">import</span> QuantumCircuit
</span></span><span style="display:flex;"><span><span style="color:#f92672">from</span> qiskit_aer <span style="color:#f92672">import</span> AerSimulator
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#66d9ef">def</span> <span style="color:#a6e22e">deutsch_jozsa</span>(oracle_type<span style="color:#f92672">=</span><span style="color:#e6db74">&#39;balanced&#39;</span>):
</span></span><span style="display:flex;"><span> <span style="color:#e6db74">&#34;&#34;&#34;
</span></span></span><span style="display:flex;"><span><span style="color:#e6db74"> Implements the Deutsch-Jozsa algorithm
</span></span></span><span style="display:flex;"><span><span style="color:#e6db74"> oracle_type: &#39;constant&#39; or &#39;balanced&#39;
</span></span></span><span style="display:flex;"><span><span style="color:#e6db74"> &#34;&#34;&#34;</span>
</span></span><span style="display:flex;"><span> <span style="color:#75715e"># Create circuit with n qubits + 1 ancilla</span>
</span></span><span style="display:flex;"><span> n <span style="color:#f92672">=</span> <span style="color:#ae81ff">3</span> <span style="color:#75715e"># number of input qubits</span>
</span></span><span style="display:flex;"><span> qc <span style="color:#f92672">=</span> QuantumCircuit(n <span style="color:#f92672">+</span> <span style="color:#ae81ff">1</span>, n)
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span> <span style="color:#75715e"># Initialize ancilla qubit to |1⟩</span>
</span></span><span style="display:flex;"><span> qc<span style="color:#f92672">.</span>x(n)
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span> <span style="color:#75715e"># Apply Hadamard gates to all qubits</span>
</span></span><span style="display:flex;"><span> qc<span style="color:#f92672">.</span>h(range(n <span style="color:#f92672">+</span> <span style="color:#ae81ff">1</span>))
</span></span><span style="display:flex;"><span> qc<span style="color:#f92672">.</span>barrier()
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span> <span style="color:#75715e"># Apply oracle</span>
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">if</span> oracle_type <span style="color:#f92672">==</span> <span style="color:#e6db74">&#39;constant&#39;</span>:
</span></span><span style="display:flex;"><span> <span style="color:#75715e"># Constant oracle (do nothing or flip all)</span>
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">pass</span> <span style="color:#75715e"># Identity operation</span>
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">else</span>:
</span></span><span style="display:flex;"><span> <span style="color:#75715e"># Balanced oracle example</span>
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">for</span> i <span style="color:#f92672">in</span> range(n):
</span></span><span style="display:flex;"><span> qc<span style="color:#f92672">.</span>cx(i, n)
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span> qc<span style="color:#f92672">.</span>barrier()
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span> <span style="color:#75715e"># Apply Hadamard gates to input qubits</span>
</span></span><span style="display:flex;"><span> qc<span style="color:#f92672">.</span>h(range(n))
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span> <span style="color:#75715e"># Measure</span>
</span></span><span style="display:flex;"><span> qc<span style="color:#f92672">.</span>measure(range(n), range(n))
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">return</span> qc
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Run the algorithm</span>
</span></span><span style="display:flex;"><span>qc <span style="color:#f92672">=</span> deutsch_jozsa(<span style="color:#e6db74">&#39;balanced&#39;</span>)
</span></span><span style="display:flex;"><span>simulator <span style="color:#f92672">=</span> AerSimulator()
</span></span><span style="display:flex;"><span>job <span style="color:#f92672">=</span> simulator<span style="color:#f92672">.</span>run(qc, shots<span style="color:#f92672">=</span><span style="color:#ae81ff">1024</span>)
</span></span><span style="display:flex;"><span>result <span style="color:#f92672">=</span> job<span style="color:#f92672">.</span>result()
</span></span><span style="display:flex;"><span>counts <span style="color:#f92672">=</span> result<span style="color:#f92672">.</span>get_counts()
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>print(<span style="color:#e6db74">&#34;Deutsch-Jozsa results:&#34;</span>, counts)
</span></span><span style="display:flex;"><span><span style="color:#75715e"># If all 0s: function is constant</span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Otherwise: function is balanced</span>
</span></span></code></pre></div><h2 id="bernstein-vazirani-algorithm">
Bernstein-Vazirani Algorithm
<a class="anchor" href="#bernstein-vazirani-algorithm">#</a>
</h2>
<p>This algorithm finds a hidden binary string with a single query, compared to n queries classically.</p></description></item><item><title>Video Courses</title><link>https://www.quantumcryptlab.org/learning-resources/video-courses/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.quantumcryptlab.org/learning-resources/video-courses/</guid><description><h1 id="video-courses">
Video Courses
<a class="anchor" href="#video-courses">#</a>
</h1>
<h2 id="quantum-computing">
Quantum Computing
<a class="anchor" href="#quantum-computing">#</a>
</h2>
<h3 id="university-courses">
University Courses
<a class="anchor" href="#university-courses">#</a>
</h3>
<h3 id="online-platforms">
Online Platforms
<a class="anchor" href="#online-platforms">#</a>
</h3>
<h3 id="youtube-channels">
YouTube Channels
<a class="anchor" href="#youtube-channels">#</a>
</h3>
<h4 id="en-français">
En français:
<a class="anchor" href="#en-fran%c3%a7ais">#</a>
</h4>
<p><a href="https://www.youtube.com/@quantum-math">learning-resources</a></p>
<h2 id="cryptography">
Cryptography
<a class="anchor" href="#cryptography">#</a>
</h2>
<h3 id="university-courses-1">
University Courses
<a class="anchor" href="#university-courses-1">#</a>
</h3>
<h3 id="online-platforms-1">
Online Platforms
<a class="anchor" href="#online-platforms-1">#</a>
</h3>
<h3 id="youtube-channels-1">
YouTube Channels
<a class="anchor" href="#youtube-channels-1">#</a>
</h3>
<h2 id="mathematics">
Mathematics
<a class="anchor" href="#mathematics">#</a>
</h2>
<h3 id="linear-algebra">
Linear Algebra
<a class="anchor" href="#linear-algebra">#</a>
</h3>
<h3 id="group-theory">
Group Theory
<a class="anchor" href="#group-theory">#</a>
</h3>
<h3 id="boolean-algebra">
Boolean Algebra
<a class="anchor" href="#boolean-algebra">#</a>
</h3>
<h2 id="artificial-intelligence-and-machine-learning">
Artificial Intelligence and Machine Learning
<a class="anchor" href="#artificial-intelligence-and-machine-learning">#</a>
</h2>
<h3 id="machine-learning">
Machine Learning
<a class="anchor" href="#machine-learning">#</a>
</h3>
<h3 id="deep-learning">
Deep Learning
<a class="anchor" href="#deep-learning">#</a>
</h3>
<h3 id="ai-in-security">
AI in Security
<a class="anchor" href="#ai-in-security">#</a>
</h3>
<h2 id="zero-knowledge-proofs-and-blockchain">
Zero-Knowledge Proofs and Blockchain
<a class="anchor" href="#zero-knowledge-proofs-and-blockchain">#</a>
</h2>
<h3 id="zero-knowledge-proofs">
Zero-Knowledge Proofs
<a class="anchor" href="#zero-knowledge-proofs">#</a>
</h3>
<h3 id="blockchain-and-cryptocurrencies">
Blockchain and Cryptocurrencies
<a class="anchor" href="#blockchain-and-cryptocurrencies">#</a>
</h3>
<h2 id="specialized-topics">
Specialized Topics
<a class="anchor" href="#specialized-topics">#</a>
</h2>
<h3 id="quantum-cryptography">
Quantum Cryptography
<a class="anchor" href="#quantum-cryptography">#</a>
</h3>
<h3 id="post-quantum-cryptography">
Post-Quantum Cryptography
<a class="anchor" href="#post-quantum-cryptography">#</a>
</h3>
<h3 id="quantum-machine-learning">
Quantum Machine Learning
<a class="anchor" href="#quantum-machine-learning">#</a>
</h3>
<h2 id="conference-talks-and-research-presentations">
Conference Talks and Research Presentations
<a class="anchor" href="#conference-talks-and-research-presentations">#</a>
</h2>
<h3 id="major-conferences">
Major Conferences
<a class="anchor" href="#major-conferences">#</a>
</h3>
<h3 id="industry-talks">
Industry Talks
<a class="anchor" href="#industry-talks">#</a>
</h3>
<h2 id="interactive-learning-platforms">
Interactive Learning Platforms
<a class="anchor" href="#interactive-learning-platforms">#</a>
</h2>
<h3 id="hands-on-practice">
Hands-on Practice
<a class="anchor" href="#hands-on-practice">#</a>
</h3>
<h3 id="research-seminars">
Research Seminars
<a class="anchor" href="#research-seminars">#</a>
</h3>
<dl>
</dl></description></item><item><title>Advanced Qiskit Topics</title><link>https://www.quantumcryptlab.org/quantum-computing/qiskit/qiskit-advanced/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.quantumcryptlab.org/quantum-computing/qiskit/qiskit-advanced/</guid><description><h2 id="running-on-real-quantum-hardware">
Running on Real Quantum Hardware
<a class="anchor" href="#running-on-real-quantum-hardware">#</a>
</h2>
<h3 id="connecting-to-ibm-quantum">
Connecting to IBM Quantum
<a class="anchor" href="#connecting-to-ibm-quantum">#</a>
</h3>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-python" data-lang="python"><span style="display:flex;"><span><span style="color:#f92672">from</span> qiskit_ibm_runtime <span style="color:#f92672">import</span> QiskitRuntimeService
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Load your account</span>
</span></span><span style="display:flex;"><span>service <span style="color:#f92672">=</span> QiskitRuntimeService(channel<span style="color:#f92672">=</span><span style="color:#e6db74">&#34;ibm_quantum&#34;</span>)
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># List available backends</span>
</span></span><span style="display:flex;"><span>backends <span style="color:#f92672">=</span> service<span style="color:#f92672">.</span>backends()
</span></span><span style="display:flex;"><span><span style="color:#66d9ef">for</span> backend <span style="color:#f92672">in</span> backends:
</span></span><span style="display:flex;"><span> print(<span style="color:#e6db74">f</span><span style="color:#e6db74">&#34;Backend: </span><span style="color:#e6db74">{</span>backend<span style="color:#f92672">.</span>name<span style="color:#e6db74">}</span><span style="color:#e6db74">&#34;</span>)
</span></span><span style="display:flex;"><span> print(<span style="color:#e6db74">f</span><span style="color:#e6db74">&#34; Qubits: </span><span style="color:#e6db74">{</span>backend<span style="color:#f92672">.</span>num_qubits<span style="color:#e6db74">}</span><span style="color:#e6db74">&#34;</span>)
</span></span><span style="display:flex;"><span> print(<span style="color:#e6db74">f</span><span style="color:#e6db74">&#34; Status: </span><span style="color:#e6db74">{</span>backend<span style="color:#f92672">.</span>status()<span style="color:#f92672">.</span>status_msg<span style="color:#e6db74">}</span><span style="color:#ae81ff">\n</span><span style="color:#e6db74">&#34;</span>)
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Select a backend</span>
</span></span><span style="display:flex;"><span>backend <span style="color:#f92672">=</span> service<span style="color:#f92672">.</span>backend(<span style="color:#e6db74">&#34;ibm_brisbane&#34;</span>) <span style="color:#75715e"># Example backend name</span>
</span></span></code></pre></div><h3 id="submitting-jobs-to-real-hardware">
Submitting Jobs to Real Hardware
<a class="anchor" href="#submitting-jobs-to-real-hardware">#</a>
</h3>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-python" data-lang="python"><span style="display:flex;"><span><span style="color:#f92672">from</span> qiskit <span style="color:#f92672">import</span> QuantumCircuit, transpile
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Create your circuit</span>
</span></span><span style="display:flex;"><span>qc <span style="color:#f92672">=</span> QuantumCircuit(<span style="color:#ae81ff">2</span>, <span style="color:#ae81ff">2</span>)
</span></span><span style="display:flex;"><span>qc<span style="color:#f92672">.</span>h(<span style="color:#ae81ff">0</span>)
</span></span><span style="display:flex;"><span>qc<span style="color:#f92672">.</span>cx(<span style="color:#ae81ff">0</span>, <span style="color:#ae81ff">1</span>)
</span></span><span style="display:flex;"><span>qc<span style="color:#f92672">.</span>measure([<span style="color:#ae81ff">0</span>, <span style="color:#ae81ff">1</span>], [<span style="color:#ae81ff">0</span>, <span style="color:#ae81ff">1</span>])
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Transpile for the specific backend</span>
</span></span><span style="display:flex;"><span>transpiled_qc <span style="color:#f92672">=</span> transpile(qc, backend<span style="color:#f92672">=</span>backend, optimization_level<span style="color:#f92672">=</span><span style="color:#ae81ff">3</span>)
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Submit job</span>
</span></span><span style="display:flex;"><span>job <span style="color:#f92672">=</span> backend<span style="color:#f92672">.</span>run(transpiled_qc, shots<span style="color:#f92672">=</span><span style="color:#ae81ff">1024</span>)
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Monitor job status</span>
</span></span><span style="display:flex;"><span>print(<span style="color:#e6db74">f</span><span style="color:#e6db74">&#34;Job ID: </span><span style="color:#e6db74">{</span>job<span style="color:#f92672">.</span>job_id()<span style="color:#e6db74">}</span><span style="color:#e6db74">&#34;</span>)
</span></span><span style="display:flex;"><span>print(<span style="color:#e6db74">f</span><span style="color:#e6db74">&#34;Job Status: </span><span style="color:#e6db74">{</span>job<span style="color:#f92672">.</span>status()<span style="color:#e6db74">}</span><span style="color:#e6db74">&#34;</span>)
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Get results (this will wait for job completion)</span>
</span></span><span style="display:flex;"><span>result <span style="color:#f92672">=</span> job<span style="color:#f92672">.</span>result()
</span></span><span style="display:flex;"><span>counts <span style="color:#f92672">=</span> result<span style="color:#f92672">.</span>get_counts()
</span></span><span style="display:flex;"><span>print(<span style="color:#e6db74">&#34;Results:&#34;</span>, counts)
</span></span></code></pre></div><h3 id="using-qiskit-runtime">
Using Qiskit Runtime
<a class="anchor" href="#using-qiskit-runtime">#</a>
</h3>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-python" data-lang="python"><span style="display:flex;"><span><span style="color:#f92672">from</span> qiskit_ibm_runtime <span style="color:#f92672">import</span> Session, Sampler, Estimator
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Create a session</span>
</span></span><span style="display:flex;"><span><span style="color:#66d9ef">with</span> Session(service<span style="color:#f92672">=</span>service, backend<span style="color:#f92672">=</span><span style="color:#e6db74">&#34;ibm_brisbane&#34;</span>) <span style="color:#66d9ef">as</span> session:
</span></span><span style="display:flex;"><span> <span style="color:#75715e"># Use Sampler for sampling circuits</span>
</span></span><span style="display:flex;"><span> sampler <span style="color:#f92672">=</span> Sampler(session<span style="color:#f92672">=</span>session)
</span></span><span style="display:flex;"><span> job <span style="color:#f92672">=</span> sampler<span style="color:#f92672">.</span>run(qc, shots<span style="color:#f92672">=</span><span style="color:#ae81ff">1000</span>)
</span></span><span style="display:flex;"><span> result <span style="color:#f92672">=</span> job<span style="color:#f92672">.</span>result()
</span></span><span style="display:flex;"><span> print(result)
</span></span></code></pre></div><h2 id="circuit-optimization-and-transpilation">
Circuit Optimization and Transpilation
<a class="anchor" href="#circuit-optimization-and-transpilation">#</a>
</h2>
<h3 id="understanding-transpilation">
Understanding Transpilation
<a class="anchor" href="#understanding-transpilation">#</a>
</h3>
<p>Transpilation converts your quantum circuit to match the constraints of specific hardware.</p></description></item><item><title/><link>https://www.quantumcryptlab.org/ai/ai-in-crypto/zkml-overview/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.quantumcryptlab.org/ai/ai-in-crypto/zkml-overview/</guid><description/></item></channel></rss>