vabarbosa / Fun-with-Quantum

A quantum coin game and other fun stuff to illustrate the power and beauty of quantum Computing
Apache License 2.0
1 stars 0 forks source link

Fun with Quantum

"Fun with Quantum" is a collection of Jupyter notebooks that highlight specific aspects of Quantum Computing that are interesting and/or fun.

  1. Quantum Coin Game (superposition & interference)
  2. Simple Quantum Implementation for Boolean satisfiability problems
  3. Even Simpler Quantum Implementation for Boolean satisfiability problems
  4. Hardy's Paradox (complementary observables & the problem with classical logic)
  5. GHZ Game (entanglement)
  6. GHZ Game on real devices
  7. Mermin-Peres Magic Square

Came here from Linux Magazine?

Find the notebook in the repository under the name Codebeispiele-Linux-Magazin.ipynb.

View - and play the game online, without any install - in Binder: Binder


How to get started with the examples

Getting started instructions can be found in the GETTING_STARTED document.


RasQberry: Exploring Quantum Computing and Qiskit with a Raspberry Pi and a 3D Printer

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 be made available on this device for an engaging introduction to Quantum Computing.


1. Quantum Coin Game

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: 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


2. Simple Quantum Implementation for Boolean satisfiability problems

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: Binder


3. Even Simpler Quantum Implementation for Boolean satisfiability problems (under development)

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: Binder


4. Hardy's Paradox

Hardy's Paradox nicely illustrates the fundamental difference of Quantum Mechanics and classical physics. Learn about complementary observables 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: Binder


5. GHZ Game

A quantum game that illustrates the power of quantum entanglement - implemented by Isabell Heider using Qiskit and binder.

For an introduction 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: Binder


6. GHZ Game on real devices

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: Binder


7. Mermin-Peres Magic Square (under development)

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: Binder


Usage instructions for the RISE Slideshow Extension

Some binder images in this repository automatically launch RISE, a Jupyter/IPython Slideshow Extension.
Navigation is easy:


THINK 2021 Lab - Explore Quantum Computing with Serious Games

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:

  1. Quantum Coin Game: this Game provides an introduction to the concepts of Superposition and Interference. Go ahead and try it out for yourself: Binder (opens as interactive slide show)
  2. 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: Binder (opens as Jupyter Notebook)
  3. 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: Binder (opens as Jupyter Notebook)

IEEE QCE20 Tutorial on "Serious Games for Quantum Computing"

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 2 "Quantum Coin Game": Binder

Part 3.1 "GHZ Game": Binder

Part 3.2 "GHZ Game on real devices": Binder

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