Try Your Hand
Solutions to these exercises are given in Quantum Search Solutions.
For any code listing in the exercises, assume the following header lines:
| | OPENQASM 2.0; |
| | include "qelib1.inc"; |
If you want to run any exercise, you must include them in the code you’d like to execute.
-
As you start designing your own quantum algorithms, you’ll need to figure out what gates to use and where to place them in your circuit. To this end, understanding how gates manipulate quantum states is crucial. To strengthen your intuition when handling quantum gates, fluently rotating the pentagon
and triangle qubelets is helpful. The following exercises ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access