https://github.com/marekyggdrasil/quantum-programming-live
Code repository for the Quantum Programming LiveStream by Marek Narozniak
https://github.com/marekyggdrasil/quantum-programming-live
livecoding livestream quantum-computing quantum-mechanics youtube
Last synced: 4 months ago
JSON representation
Code repository for the Quantum Programming LiveStream by Marek Narozniak
- Host: GitHub
- URL: https://github.com/marekyggdrasil/quantum-programming-live
- Owner: marekyggdrasil
- License: cc0-1.0
- Created: 2021-10-02T03:22:02.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-13T06:38:49.000Z (about 4 years ago)
- Last Synced: 2025-07-27T04:51:40.214Z (6 months ago)
- Topics: livecoding, livestream, quantum-computing, quantum-mechanics, youtube
- Language: Python
- Homepage:
- Size: 375 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# quantum-programming-live
## Episodes
* [๐๏ธ Quantum Adiabatic Computing ๐ด Episode 6 ๐ฌ Quantum Programming LiveStream](https://youtu.be/Pj1pUrFTouk)
* [๐๏ธ Schrรถdinger Equation ๐ด Episode 5 ๐ฌ Quantum Programming LiveStream](https://youtu.be/wM0xT_rvLnc)
* [๐๏ธ Quantum Teleportation ๐ด Episode 4 ๐ฌ Quantum Programming LiveStream](https://youtu.be/4m1TG1qfzWw)
* [๐๏ธ Quantum Measurements ๐ด Episode 3 ๐ฌ Quantum Programming LiveStream](https://youtu.be/O6ZZfGgGu7g)
* [๐๏ธ The Bald Sphere ๐ด Episode 2.5 ๐ฌ Quantum Programming LiveStream](https://youtu.be/gKWkENTb_P0)
* [๐๏ธ Quantum Operators ๐ด Episode 2 ๐ฌ Quantum Programming LiveStream](https://youtu.be/y002ZDLagaQ)
* [๐๏ธ Quantum States ๐ด Episode 1 ๐ฌ Quantum Programming LiveStream](https://youtu.be/F7vxR64R3Tw)
## Challenges
### Episode 1 - Quantum states
Define few single-qubit and multi-qubit states. Calculate their overlaps and test their orthogonality. Automate your tests.
### Episode 2 - Quantum Operators
Define few single-qubit and multi-qubit quantum operators. Test if they act on the states as expected, including the case of their eigenstates. Automate your tests.
### Episode 3 - Simulation of measurements
#### Quantum measurement
Implement a Python function such that, given a quantum state, number of qubits N and a number of samples M, would perform M measurements in the z-basis and return the count of how many times each of the outcome has been measured.
#### Coins challenge 1
Two coins are placed heads on the table. Nothing happens. Program a quantum simulation of that scenario. Provide quantum circuit and histogram of counts of measurement outcomes.
#### Coins challenge 2
Two coins are placed heads on the table. We flip the first coin. Program a quantum simulation of that scenario. Provide quantum circuit and histogram of counts of measurement outcomes.
#### Coins challenge 3
Two coins are placed heads on the table. We throw the second coin. Program a quantum simulation of that scenario. Provide quantum circuit and histogram of counts of measurement outcomes.
#### Coins challenge 4
Two coins are placed heads on the table. We throw the first coin and if it lands tails, we also throw the second coin. Program a quantum simulation of that scenario. Provide quantum circuit and histogram of counts of measurement outcomes.
#### Coins challenge 5
Two coins are placed heads on the table. We throw the first coin and if it lands heads, we also throw the second coin. Program a quantum simulation of that scenario. Provide quantum circuit and histogram of counts of measurement outcomes.
### Episode 4 - Quantum Teleportation
We are justifying, explaining and simulating quantum teleportation using Python. There is some success, some failure, some technical issues and some mental breakdowns, but we made it!
Some references:
* [Optimal Extraction of Information from Finite Quantum Ensembles](https://journals.aps.org/prl/pdf/10.1103/PhysRevLett.74.1259)
* [Why does teleportation work?](https://youtu.be/Vo4Nnvu6grg)
* [Lecture about teleportation](https://www.youtube.com/watch?v=7ERL7CadrP4)
* [Remote state preparation](https://www.youtube.com/watch?v=WMe8gB1mCno)
### Episode 5 - Schrรถdinger equation
#### Challenge 1
Perform a time-evolution that would flip |0> into |1>. Plot the fidelities of eigenstates of Z-operator and magnitudes of the Hamiltonian operator terms. Do it once using square-shaped potential and once using Gaussian pulses.
#### Challenge 2
Repeat the coins challenge 4 using time-evolution.
### Episode 6 - Quantum Adiabatic Computation
Simulate the adiabatic time evolution. Demonstrate how system energy varies with respect to exact energy depending on total adiabatic sweep time.