concept game in category quantum computing

appears as: games, game, game
Learn Quantum Computing with Python and Q#

This is an excerpt from Manning's book Learn Quantum Computing with Python and Q#.

  • Playing games
  • Throughout the book so far, you’ve seen that games can be a really helpful way to learn quantum computing concepts. In the previous Chapter, for instance, Lady Nimue’s game with Merlin let you explore your first quantum algorithm, the Deutsch–Jozsa algorithm. In this Chapter you’ll use another game to explore how to learn the phases of quantum states using phase kickback, the quantum development technique used by Deutsch–Jozsa and many other quantum algorithms.

    Listing 8.2. A quantum operation Dagonet could use to setup his part of the game.
    operation ApplyScaledRotation(angle : Double,                              #1
                                  scale : Double,
                                  target : Qubit)
    : Unit is Adj + Ctl {                                                      #2
        R1(angle * scale, target);                                             #3
    }