This chapter covers:
- Predict how quantum operations can be used to learn useful information about unknown operations with the quantum algorithm for phase kickback.
- Create new types in Q#
- Run Q# code from a Python host program
- Recognize important properties and behaviors of eigenstates and phase
- Program controlled quantum operations in Q#
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.
For this Chapter’s game, let’s go back and see what Lancelot has been up to. While Nimue and Merlin were deciding the fate of kings, you find Lancelot and the court jester Dagonet playing a guessing game where he has "borrowed" some of Nimue’s quantum tools. Since they’ve had a while to play, however, Dagonet has gotten a bit bored and wants to start incorporating quantum computing to make their game a bit more interesting.