The RasQberry project: Exploring Quantum Computing and Qiskit with a Raspberry Pi and a 3D Printer
In this repository you can find different demos which also work with different hardware components.
You can access the different demos with the main menu from the Raspberry under the categories Demos
and HD Demos
. When you use your RasQberry with a display you can access the demos with the Kivy Interface as well.
You can start the Kivy Interface by clicking the desktop-icon on your Desktop.
In quantum mechanics and computing, the Bloch sphere is a geometrical representation of the pure state space of a two-level quantum mechanical system (qubit), named after the physicist Felix Bloch.
In this demo you can investigate how the Bloch Sphere behaves under curtain changes.
D - Quantum Demos
and then D1 - Bloch-Sphere
.
Usage
You can click on the Bloch Sphere and use the buttons on the left and right side to change equation on the top.
You can turn the bloch sphere itself and view it from different angle.
Stop
You can exit fullscreen-mode by clicking the icon in the top right again.
Now you can exit the demo by closing the window.
The Bloch Sphere demo is based on https://github.com/JavaFXpert/grok-bloch by James Weaver.
You can use this demo offline.
The IBM Quantum Composer allows public and premium access to cloud-based quantum computing services provided by IBM Quantum. This includes access to a set of IBM’s prototype quantum processors, a set of tutorials on quantum computation, and access to an interactive textbook.
You can use the quantum composer only while connected to a network.
Usage
You can customize the view of the quantum composer to be clearly arranged by selecting the windows you want to use in the View-tab in the window.
Stop
You can exit fullscreen-mode by tipping with your pen on or by moving your mouse to the very top of the screen and then clicking on the appearing x.
Now you can exit the quantum composer by closing the window.
You can connect LED Lights to your Raspberry Pi. This demo starts a program which lets the LED Lights shine in different colors and pattern.
When you have an LED Ring Light connected to your Raspberry Pi you can use RasQ-LED.
This demo will randomly calculate which one of the single LEDs will be 0
and which will be 1
. Zeros will be red and ones will be blue.
This demos comes in two alternatives. Rasqberry-Tie 5 simulates 5 Qbits and Rasqberry-Tie 16 simulates 16 Qbits.
The Raspberry-Tie demos are based on https://github.com/KPRoche/quantum-raspberry-tie by Kevin Roche.
D - Quantum Demos
and then D2 - Rasqberry-Tie 5
. D3 - Rasqberry-Tie 16
.
D2
or D3
) as before by starting this demo.The Qrasp demo is based on https://github.com/ordmoj/qrasp by Hassi Norlen.
D - Quantum Demos
and then D4 - Qrasp
.
Usage
You can control the demo with the little joystick on th senseHAT.
By pushing the joystick to the top you select the GHZ
-option.
By pushing the joystick to the bottom you select the Bell
-option.
By pushing the joystick to the right you select the 2Q
-option.
By pushing the joystick to the left you select the 3Q
-option.
Stop
To stop the Qrasp demo by selecting D4
again.
By choosing D - Quantum Demos
and FR - Fractals
you can start a demo which visualizes quantum computing using fractals.
The demo opens a new browser window and generates a fractal in real time. After the fractal is generated the animation will be saved as a GIF which will be displayed afterwards.
The GIF can be found in the folder /RasQberry/demos/bin/fractal_files/
.
By closing the browser window the generation will be interrupted and the current state of the animation will be saved as a GIF which also will be shown afterwards.
The old fractal will be overwritten by the new one.
See more information here.
By cloning the git-repository with the qiskit-demos you have access to new jupyter notebooks that you can run and investigate.
In your Jupyter Notebook you can investigate demos (e.g. the qiskit tutorials and demos) or can run your own code.
By executing D1 - Config & Demos
(under S - RasQerry Setup
) in the Rasqberry Configuration Tool you have access to more demos that you can run in jupyter notebooks on your Raspberry Pi. You need to provide your API Token and the jupyter notebook will be configurated.
H - HD Demos
and then the option you want.H - HD Demos
and then choose the demo you want to access.
You can now use the Jupyter notebook.