Safely navigate your penguin across a frozen lake avoiding the hidden holes! You can make classical moves from one square to the next but you can also make a quantum move - splitting your penguin into a superposition of states. Explore how quantum superposition can help solve the levels whilst constructing a circuit to run on Rigetti’s quantum computer.
- (for Linux) SSH into your QCS box using
ssh -X -p 22 forest@YOUR_QCS
.-X
is needed to activate X forwarding and display the game on your local computer. - Install a required support package for graphical applications on the QCS with
yum install xorg-x11-xauth
. - Activate the base conda environment with
conda activate
- Install the game with
conda install -c riverlane quantumfreeze
- Run
quantumfreeze
!
If you are using OSX or Windows, you will need a X server. On OSX you may want to use XQuartz. Windows users can switch to using Windows Subsystem for Linux (WSL) or the Xming server, but support is not provided.
If you do not have a X server, quantumfreeze
will report that is was unable to find a display. This can also be caused by omitting the -X
flag.
- Install local verions of the quil compiler and VM from http://rigetti.com/forest. Ensure you can launch
qvm
andquilc
from the command line. - Install anaconda or miniconda from https://www.anaconda.com/. Ensure you can use the
conda
command. - Run
conda install -c riverlane quantumfreeze
. - Run
quantumfreeze
!
Your objective is the guide the penguin to his home in the igloo! The final bitstring that the circuit produces when measured gives them their instructions. A 0 will guide the penguin left, and 1 guides them down. Place gates onto the circuit in the bottom left to give your guidance.
Soon you will be challenged with multiple igloos! You will need to produce guidance with both 0 and 1 at the same time. By creating a superposition using a Hadamard gate you can get the penguin to all the igloos.
The Quantum Freeze was developed by Sam Coward and Tom Parks with numerous suggestions for levels from the rest of the Riverlane team!