haaapplications.blogg.se

Quantum minesweeper 1
Quantum minesweeper 1











The golden cat moves around based on your click. If there are more 0's, then your click does not count and you still need two more clicks of a purple tile to reveal the group. If out of the 1024 shots, more of them are 1, then your click counts and you only need to find one more purple tile before the whole group reveals. For each click there is a 50/50 chance of the qubit evaluating to a 1 or 0. For example: if you reveal a purple 3 tile, you need to click two more purple 3 tiles before the whole purple section reveals. It has a 50/50 chance of evaluating to a 1 (bomb explodes) or a 0 (bomb defuses).Ī half NOT gate is applied to each qubit representing a number tile. A Hadamard gate is used on the qubit that represents the bomb and when the tile is clicked, the qubit is measured. The placement of the bombs are determined using the ANU Quantum Random Number Generator. To win the game, find the golden kitty (who moves based on whether you reveal a ! or normal tile).If a tile has an ! at the end that means quantum probability was not in your favour and that tile click does not count.The tile numbers indicate the number of times you need to click on the same colour to reveal the whole group.This is a super simple game loosely based on Minesweeper Flags and runs on the IBM Quantum computer or simulator.













Quantum minesweeper 1