QPong icon indicating copy to clipboard operation
QPong copied to clipboard

Allow the Y position of the ball to influence the inputs.

Open AgentM12 opened this issue 6 years ago • 1 comments

The ball's position has no influence on the 3 input bits. It would be nice if you could write an AI using the gates that increases the probability towards positions where the ball is most likely to go.

Possibly a 4th, 5th and 6th qbit (if that's feasible, cause of exponential simulation time/space complexity) You could then use these input bits to influence the output bits by using them with cnot's to flip states. (this might make it very easy cause there exists a one to one mapping that matches the position of the ball)

I don't know, but I feel like the game would be a lot more interesting if there is a way to observe the playing field and use it as part of the equation to get the correct position.

I was thinking of using Grover's Algorithm to 'search' the location that the ball would end up at.

AgentM12 avatar Feb 14 '20 20:02 AgentM12

Thank you very much for your interest of the game. This is the first time I receive Github issue opened by someone other than myself :)

I am not sure if I understand your suggestion. On the first paragraph you seem to suggest to make the classical computer (on the left) become quantum to play against the player.

But later you seem to suggest changing the quantum circuit depending on the ball’s Y position on the player side. And I don’t understand what you mean by “playing field”. Can you elaborate on the idea?

HuangJunye avatar Feb 20 '20 10:02 HuangJunye