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.
- quantum_2bit_simulation : Code that simulates the implemented qubit operations
- entangleORdie : Small game containing few quantum operations
- pn532 : NFC library
-
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).
-
Connections:
- Wire up the accelerometer, LEDs, and buttons to the Raspberry Pis based on the GPIO pins defined in the code.
-
Running the Simulation:
- After cloning this repo to both Raspberry Pis, do the following:
- SSH or VNC into each Pi.
- On the Pi with the NFC reader, run:
sudo python3 qubit_logic.py
- On the other Pi, run:
sudo python3 qubit_logic_client.py
- After cloning this repo to both Raspberry Pis, do the following:
- Add guide for the "entangleORdie" game.
- Tidy up the
pn532
library path.