for UTS Quantum Hackathon
(code by Akira Li, Jacky Ly, Joshua Muzik and Salha Alghoraibi)
edit: WE WON SECOND!
This project is an 8x8 minesweeper with 10 entangled mines (only 5 of which are definitively dangerous) such that when the player clicks a mine, there is a 50/50 chance of it actually being a mine. However, if a mine did not trigger a game over, then the other mine entangled with it will definitively trigger a game over if hit. Think of it as a Genshin Impact 50/50 (sorry).
Mine generation is done by creating a quantum circuit with 1 qubit. Then applying a Hadamard gate to create a superposition.
(Akira code explanation) So what I wanted to do was to entangle 10 qubits grouped into 5 pairs that were associated with specific mine positions such that the probability distributions would be
So how to do this? Bell state 3 (all my homies love bell state 3).
For each pair of qubit, apply the Hadamard gate to the first qubit, and the NOT gate to the second, and then CNOT the two qubits to entangle them (using the first qubit as a control, second qubit as a target). Repeat 5x. This leads to the quantum state (bell state 3)
gg finished :D