JanLahmann / RasQberry-Two

The RasQberry project: Exploring Quantum Computing and Qiskit with a Raspberry Pi and a 3D Printer
Apache License 2.0
6 stars 8 forks source link

RasQberry

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

Quick Installation of RasQberry

Quick setup instructions:
Initialize an SD card with Raspberry Pi Imager, using the recommended "bookworm, 64-bit". (development was conducted with the default "pi" user, but other users should be possible as well)

Open the terminal/ssh window on your Raspberry Pi.

Download and execute the bootstrap script RasQ-init.sh, which will add the RasQberry sub-menu to raspi-config.

wget https://github.com/JanLahmann/RasQberry-Two/raw/main/RasQ-init.sh -O RasQ-init.sh
. ./RasQ-init.sh

This will modify the raspi-config Configuration Tool and add a RasQberry menu at the top. You can now start raspi-config as usual:

sudo raspi-config

Then select "0 RasQberry" to enter the RasQberry sub-menu. "SU System Update" is optional, but recommended. Run "IC Initial Config" for an initial configuration and to create the main python venv for RasQberry. Now run " IQ Qiskit Install" and install your preferred Qiskit version (1.0 or 1.1). The installation will take about 2 min on a Raspberry Pi 4.

File structure:

working with Qiskit

To work with Qiskit, enter the default python venv

. $HOME/$REPO/venv/$STD_VENV/bin/activate

which in the most cases is

. /home/pi/RasQberry-Two/venv/RQB2/bin/activate

Then, qiskit should be usable:

(RQB2) pi@raspberrypi:~ $ pip list | grep qiskit
qiskit                 1.1.1
qiskit-qasm3-import    0.5.0

Please let us know in case additional modules are needed.