Giter Site home page Giter Site logo

rasqberry-two's Introduction

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:

  • RasQ-init.sh: bootstrap-script, which will add the RasQberry sub-menu to raspi-config
  • RQB2_menu.sh: menu and sub-menu that integrate into raspi-config
  • env-config.sh: script to set environment variables, as defined in env
  • env: environment variables, being imported by env-config.sh
  • rq_install_Qiskit*: install procedure for different Qiskit versions

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.

rasqberry-two's People

Contributors

janlahmann avatar

Stargazers

Torsten Andrecht avatar

Watchers

Lucian avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.