concept Mary in category quantum computing

appears as: Mary
Quantum Computing for Developers: A Java-based introduction

This is an excerpt from Manning's book Quantum Computing for Developers: A Java-based introduction.

5.7  Mary had a little qubit

Now that you learned the basic concepts of quantum computing, you can start using them in applications. To get you started, we created a simple game based on the "Mary had a little lambda" application that was created by Stephen Chin in order to demonstrate the usage of Streams and Lambda’s in Java. You can read more about this game at www.oracle.com/technical-resources/articles/java/rich-client-lambdas.html.

We modified the game so that the lambs that are managed by Mary are actually qubits. The code for this game is available in the repository, in the ch05 directory under the name maryqubit. You can start it by entering

Figure 5.19. Start screen for Mary had a little Qubit
ch5 maryqubit

You see Mary in a landscape with a number of elements. Some of these elements corresponds to quantum gates, and when a lamb visits the quantum gate while it is active, that gate is applied to the lamb-qubit.