Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oscarhiggott/pewpew-qube

Quantum rubiks' cube on a pewpew for the IBM QISKIT Europe hackathon 2019
https://github.com/oscarhiggott/pewpew-qube

Last synced: 3 months ago
JSON representation

Quantum rubiks' cube on a pewpew for the IBM QISKIT Europe hackathon 2019

Awesome Lists containing this project

README

        

# pewpew-qube

An implementation of a quantum version of the Rubik's cube on a [PewPew device](https://pewpew.readthedocs.io/en/latest/), using [MicroQiskit](https://github.com/quantumjim/MicroQiskit). This game was created at Qiskit Camp Europe 2019.

## Usage

### Emulator

The game can be run on a standard computer with Python 3 using the [emulator](https://pewpew.readthedocs.io/en/latest/pewmulator.html), which is included in this repo in the pew.py file. Using the emulator requires [pygame](https://www.pygame.org/wiki/about) to be installed.

### PewPew

Unlike the emulator, the PewPew only has 32kB of RAM, imposing more restrictions on what games can be run. The `*.py` files (excluding the `pew.py` emulator file) in the `src` directory could usually just be placed directly on the PewPew if RAM was not an issue, which would then run `code.py` using [CircuitPython](https://circuitpython.org/). However, to fit this game in memory, it is instead necessary to transfer the precompiled bytecode in the `mpy` directory onto the device.