This is an automated email from the ASF dual-hosted git repository.
guanmingchiu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/mahout.git
The following commit(s) were added to refs/heads/main by this push:
new 76cd7ee4f MAHOUT-474: Add angle definitions (#620)
76cd7ee4f is described below
commit 76cd7ee4f338717e2ffde4a65a419852b6738b7b
Author: Guan-Ming (Wesley) Chiu <[email protected]>
AuthorDate: Fri Nov 14 17:35:11 2025 +0800
MAHOUT-474: Add angle definitions (#620)
* Add angle definitions
* Fix pre-commit issue
---
examples/Optimization_Example.ipynb | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/examples/Optimization_Example.ipynb
b/examples/Optimization_Example.ipynb
index 320b02236..c573f50a9 100644
--- a/examples/Optimization_Example.ipynb
+++ b/examples/Optimization_Example.ipynb
@@ -88,6 +88,23 @@
"qumat_instance.apply_rz_gate(0, \"lambda\")"
]
},
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Understanding the Rotation Angles\n",
+ "\n",
+ "In quantum computing, rotation gates are parameterized by angles that
determine the amount of rotation applied to a qubit's state. Here's what each
angle represents:\n",
+ "\n",
+ "- **`theta`**: The rotation angle for the RX gate (rotation around the
X-axis of the Bloch sphere). This angle is measured in radians and determines
how much the qubit rotates in the X direction.\n",
+ "\n",
+ "- **`phi`**: The rotation angle for the RY gate (rotation around the
Y-axis of the Bloch sphere). Like theta, it's measured in radians and controls
rotation in the Y direction.\n",
+ "\n",
+ "- **`lambda`**: The rotation angle for the RZ gate (rotation around the
Z-axis of the Bloch sphere). This parameter controls phase rotation along the
Z-axis.\n",
+ "\n",
+ "All angles are in radians, where a full rotation corresponds to 2π
radians. These parameters will be optimized to find the quantum state that
minimizes our cost function."
+ ]
+ },
{
"cell_type": "markdown",
"metadata": {},