Single Qubit Programs Solutions
Quantum Gates as Matrices Solutions
Solutions for the exercises in Try Your Hand.

The amplitude . Thus, the probability of the qubit collapsing to 0 is .
The amplitude . So the probability of the qubit collapsing to 1 is
The sum of these probabilities is . Since the sum is less than 1, the vector doesn’t represent a valid quantum state.

The amplitude . Thus, the probability of the qubit collapsing to 0 is .
The amplitude . So the probability of the qubit collapsing to 1 is
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.