Single Qubit Programs Solutions

Quantum Gates as Matrices Solutions

Solutions for the exercises in Try Your Hand.

    1. The amplitude images/_pragprog/svg-584.png. Thus, the probability of the qubit collapsing to 0 is images/_pragprog/svg-585.png.

      The amplitude images/_pragprog/svg-586.png. So the probability of the qubit collapsing to 1 is images/_pragprog/svg-587.png

      The sum of these probabilities is images/_pragprog/svg-588.png. Since the sum is less than 1, the vector doesn’t represent a valid quantum state.

    2. The amplitude images/_pragprog/svg-589.png. Thus, the probability of the qubit collapsing to 0 is images/_pragprog/svg-590.png.

      The amplitude images/_pragprog/svg-591.png. So the probability of the qubit collapsing to 1 is images/_pragprog/svg-592.png

      The sum of these probabilities is . Since the sum is, for all intents and purposes, ...

Get Quantum Computing now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.