Skip to content

Simulation of qubit operations using Raspberry Pis in pillows for educational purposes.

Notifications You must be signed in to change notification settings

Perugius/qubit-raspberrypi-representation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Two Qubit Simulation via Raspberry Pis

This repository contains code that represents some quantum gates which are represented through different operations on Raspberry Pis. The Raspberry Pis are implemented into pillows to enable physical operations like flipping, dropping, squeezing and touching the pillows, with each corresponding to a quantum gate.

Contents

  • quantum_2bit_simulation : Code that simulates the implemented qubit operations
  • entangleORdie : Small game containing few quantum operations
  • pn532 : NFC library

Setup Instructions

  1. Hardware:

    • 2 Raspberry Pis
    • Accelerometer (ADXL345)
    • LED strips
    • Physical buttons or switches
    • NFC reader (only needed on one Pi)
    • All Pis need to be connected to the same local network with static IPs (set in the code).
  2. Connections:

    • Wire up the accelerometer, LEDs, and buttons to the Raspberry Pis based on the GPIO pins defined in the code.
  3. Running the Simulation:

    • After cloning this repo to both Raspberry Pis, do the following:
      1. SSH or VNC into each Pi.
      2. On the Pi with the NFC reader, run:
        sudo python3 qubit_logic.py
      3. On the other Pi, run:
        sudo python3 qubit_logic_client.py

To-Do

  • Add guide for the "entangleORdie" game.
  • Tidy up the pn532 library path.

About

Simulation of qubit operations using Raspberry Pis in pillows for educational purposes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages