|
2 | 2 | "cells": [
|
3 | 3 | {
|
4 | 4 | "cell_type": "markdown",
|
5 |
| - "id": "59d7c148", |
| 5 | + "id": "d6d914da", |
6 | 6 | "metadata": {
|
7 | 7 | "cq.autogen": "title_cell"
|
8 | 8 | },
|
|
13 | 13 | {
|
14 | 14 | "cell_type": "code",
|
15 | 15 | "execution_count": null,
|
16 |
| - "id": "2f8f58e2", |
| 16 | + "id": "ded96bc8", |
17 | 17 | "metadata": {
|
18 | 18 | "cq.autogen": "top_imports"
|
19 | 19 | },
|
|
30 | 30 | },
|
31 | 31 | {
|
32 | 32 | "cell_type": "markdown",
|
33 |
| - "id": "5343b6ee", |
| 33 | + "id": "4b2a9c14", |
34 | 34 | "metadata": {
|
35 | 35 | "cq.autogen": "SU2RotationGate.bloq_doc.md"
|
36 | 36 | },
|
|
41 | 41 | "The rotation is represented by the matrix:\n",
|
42 | 42 | "\n",
|
43 | 43 | "$$\n",
|
| 44 | + " e^{i \\alpha}\n", |
44 | 45 | " \\begin{pmatrix}\n",
|
45 | 46 | " e^{i(\\lambda + \\phi)} \\cos(\\theta) & e^{i\\phi} \\sin(\\theta) \\\\\n",
|
46 | 47 | " e^{i\\lambda} \\sin(\\theta) & - \\cos(\\theta)\n",
|
47 | 48 | " \\end{pmatrix}\n",
|
48 | 49 | "$$\n",
|
49 | 50 | "\n",
|
| 51 | + "#### Parameters\n", |
| 52 | + " - `theta`: rotation angle $\\theta$ in the above matrix.\n", |
| 53 | + " - `phi`: phase angle $\\phi$ in the above matrix.\n", |
| 54 | + " - `lambd`: phase angle $\\lambda$ in the above matrix.\n", |
| 55 | + " - `global_shift`: phase angle $\\alpha$, i.e. apply a global phase shift of $e^{i \\alpha}$. \n", |
| 56 | + "\n", |
50 | 57 | "#### References\n",
|
51 |
| - "[Generalized Quantum Signal Processing](https://arxiv.org/abs/2308.01501)\n", |
52 |
| - " Motlagh and Wiebe. (2023). Equation 7.\n" |
| 58 | + " - [Generalized Quantum Signal Processing](https://arxiv.org/abs/2308.01501). Motlagh and Wiebe. (2023). Equation 7.\n" |
53 | 59 | ]
|
54 | 60 | },
|
55 | 61 | {
|
56 | 62 | "cell_type": "code",
|
57 | 63 | "execution_count": null,
|
58 |
| - "id": "427b3db0", |
| 64 | + "id": "950a1fe9", |
59 | 65 | "metadata": {
|
60 | 66 | "cq.autogen": "SU2RotationGate.bloq_doc.py"
|
61 | 67 | },
|
|
66 | 72 | },
|
67 | 73 | {
|
68 | 74 | "cell_type": "markdown",
|
69 |
| - "id": "1a494a05", |
| 75 | + "id": "26277091", |
70 | 76 | "metadata": {
|
71 | 77 | "cq.autogen": "SU2RotationGate.example_instances.md"
|
72 | 78 | },
|
|
77 | 83 | {
|
78 | 84 | "cell_type": "code",
|
79 | 85 | "execution_count": null,
|
80 |
| - "id": "a65a3d09", |
| 86 | + "id": "5d165eae", |
81 | 87 | "metadata": {
|
82 | 88 | "cq.autogen": "SU2RotationGate.su2_rotation_gate"
|
83 | 89 | },
|
|
89 | 95 | {
|
90 | 96 | "cell_type": "code",
|
91 | 97 | "execution_count": null,
|
92 |
| - "id": "7233599d", |
| 98 | + "id": "6b034a9b", |
93 | 99 | "metadata": {
|
94 | 100 | "cq.autogen": "SU2RotationGate.hadamard"
|
95 | 101 | },
|
|
101 | 107 | {
|
102 | 108 | "cell_type": "code",
|
103 | 109 | "execution_count": null,
|
104 |
| - "id": "9f659e0d", |
| 110 | + "id": "baa38dac", |
105 | 111 | "metadata": {
|
106 | 112 | "cq.autogen": "SU2RotationGate.t_gate"
|
107 | 113 | },
|
108 | 114 | "outputs": [],
|
109 | 115 | "source": [
|
110 |
| - "t_gate = SU2RotationGate(0, 3 * np.pi / 4, 0)" |
| 116 | + "t_gate = SU2RotationGate(0, 3 * np.pi / 4, 0, -3 * np.pi / 4)" |
111 | 117 | ]
|
112 | 118 | },
|
113 | 119 | {
|
114 | 120 | "cell_type": "markdown",
|
115 |
| - "id": "9a2820b5", |
| 121 | + "id": "e85d6f3f", |
116 | 122 | "metadata": {
|
117 | 123 | "cq.autogen": "SU2RotationGate.graphical_signature.md"
|
118 | 124 | },
|
|
123 | 129 | {
|
124 | 130 | "cell_type": "code",
|
125 | 131 | "execution_count": null,
|
126 |
| - "id": "d8795bb6", |
| 132 | + "id": "1469a240", |
127 | 133 | "metadata": {
|
128 | 134 | "cq.autogen": "SU2RotationGate.graphical_signature.py"
|
129 | 135 | },
|
|
136 | 142 | },
|
137 | 143 | {
|
138 | 144 | "cell_type": "markdown",
|
139 |
| - "id": "6a41a8b3", |
| 145 | + "id": "eb5742c2", |
140 | 146 | "metadata": {
|
141 | 147 | "cq.autogen": "SU2RotationGate.call_graph.md"
|
142 | 148 | },
|
|
147 | 153 | {
|
148 | 154 | "cell_type": "code",
|
149 | 155 | "execution_count": null,
|
150 |
| - "id": "b310a9d1", |
| 156 | + "id": "1198abe9", |
151 | 157 | "metadata": {
|
152 | 158 | "cq.autogen": "SU2RotationGate.call_graph.py"
|
153 | 159 | },
|
|
0 commit comments