Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 2.01 KB

README.md

File metadata and controls

59 lines (40 loc) · 2.01 KB

uQ : micro Quantum

uQ - an embedded quantum simulator

Hardware Required

The uQ is currently designed for the following hardware (with links to PiHut):

These parts were chosen as they are very easy to assemble, and give us a nice basic interface; a screen, a small joystick, and some buttons.

Firmware Instructions

Download the pico-sdk and set the correct environment variables:

PICO_SDK_PATH=/path/to/pico-sdk
cd build/
cmake ..

and then run

make -j9

Then press BOOTSEL whilst plugging in the pico into a USB port, which will present as a USB drive. Now move the main.u2f to the drive, it will reboot and flash and you're good!

## What you should see

When you have built the module you should see something like this:

assembled uQ

The usage is as follows:

  • Use the dpad - up/down/left/right - to navigate the circuit.
  • Press the joystick down to change the gates - currently supported gates include:
    • - - the identity gate ('do nothing')
    • X - the NOT gate
    • H - the Hadamard (superposition) gate
    • R - a fixed pi/8 x-axis rotation
    • x - the SWAP gate (MUST come in pairs)
    • V - the square root of the X gate
    • c - the control indicator - adds single qubit control to any given gate in that slice
  • Press A to compute the circuit and generate the output state vector
  • Press B to clear the circuit
  • Press X for the help screen

TODOs

  1. Add a decent PRNG (seeded quantumly?) and properly simulate the circuit
  2. Add more gates
  3. Add support for multiple controls in a single slice (like mcx in qiskit)