Try Your Hand

Solutions to these exercises are given in Multi-Qubit Programs Solutions.

For any code listing in the exercises, assume the following header lines:

 OPENQASM 2.0;
 include ​"qelib1.inc"​;
  1. In each of the following cases, identify the coefficient for the stated idealized state.

    1. What’s the amplitude, images/_pragprog/svg-315.png, for images/_pragprog/svg-74.png in the following vector?

      images/_pragprog/svg-block-351.png
    2. What’s the amplitude, , for in the following vector?

  2. Can a matrix represent a quantum gate? ...

Get Quantum Computing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.