"Fun with Quantum" is a collection of Jupyter notebooks that highlight specific aspects of Quantum Computing that are interesting and/or fun.
- Quantum Coin Game (superposition & interference))
- Simple Quantum Implementation for Boolean satisfiability problems
- Even Simpler Quantum Implementation for Boolean satisfiability problems (under development)
- Hardy's Paradox (complementary observables & the problem with classical logic)
- GHZ Game (entanglement)
- GHZ Game on real devices
- Mermin-Peres Magic Square (under development)
Find the notebook in the repository under the name Codebeispiele-Linux-Magazin.ipynb.
View - and play the game online, without any install - in Binder:
You can run the jupyter notebooks with the different Serious Games in the IBM Quantum Lab without the need for a local software install.
- Open the Quantum Lab in your browser: https://quantum-computing.ibm.com/
- If you already have an ID sign in to IBM Quantum.
Otherwise, please create an IBMid by clickingCreate an IBM account
, or use one of the other ID options. - Launch the Quantum Lab.
- Create a new file by clicking on the blue button
New file +
. - Delete the code from the first cell and enter
!git clone https://github.com/JanLahmann/Fun-with-Quantum
- Execute the cell with
Shift + Enter
. The Fun-with-Quantum Repository will now be cloned in your IBM Quantum Lab.
To see the new folderFun-with-Quantum
in the directory-tree on the left side, close and open the Lab files side menu. - Click
Fun-with-Quantum
to enter the new directory. - Open the
Readme.ipynb
-file and follow the links to the different examples.
Please have a look at the RasQberry project at https://github.com/JanLahmann/RasQberry.
RasQberry integrates Qiskit, a Raspberry Pi (the full range from Pi 4 down to a Pi Zero) and a 3D printed model of IBM Q System One to explore various state-of-the-art technologies and create a tool that can be used in meetings, meetups, demo booths, etc. A spectrum of Quantum Computing demos and Serious Games for Quantum Computing (that illustrate superposition, interference and entanglement) will being made available on this device for an engaging introduction to Quantum Computing.
A quantum coin game that illustrates the power of quantum superposition and interference - implemented by Jan-R. Lahmann using Qiskit, binder and RISE.
Inspired by the TED talk of Shohini Ghose "Quantum computing explained in 10 minutes"
View - and play the game online, without any install - in Binder:
A slightly more current version of this Quantum Coin Game is now part of the official Qiskit Community Tutorials and can be played at http://ibm.biz/QiskitCoinGame
A simple implementation to solve Boolean satisfiability problems ("3SAT") using Qiskit and Grover's Quantum Search Algorithm. The aim is to show how easy such a problem can be solved on a Quantum Computer using Qiskit. To keep it as simple as possible, the theory is not explained in this notebook.
Walk through this demo (and change it if you like) in Binder:
An even simpler implementation to solve Boolean satisfiability problems ("3SAT") using Qiskit and Grover's Quantum Search Algorithm.
Walk through this demo (and change it if you like) in Binder:
Hardy's Paradox nicely illustrates the fundamental difference of Quantum Mechanics and classical physics. Learn about complementary oberservables and why classical logic is not applicable to quantum mechanics.
A tutorial that discusses a specific version of the Einstein-Podolsky-Rosen (EPR) Paradox - implemented by Jan-R. Lahmann & Bengt Wegner using Qiskit, binder and RISE, based on an idea in a former version of the Qiskit Textbook
View - and play the game online, without any install - in Binder:
A quantum game that illustrates the power of quantum entanglement - implemented by Isabell Heider using Qiskit and binder.
For an introductions to the GHZ Game, please take a look at the following presentation by Jana Foehlisch.
View - and play the game online, without any install - in Binder:
Analyzing different techniques how to improve the results of playing the GHZ game on real quantum devices - implemented by Lennart Schulze using Qiskit and binder.
This notebook compares several IBM Quantum devices, explains how to (manually) optimize a circuit for a specific device, how to use the Qiskit transpiler and its optimizations, and discusses Measurement Error Mitigation.
View - and play the game online on real quantum devices, without any install - in Binder:
A base version of the Mermin-Peres magic square game demonstrating the computational power of quantum computers, which can be further extended to outperform classical machines - extended by Jan-R. Lahmann & David Drexlin with Qiskit. Based on the Medium article This Proof Demonstrates a Quantum Advantage, Even for Noisy Quantum Computers.
View - and play the game online, without any install - in Binder:
Some binder images in this repository automatically launch RISE, a Jupyter/IPython Slideshow Extension.
Navigation is easy:
- "Ctrl -" and "Ctrl +" (or "command -", "command +") adjust the zoom level to fit the text to the browser window
- Use "Space" and "Shift Space" to navigate through the slides (right & left arrow keys also work, but might skip some slides)
- "Shift + Enter" executes the interactive cells (might need to click the cell, first)
- Execute the interactive cells on each slide ("In [1]:", etc)
- In case a cell is not formatted correctly, try to double-click and then "Shift Enter" to re-execute
- Interactive cells can be modified, if needed
- "X" at the top left exits the slideshow and enters the jupyter notebook interface
In this lab, we will give an overview of serious games for quantum computing and use several Quantum Games that make the fundamental concepts of Superposition, Interference and Entanglement tangible and understandable for beginners. In addition, we will use real quantum computers and explore how to mitigate noise and errors.
As a first introduction look at these slides which provide an Overview about the topic of Serious Games in the area of Quantum Computing. Then you can go through some of the Serious Games to experience the differences and possibilities that Quantum Computing provides and get a first understanding on how to program today's Quantum Computers and Quantum Simulators:
- Quantum Coin Game: this Game provides an introduction to the concepts of Superposition and Interference. Go ahead and try it out for yourself: (opens as interactive slide show)
- GHZ-Game: in this game you will learn the basics about the concept of Entanglement and experience the effect that it can have based on a simple riddle: (opens as Jupyter Notebook)
- GHZ on real devices: to go one step further you can now try the GHZ-Game on a real quantum computer device. In this notebook you can experience the influence noise has on today's Quantum Computers and learn the fundamentals about error mitigation: (opens as Jupyter Notebook)
For the tutorial "Serious Games for Quantum Computing" as part of the IEEE QCE20 conference, please use the following URLs to launch the tutorial notebooks:
Part 3.2 "GHZ Game on real devices":
A recording of the three 1h tutorial sessions "Serious Games for Quantum Computing" from the IEEE International Conference on Quantum Computing and Engineering (QCE20) are available here: part 1, part 2, part 3. The agenda for the three parts is here.
Jan-R. Lahmann, http://twitter.com/JanLahmann