"
]
},
"execution_count": 1,
@@ -214,27 +228,11 @@
"\n",
"InfoTable('mindquantum', 'numpy')"
]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "## 作业\n",
- "\n",
- "设上图中的多控制U门为$U = R_x(\\frac{\\pi}{5})$,请用MindQuantum验证多控制$R_x$门可以分解为多个Toffoli门和控制$R_x$门(验证线路矩阵等价)。"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": []
}
],
"metadata": {
"kernelspec": {
- "display_name": "Python 3 (ipykernel)",
+ "display_name": "Python 3.9.13 ('mq')",
"language": "python",
"name": "python3"
},
@@ -248,11 +246,11 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.9.7"
+ "version": "3.9.13"
},
"vscode": {
"interpreter": {
- "hash": "acc57148d012b3a87b6bd94e84aac5f0597fe9bee67f87efb58a2afa0e5376ad"
+ "hash": "6ea26b0ca9703e45d22ca948baff99d1d70a8502b08bee4ef4c347bc7486a73d"
}
}
},
diff --git a/vqc.ipynb b/vqc.ipynb
index 1011f0f4c832b93f1f470fc2cbccc89af8c5e2e4..c182f08025deb3243d830c45d992264650a69844 100644
--- a/vqc.ipynb
+++ b/vqc.ipynb
@@ -1,5 +1,16 @@
{
"cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "\n",
+ "\n",
+ "| Author |\n",
+ "| ------ |\n",
+ "| [@zhuyikang](https://gitee.com/zhuyikang) |"
+ ]
+ },
{
"cell_type": "markdown",
"metadata": {},
@@ -54,61 +65,7 @@
},
{
"data": {
- "image/svg+xml": [
- ""
- ],
+ "image/svg+xml": "",
"text/plain": [
""
]
@@ -149,61 +106,7 @@
"outputs": [
{
"data": {
- "image/svg+xml": [
- ""
- ],
+ "image/svg+xml": "",
"text/plain": [
""
]
@@ -407,16 +310,16 @@
" Version | \n",
" \n",
"mindquantum | 0.7.0 |
\n",
- "mindspore | 1.8.1 |
\n",
+ "mindspore | 1.9.0 |
\n",
"\n",
" System | \n",
" Info | \n",
"
\n",
- "Python | 3.9.7 |
OS | Linux x86_64 |
Memory | 16.72 GB |
CPU Max Thread | 8 |
Date | Tue Nov 29 14:23:41 2022 |
\n",
+ "Python | 3.9.13 |
OS | Linux x86_64 |
Memory | 8.2 GB |
CPU Max Thread | 6 |
Date | Tue Nov 29 21:48:06 2022 |
\n",
"\n"
],
"text/plain": [
- ""
+ ""
]
},
"execution_count": 1,
@@ -447,7 +350,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.9.7"
+ "version": "3.9.13"
},
"vscode": {
"interpreter": {