guys I don't think I will make more comics, I died in the mountains
😁1
I have walked 26041 steps today, it would only be fair if I get to atleast post these...
⚡28👏8
#project
I have made a guessing game using Grover's algorithm. What it does is, you pick a number, and if that number is in the list, it will find where it is in a very short try (O(sqrt N)), where N is the length of the list. If we think of the numbers as coins, it will toss all the coins into the air and will mark the one we picked (by magic), increasing the chance of getting the marked one and reducing those that aren't marked. So, when we measure, we get the place (index) we want.
Does it work well? It's a probability; that's why it's a game for the computer to get it right (not really, it's just prone to errors, that's all).
Link
I have made a guessing game using Grover's algorithm. What it does is, you pick a number, and if that number is in the list, it will find where it is in a very short try (O(sqrt N)), where N is the length of the list. If we think of the numbers as coins, it will toss all the coins into the air and will mark the one we picked (by magic), increasing the chance of getting the marked one and reducing those that aren't marked. So, when we measure, we get the place (index) we want.
Does it work well? It's a probability; that's why it's a game for the computer to get it right (not really, it's just prone to errors, that's all).
Link
🔥19❤2👍1