Skip to content

Masacaai/2022_microsoft_ionq_challenge

 
 

Repository files navigation

Team:

- Fatema Patel
- Mohammed Aaqel
- Natasha Ninan
- Anurag Trivedi

Abstract

In the current pandemic stricken world, lockdowns and preventative measures are enforced on the daily. As observed over the past two years, the conscious effort to ensure one's safety is often ignored over one's desire to lead the same lifestyle as the one prior to the pandemic. This game serves as a reminder that the pandemic remains to be a health hazard and precautions need to observed. Moreover, since quantum computation is in its infancy with research developments occurring on the daily, beginners might have a hard time comprehending how qubits and qubit gates work. This game can be used to comprehend how a quantum circuits are implemented both on simulators and real quantum computers.

    How to play the game:

    1. On entering the game, the player is prompted to open the menu which contains a list of options. They can choose between the single qubit gates: Hadamard gate, Pauli X gate, Pauli Y gate ,Pauli Z gate and RZ gate. In addition, multi qubit gate such as the CNOT gate has been included.
    2. On selection of the gate from the menu, the gate is applied to the qubit. For every gate added onto the qubit, points are deducted from the score value.
    3. The game terminates either when a maximum of eleven gates are used or the score point has been depleted to zero.
    4. The qubits are measured and if the player manages to attain the required probability of a certain state, they win and a winning message is displayed.

Whats quantum about it?

The purpose of this game is to reinforce the preventive measures that must be taken during the ongoing pandemic. On further development, placing a gate would be identical to taking measures to prevent getting infected with the virus. The virus is represented in the form of two qubits and the goal of the game is to attain the highest probability for a given state in order to win the game. Thus, reaching the highest probable state would be similar to observing the maximum possible precautionary measures (such as getting the vaccine and social distancing) in order to avoid getting infected by the virus.

Implementation Details

The code was implemented using qiskit and pygame and subsequently simulated on the IonQ simulator. In order to access the code, download the files, install qiskit and run basic.py.

Going forward

We plan to introduce a GUI to the game using the Pygame Library. We worked on this feature during the hackathon, but were unable to complete in time. The game saw the player dragging and dropping gates onto a grid to prevent the virus (red) from reaching the player (green). We were inspired by the level design in Plants vs Zombies.

Screenshot_2022-01-30_085358 Screenshot_2022-01-30_085131

Date

January 30,2022

About

MIT iQuHACK 2022 x Microsoft x IonQ Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 63.6%
  • Jupyter Notebook 36.4%