600 lines
75 KiB
Plaintext
600 lines
75 KiB
Plaintext
|
{
|
|||
|
"cells": [
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 1,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [],
|
|||
|
"source": [
|
|||
|
"import sympy\n",
|
|||
|
"sympy.init_printing()"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 2,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [],
|
|||
|
"source": [
|
|||
|
"a, b, c, d = sympy.symbols(\"a b c d\")\n",
|
|||
|
"i = sympy.I"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 3,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [],
|
|||
|
"source": [
|
|||
|
"X = sympy.Matrix([[0, 1], [1, 0]])\n",
|
|||
|
"Z = sympy.Matrix([[1, 0], [0, -1]])\n",
|
|||
|
"\n",
|
|||
|
"M = sympy.Matrix([[a, b], [c, d]])"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 4,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAADUAAAAzCAYAAAA3v0BtAAAACXBIWXMAAA7EAAAOxAGVKw4bAAACsklEQVRoBe1ai03DQAxtEANUsEHZoIUJKBtQNgBGQEyAygbABAg2KBtU7QawAYgNynvtWQrX+yR3TbBQTnKTOHf2e2cnsawWvV6vD9kaq9Xqe0upTFEUhRM7Yb5DVpY8gFRPuwDzzMJNHrM9/HCcgUBRkuuNWvcv8P7CDbRr3EJKN/qa6ParzEfuTs28TxyPIFPs0keVtbuYA/9D2HmBjOA3+qxHScHgAsbuYOyVAM3DucCRoW+MmPHzBJdfkGPIAFJpBNMPhq9gpS+EaNHsFAk+8LqpQT+QCYTPyXMdP0FSMDSBLB0G59CNzW46bv+tKkZqDHgMvz0kr3lf3fCSqhiFA3WMAMhLCvcEsESljF+i5/2ilye3fR4iVQXLYZVJbc8JkZJouDBJFPndUje8pMyrm4BdKSa6xr5TOTvlJWWMvuE4cDiQSPG+uhEjxdKEX3N7jKBYlqJp3//T6yApgH4Eui+83s8FpXnVX+D6UnTajtHaD4AZlVuQkTQ8wfUpCLsqjZ3yg09mCp9fyRbWnPQ7h/97n7MoKZNiNz4DTerhm2Va7RFMv9rWlCzoSCkJRBRGF6noFimZ0EVKSSCiMLpIRbdIyYR/GalomSSbj5priPPKDUVZl3uE39qN1CApGGQxmdRQzCXD9fCf1EgNph+LWRaVkNoNxVxSIJTcSA2SygWWuT65kaqZ1Bib4mr+fJvN4n3nUEnKPMtOwCWl9ElKqs2pSlKAJoAlKmXgEj2+xJxDKyknWEvpbaRqJSXRsHisLyWK3kaqSlL8lBg2rhQTnbeRqpKUIZTcSNVMKrmRqpYUUjC5kRqs/ZgG+GYkNRRNCuUekhqpUVKs/XKRpa43L4zajVS16Ze6EVzXkcrZvTbXdpFqc7dzfMnbb2CX+6VSJcd+o2ttzHAmJdT/+xPjD2U+4S47RBrKAAAAAElFTkSuQmCC\n",
|
|||
|
"text/latex": [
|
|||
|
"$\\displaystyle \\left[\\begin{matrix}0 & 1\\\\1 & 0\\end{matrix}\\right]$"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
"⎡0 1⎤\n",
|
|||
|
"⎢ ⎥\n",
|
|||
|
"⎣1 0⎦"
|
|||
|
]
|
|||
|
},
|
|||
|
"execution_count": 4,
|
|||
|
"metadata": {},
|
|||
|
"output_type": "execute_result"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"X"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 5,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"data": {
|
|||
|
"image/png": "iV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IyYARlal1fgzg1uNArfNp3nsNzyT7U7/Ry7AGP8j2+YO/hNP/mmwrOMAAAAASUVORK5CYII=\n",
|
|||
|
"text/latex": [
|
|||
|
"$\\displaystyle \\left[\\begin{matrix}1 & 0\\\\0 & -1\\end{matrix}\\right]$"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
"⎡1 0 ⎤\n",
|
|||
|
"⎢ ⎥\n",
|
|||
|
"⎣0 -1⎦"
|
|||
|
]
|
|||
|
},
|
|||
|
"execution_count": 5,
|
|||
|
"metadata": {},
|
|||
|
"output_type": "execute_result"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"Z"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 6,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAADYAAAAzCAYAAADciPtuAAAACXBIWXMAAA7EAAAOxAGVKw4bAAADi0lEQVRoBe2ajVHcMBCFzxkKIEkHlw4gVADp4EgHCR1ACZmkA0gFEDo4Oki4DkIHCdfB5X1G8siyLOsOm7Ey3pm1fk7a3addSfZCMZvN9sUN2mw260bnCDuKogjaj6m/xRuPLwVslgPL7qVnO1iWr/SAPghE4fDZU/f4n7K5ZrssLm23wMaPYEsLRw+MPSReih/FbJskGj0whdqacBOaB/FdEioNGj0wB8iB6hwUSZQFMIXgiUHz33msDEXCMsldGrSXMlArNte4CzGC/4hvxQsp+qbyJQiPrWTHuVH2TuVS+rGjlThpTjQoeCHzm/hRPLdjVLeX4r7tG6qULt4suHTvqaOHUkylssnqV99ncXVBq94krRACfogvNJFTyRL1B/XhwaHJ7q9jq8+WUrxoU951eHzVRMDdeAJQFg0Db/xzmuyvlQNmZhYcmW/bBHcB+6iJdwGh7Lnko7dNeWL/e4375Y2lD/r5VDSfrcDMquCtlTcNsOzH5KPXm79tk/uL/eXSqWm02tAKzJHirwpCS7ACvxDjvaGp2t9mwVncMzeSfANagZlJAKgMl1BOHNo2NI40rlLqC++pzV6ubFCdw+xGeq9i8luBmUnHKo8E6FzMQQIgNvMb+lRei4emT1JwaGy4VJ1vxc7Pqr2YVcZrNp7doaE+9/fe6saGTiC+wi6P+eOzaU/AsnGVMXTy2OSxkazAFIojcUSyGZPHkpdqJAOz9JjeGw/E92KSqLw/Nij6rtgYPZIOvT/y1cGLcfkHiJBZWXoMIAJlcyHBj81sgQlbNNeYMzA8FvQWHt1qj8n9fGySMIXIEF2beC87hnpI71yy3YQtgMiFfInpjCZMZThzEcw4sr9lYlV1TiOyscFEa1/90oFnkhO2GtudMNUgS6TabmUs+QdLJFQGTcHJU7GEbS3XaI2yZWcoSjiewWM1twvkaytkwHLnhG3K4YFnaknTAYH4ohu6jRdZ6Gi0RIEZIaGkqW9A7+2IbsB2JmyjwBRua2Nx8G+/Us7GHpp2SthGgRmLSUwe+tYLFPH/1+/vq20WdeeEbSFD8Abp4tbLzoDAZnuHUb9yPEq7dzLh+F2C8Vp5b6okilhU+tj7gK9IczjuTztPRWZoMpfji5NZuFByNtRXsy8lFGsTcmlMwHLxlLVz8phdiVxKeyrOzdFa2T30UV4pembFt1vieFMqiXuMbxOXs/9HzH9G2QyI2L2+5AAAAABJRU5ErkJggg==\n",
|
|||
|
"text/latex": [
|
|||
|
"$\\displaystyle \\left[\\begin{matrix}a & b\\\\c & d\\end{matrix}\\right]$"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
"⎡a b⎤\n",
|
|||
|
"⎢ ⎥\n",
|
|||
|
"⎣c d⎦"
|
|||
|
]
|
|||
|
},
|
|||
|
"execution_count": 6,
|
|||
|
"metadata": {},
|
|||
|
"output_type": "execute_result"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"M"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 7,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [],
|
|||
|
"source": [
|
|||
|
"term_X = M*M + i*X\n",
|
|||
|
"term_Z = M*M - i*Z"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 8,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAOQAAAAzCAYAAACHbKQaAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAJVklEQVR4Ae2di5HUOBRFZygCGCCDJgNgI1jIYNgMFjKAIgKKzQCIgE8GMxkskAFksEAGs/e4pS75J8sfyXK3VKWxLcnSfffp82S335yfnZ1dKLbCzc3N71ZiSSgMFAYWYeD8/Lxz3J2r9u+Ku0Yr7zQgnzfSol8akK9MQxbT32VyiE59aSAxA+rrV2rycaPZ69sm4Yk6/XUjc43LN+5EINBvBeKr4v01wJQ2CwOxGFA/f+LWrb7+TNdPb7mJGZw/EzB31ngjTDulPcgAW4FQGIjOQG4DEjP5S3SpAxrQJHCheKX4SxGz/iRDTjzMwaJ7Hyh+VUSfWF7Jg9p9MdR2VgNSyzh7V/dhEgP0h9K+pWYPHIqYFT8UczDnU1NQtZcTD3Ow6N5vig8lFA9T2L+tEejPbv9uYchqQLroNJNgpl4qQuKkoDoeK2KbzwngWEuBc3Avfe8iPKypE9o2pIyaYBfCfKYJ4b7iS59ishyQImAn0OwfH0oA74ziE055zIbESWGqAic1lvFNC/Owpk4qi2dCn5qFeYxq7VPWMfdELWsHo0irnkLpmpkZ8xHTMXWYqsDUOGO3lxMPc7CwQo5aHWMT26w/2YA0A43l+rfif4qfFS810P7RsQqmDBvul2Ygko7d7V3mKRQpoMBvwvLC1M/rlythBnstqAwrOnIR7il+ULnke9+q9cA/hm+vTkxVwTwENj2nWBCWDtkYiEzur+c0PvZe4WB1ZdtE3/nu9ve+uniC+FgFsXGjROpX/KW4s23onH3ZjeKFk0YZ0mrR5o89qh72oC/G3kd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9k1+2X8F9ORWPth3JxmKXr6PkOeRbIVMft4g5NUdz2jtmfu2A7DVZ5xC30L2sxHZvulCV0avZIubopCzYwNHzO/QeckEux1Ulu39zvyfdIuZxWlm39Cnwm/MKua72S+uFgRUYKANyBdJLk4WBPgbKgOxjpqQXBlZgwO4hd3rKc+G2b97duEnlvDBQGFiIgeZ4U7XV+LPvIXeNdvAp0vWj7kaxclkYKAxMYUADknfOzV+wXf8PK23EqiUd/qMAAAAASUVORK5CYII=\n",
|
|||
|
"text/latex": [
|
|||
|
"$\\displaystyle \\left[\\begin{matrix}a^{2} + b c & a b + b d + i\\\\a c + c d + i & b c + d^{2}\\end{matrix}\\right]$"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
"⎡ 2 ⎤\n",
|
|||
|
"⎢ a + b⋅c a⋅b + b⋅d + ⅈ⎥\n",
|
|||
|
"⎢ ⎥\n",
|
|||
|
"⎢ 2 ⎥\n",
|
|||
|
"⎣a⋅c + c⋅d + ⅈ b⋅c + d ⎦"
|
|||
|
]
|
|||
|
},
|
|||
|
"execution_count": 8,
|
|||
|
"metadata": {},
|
|||
|
"output_type": "execute_result"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"term_X"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 9,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAOEAAAAzCAYAAABhRW9eAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAJfElEQVR4Ae2djZHUOBCFdykCWLgMhgyAi+Agg93L4CADKCKguAyACPjJYPciOCADyOCADPbeZ6RBI//JtiTLg1SltS3L0uunbqltj3tPT05OzpRb6fr6+nursBZUBioDsxk4PT3ttLVTtfhZeee1/EpG+NgrGzw0HTwzlWx7f1VjHqStnvyFGJCNXErcB57IVzdNwUMZy5V3curhC9dw1eF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2HGUIeD/6rC7GRmA2K7jAYONp3wkGC1QLyeoINYRmQ7iHfqtVvCIUpNKjowMgCn8KzJqojg08LMYkLoFxJBsEZd4ZtN1TR/cCuZdUcDBwv45EC8QDbXWaWiyKbb7Og8j4f9hJHY8If+OdsmRB64lAyyUzlYNueaUna5XzqYKMQT40TC/Q/lgKr7lGIs1HhynhPg/ipdIbgUiZUuKKBzEndUneMeHPxPBx1bV+jA/e2qK0GWuMGzXaAQLF11+mRbIkeKa4WTeKwv3bZ1zESGi9rcCmjbGju3/pR92lSedWvQhUNlnTo0BVNI3SW4ad9cz85ZX386l84dNTMrZPkPVFqBYgfq6vK8KQTLQJ2WbHnRB/fGg6PiAyMfAc/BAZ1vBA/dvIrWN7ZXtwLFapb4bk6yIreSBqPL3WzVi1EwEcuobDEwJWpjf59ilL3IwMhG9s3xbDhlsnuDDDrGre5NSYzQKDOrIPdWTRIQll6O7e/73MDBpQTiBesglhmy0WZJaTAYrgE6yEEOYTbO8304kgxBAZ2TxR01s8FrYWEma973acuqx6xA2UHgYGe2sO8IVWVeIF61xX3IrMDBdDqGZapstFlKMtgZAzyP5IGRl4zFmjwvwc1Y63qesJN7AzqrDgtTucF/BW52Wkrg7I7rhS0GtjoWOXBbI0zijrZGIn8BK66918zfe+3RZWCrY5ENd8r3hO5AZN2XL176bzez8rFmZ1sdi5y4j3UlXFPvat+VgUkMVCOcRFetXBmIz0A1wvic1hYrA5MYsPeEOz2pOXOvlE9cH2y4hNT9ysBCBnwbU3ONzdn3hDuvfeJ1dP342atWDysDlYFQBmSEvDf0fwF29T/nBZzMu7uvEQAAAABJRU5ErkJggg==\n",
|
|||
|
"text/latex": [
|
|||
|
"$\\displaystyle \\left[\\begin{matrix}a^{2} + b c - i & a b + b d\\\\a c + c d & b c + d^{2} + i\\end{matrix}\\right]$"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
"⎡ 2 ⎤\n",
|
|||
|
"⎢a + b⋅c - ⅈ a⋅b + b⋅d ⎥\n",
|
|||
|
"⎢ ⎥\n",
|
|||
|
"⎢ 2 ⎥\n",
|
|||
|
"⎣ a⋅c + c⋅d b⋅c + d + ⅈ⎦"
|
|||
|
]
|
|||
|
},
|
|||
|
"execution_count": 9,
|
|||
|
"metadata": {},
|
|||
|
"output_type": "execute_result"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"term_Z"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 10,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABgkAAAA/CAYAAADaByjjAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4Ae2di7XURtaFgeUAsCcDyMB4IrCdAcwfgSEDWI7Ay87ATAT2OAOYCMaQgcnAQAb337uv1Fet1qNUdeq9tZZu61GPU98+VaevqiXdv3fv3ndY32CdLx9ubm4ezw+u7d+/f/8Rzv2KlflerKXTcREQAREQAXcCGFs/IfVrjKuv3HPlTal4kJe/ahcBEWiTQG3xQLGgTT9Uq0RABPISqC0WkJbiQV6fUe0iIAJtEvCNB8j3DkS+XqDy7MHk4PfYnq7PJuc2N1HBcyT4a0hUzYWszUbppAiIgAiUQYBj8XOMs39h5WRs0YviQdHyyDgREIG6CVQTDxQL6nY0WS8CIlA0gWpiASkqHhTtSzJOBESgbgK+8eAHNHt6/Z/bp+U+/p7uJMCvVLl9eBkGfd5BwF+66g6CwwSVQQREQAS2CWCcfYgUnO3lJMFjjLUftnPkOat4kIe7ahUBEeiHQA3xQLGgH39US0VABPIQqCEWkIziQR7/UK0iIAL9ELCKByiHT7D4IWiSAIXwghXvIHiPi1ZP+pFBLRUBERCBtAQw3vJ2ME4UHHoUXCorFQ9SkVY9IiACvRMoOR4oFvTunWq/CIhAKgIlxwIyUDxI5QmqRwREoHcCFvEAZZwmCaaPG/Lh+p8hE29V0DIjQKGw3rius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OVvSTyJt3x6yjMishFtyH//OdBG9w8ZrbzguM57OOeIH7GfL+4Zyx8oRo9xs0gcy+5EwS9t9h+1turzUNaXjnAfO9naX5Cvt8x8Hj2fEmdmO
|
|||
|
"text/latex": [
|
|||
|
"$\\displaystyle \\left[ \\left\\{ a : - \\frac{\\sqrt{2}}{2}, \\ b : \\frac{\\sqrt{2} i}{2}, \\ c : \\frac{\\sqrt{2} i}{2}, \\ d : - \\frac{\\sqrt{2}}{2}\\right\\}, \\ \\left\\{ a : \\frac{\\sqrt{2}}{2}, \\ b : - \\frac{\\sqrt{2} i}{2}, \\ c : - \\frac{\\sqrt{2} i}{2}, \\ d : \\frac{\\sqrt{2}}{2}\\right\\}, \\ \\left\\{ a : - \\frac{\\sqrt{2} i}{2}, \\ b : \\frac{\\sqrt{2}}{2}, \\ c : \\frac{\\sqrt{2}}{2}, \\ d : - \\frac{\\sqrt{2} i}{2}\\right\\}, \\ \\left\\{ a : \\frac{\\sqrt{2} i}{2}, \\ b : - \\frac{\\sqrt{2}}{2}, \\ c : - \\frac{\\sqrt{2}}{2}, \\ d : \\frac{\\sqrt{2} i}{2}\\right\\}\\right]$"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
"⎡⎧ -√2 √2⋅ⅈ √2⋅ⅈ -√2 ⎫ ⎧ √2 -√2⋅ⅈ -√2⋅ⅈ √2⎫ ⎧\n",
|
|||
|
"⎢⎨a: ────, b: ────, c: ────, d: ────⎬, ⎨a: ──, b: ──────, c: ──────, d: ──⎬, ⎨\n",
|
|||
|
"⎣⎩ 2 2 2 2 ⎭ ⎩ 2 2 2 2 ⎭ ⎩\n",
|
|||
|
"\n",
|
|||
|
" -√2⋅ⅈ √2 √2 -√2⋅ⅈ ⎫ ⎧ √2⋅ⅈ -√2 -√2 √2⋅ⅈ⎫⎤\n",
|
|||
|
"a: ──────, b: ──, c: ──, d: ──────⎬, ⎨a: ────, b: ────, c: ────, d: ────⎬⎥\n",
|
|||
|
" 2 2 2 2 ⎭ ⎩ 2 2 2 2 ⎭⎦"
|
|||
|
]
|
|||
|
},
|
|||
|
"execution_count": 10,
|
|||
|
"metadata": {},
|
|||
|
"output_type": "execute_result"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"sympy.solve(term_X)"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 11,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABMIAAAAmCAYAAAAm7TcnAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAWSElEQVR4Ae1di7UcNRa0OQTg9UaAycBmIwAysCGCtTMwhwh8vBkYImAhAzuDBWcARIB5GXirxrfHPf1a3fpLrSmdo9fdakn33rqlejN6PfPu3rlz5zHqz6jz8uz9+/c/zBvWzu/evfsc7c9Qn6D/27U+ahMCQkAIpCAAnXmK8d+hvvTRpRRbMWOlgzGoaYwQuC4EetcxZkNadl2cVLRCIAaB3rVMOhaTVY0RAsdCIFSH0P8VIuT7yXn5x11ccSPsW7zBfDK/s3WOyR7g/mvUG1Rugv2x1V/3hIAQEAIpCEBzqFMvUak5X0JzeGxapINN4ZdxIXA4BHrUMYIoLTscleSwEGiKQI9aJh1rSgkZFwLVEUjRIYz9Gw5/FrwRZkLzGwa/Cdk8q46ODAoBITAUAtCeewiI2nMH2vN5y+Ckgy3Rl20hcFwEetIxoigtOy6X5LkQaIlAT1omHWvJBNkWAu0QiNUhjDtthH0S4TqfyuAb0n9HjNUQISAEhEAUAvYUGD+K/QACtny8NWrOhEHSwQTwNFQIXCsCnekY0yAtu1YyKm4hkIBAZ1omHUvIpYYKgaMikKpDMRthDwHWWzN8VNzktxAQAgdEALrzxtx+1Nh96WDjBMi8EDgqAh3pGCGUlh2VSPJbCDRGoCMtk4415oLMC4FWCKToUMxG2H0Equ8Es2zjyZSHqO+3aitiyK4QKIWA8f7lFu9z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4n5htIxw0yvqWzfZeJO7JH8Q43mLsZG6SH
|
|||
|
"text/latex": [
|
|||
|
"$\\displaystyle \\left[ \\left\\{ a : - \\sqrt{i}, \\ b : 0, \\ c : 0, \\ d : - \\sqrt{- i}\\right\\}, \\ \\left\\{ a : - \\sqrt{i}, \\ b : 0, \\ c : 0, \\ d : \\sqrt{- i}\\right\\}, \\ \\left\\{ a : \\sqrt{i}, \\ b : 0, \\ c : 0, \\ d : - \\sqrt{- i}\\right\\}, \\ \\left\\{ a : \\sqrt{i}, \\ b : 0, \\ c : 0, \\ d : \\sqrt{- i}\\right\\}\\right]$"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
"⎡⎧ ____⎫ ⎧ ____⎫ ⎧ \n",
|
|||
|
"⎢⎨a: -√ⅈ, b: 0, c: 0, d: -╲╱ -ⅈ ⎬, ⎨a: -√ⅈ, b: 0, c: 0, d: ╲╱ -ⅈ ⎬, ⎨a: √ⅈ, b:\n",
|
|||
|
"⎣⎩ ⎭ ⎩ ⎭ ⎩ \n",
|
|||
|
"\n",
|
|||
|
" ____⎫ ⎧ ____⎫⎤\n",
|
|||
|
" 0, c: 0, d: -╲╱ -ⅈ ⎬, ⎨a: √ⅈ, b: 0, c: 0, d: ╲╱ -ⅈ ⎬⎥\n",
|
|||
|
" ⎭ ⎩ ⎭⎦"
|
|||
|
]
|
|||
|
},
|
|||
|
"execution_count": 11,
|
|||
|
"metadata": {},
|
|||
|
"output_type": "execute_result"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"sympy.solve(term_Z)"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 12,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAHkAAAA/CAYAAADE+2c4AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAGKElEQVR4Ae2cgXHbOB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{\\sqrt{2}}{2} & \\frac{\\sqrt{2} i}{2}\\\\\\frac{\\sqrt{2} i}{2} & - \\frac{\\sqrt{2}}{2}\\end{matrix}\\right]$"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
"⎡-√2 √2⋅ⅈ⎤\n",
|
|||
|
"⎢──── ────⎥\n",
|
|||
|
"⎢ 2 2 ⎥\n",
|
|||
|
"⎢ ⎥\n",
|
|||
|
"⎢√2⋅ⅈ -√2 ⎥\n",
|
|||
|
"⎢──── ────⎥\n",
|
|||
|
"⎣ 2 2 ⎦"
|
|||
|
]
|
|||
|
},
|
|||
|
"execution_count": 12,
|
|||
|
"metadata": {},
|
|||
|
"output_type": "execute_result"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"sqrt_miX = sympy.Matrix([[-sympy.sqrt(2)/2, i*sympy.sqrt(2)/2], [i*sympy.sqrt(2)/2, -sympy.sqrt(2)/2]])\n",
|
|||
|
"sqrt_miX"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 13,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAIIAAAAzCAYAAABbldAtAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAFn0lEQVR4Ae1ci1EbMRC1MymASTpwOgBSQUwHkFQQ6IAMFTCkA+iAgQ5CKkigA+ggxB047120Hvm8ts/2rVayTzPCd5JO2s/b1edu6fd6vT3kmTQej0czhV1B8RLo9/uqvt+As0fkv7V85c0xCN5HHi/K3jQWOv5dTdfU/R2BwHQED9CP8tn/Yte/BONBRFNMX3XtSl2hg0OeU7oGG5WuBQhZsUVvQIJA9FNWhG0xMVkCAfK+QHafnrZY7zOsvZ0pcS6ANxiAhAG8wUOdFNSdo+wD6nKYuurkNb4HHwLyP+QH+Qo8vTTuwKBhdkAAj99C1tglAO61ilLKAAIuzi+h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zJ8sHmsnbbXG+2Uwg6aBwhZuURRMli/bEyxUtwbtzaBEVsEt3VhlxWihAz8QgNuWDQy1YmgIDbNfkcT40LCW2uLQSAvgfod6UIMSsgiNVrfIq3cIvq0YiSMgiRnsozuqsiZUM6Vo4QMwECtitZR/WI0rVf0o5y1Yq19vUyPF99hwlFcicgnmHqI13UzY3ukv42oSM8u1KEmNUagfxkG9Ujwrb8DcrYJLqrDfI4PS0MIJJBLIGQbVSPMJ/gV47XJ6eG8AYMbmmknE3oC1MLX2vfsh/cCy1qt2ZAgEVkG9WjSsKgEDLgNLFOdFcb1KwUIWayRoi4yDKqJ6IvxSUtcYjcOLqrDaIAwpUixEyBEObJiVtsg8HS+ggK4VG7bCenFo6W/GDsxhFiZlODJYMF9p19dFcHhASogmVmH91lOjUkkHExQwAMWUd3CRAGYbsxESwI194TTOq7izIlUNczuKje+fCzZv7jiUGNrRsAgV+1dGnLJAAg/ABL3MXE6eEf3zdR3upFKMEAAAAASUVORK5CYII=\n",
|
|||
|
"text/latex": [
|
|||
|
"$\\displaystyle \\left[\\begin{matrix}- \\sqrt{i} & 0\\\\0 & - \\sqrt{- i}\\end{matrix}\\right]$"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
"⎡-√ⅈ 0 ⎤\n",
|
|||
|
"⎢ ⎥\n",
|
|||
|
"⎢ ____⎥\n",
|
|||
|
"⎣ 0 -╲╱ -ⅈ ⎦"
|
|||
|
]
|
|||
|
},
|
|||
|
"execution_count": 13,
|
|||
|
"metadata": {},
|
|||
|
"output_type": "execute_result"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"sqrt_iZ = sympy.Matrix([[-sympy.sqrt(i), 0], [0, -sympy.sqrt(-i)]])\n",
|
|||
|
"sqrt_iZ"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 14,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"data": {
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U/RWRHZ5FyujDwgCqnGlpsiCivTZ0tZyunMR2RqT+jBLkT4rPJP2nYvIqYlZ+rIU6bPCg/GqIrLlbNJDpG6WIn3rmhfrAYxWFZFj5/OMT16kzwqPzgBg5yKyx/mo03xwQEHSIn3utI1yeOiDC7yIO1TgFXgRBCKGlsiLgCdP27nZ0O5VmafT/vuUD5pswEJe63b//biFwO6XgMdtRulggHbd4EPh9T/4YPuB61VlTAAAAABJRU5ErkJggg==\n",
|
|||
|
"text/latex": [
|
|||
|
"$\\displaystyle \\left[\\begin{matrix}0 & - i\\\\- i & 0\\end{matrix}\\right]$"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
"⎡0 -ⅈ⎤\n",
|
|||
|
"⎢ ⎥\n",
|
|||
|
"⎣-ⅈ 0 ⎦"
|
|||
|
]
|
|||
|
},
|
|||
|
"execution_count": 14,
|
|||
|
"metadata": {},
|
|||
|
"output_type": "execute_result"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"sqrt_miX**2"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 15,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAEIAAAAzCAYAAAAjKt6MAAAACXBIWXMAAA7EAAAOxAGVKw4bAAADZElEQVRoBe1bi5HTMBC1GQq4gQ5CB3wqINcBRwdABzCpgDk6ODpgSAc5KmDuOjg6IJMOwntm90ZyZEtrK87EI80osWVpd9/TriJrJ3VVVReoB2W/3+8OGmfQUNd1EC+hPaDuW/UGRFRzrMC5aWEl9s0TfLBcAnTt1E//m+f3CYweViBssCoR80NsRPTU2L9CjH3GmBdg9uReA1uuxf6/tAn1Gnb9kTbTl5kISCcBa5OWI3QGCXcQ+xXAG1tkEbzDN13fTIaZCCgh8yctAPsRBlwoCTQG1zu0k5Qb1Eu2Wcq5rhFXAHkfAPobbUvxjsDj7qZzJWIJSNsALN378LmpJIWGMEx3ZFg8wA2/mbRk7Jw428+sKlM9YiXgf0LByqokc38FqbPvilcv6dw9up3d6ygRmIEFBjD2WBib5hW5GTntx3OruigRELh1VmeGxw+rksz9ddZDYtVbuK8wlSgR/FmiRHjGO5H83aQhc2e1B2JD7q9tZq+NEuHg4NqwdgxxHk1+eQuNDNl2UY/gc1NJIkJW6peQ3IQF7nVra1KWsTMX7dcBea/Qdj9kspKIUKVQsJbFk6/uJyuwg+G5dcKVocuweI/6YYhhSfsIKL6FIla+cO3EkCH6co7h7K9gk4bIG9y/hW2hHWdUbxIRlAIF5v17VPuIDrCHi/iXESK8oamh4Q2a400hQma1EFGI8AO8eETxiOIRPgPFI3w+yhpRPML3iKQtNvbz+rY5OpHiq5/mTt6RepNSUSIgJGsiZRroB1qiSaleIkBC9kTKgYkTNOAFLZqUii2W2RMpE+AepCJGxBJSQ4elfAVm4fNZlM7QQFjoQWgfUD0j7Otzkmdif3JSqs8jFKTOvgtIvSSFLHfclNempFQfESlGmxMpKULH9oE3LCDDlJTqDA0I0lkP2aXeYk6khISF2sS1f+GZxeuu5MyynZSKHul1EsEzQRhDG0OGaJs5kRICHWqTM0ke0JqLjDUlpWKhkT2RYkY1bkByUipGRPZEyjhc6aMltJKTUr1EwMWyJ1LSoYzu2WTCgCEpKdW5RjhmZE2kOHKPegkCTEmpKBGy8ERX3aOiGigcticnpXpDY6D+sxxWiJBpK0QUIvwILh4hfOivxkI2II80ya/F4/1cLto4gUtfF8ofV0DG5h8Y3m3ea2xiTwAAAABJRU5ErkJggg==\n",
|
|||
|
"text/latex": [
|
|||
|
"$\\displaystyle \\left[\\begin{matrix}i & 0\\\\0 & - i\\end{matrix}\\right]$"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
"⎡ⅈ 0 ⎤\n",
|
|||
|
"⎢ ⎥\n",
|
|||
|
"⎣0 -ⅈ⎦"
|
|||
|
]
|
|||
|
},
|
|||
|
"execution_count": 15,
|
|||
|
"metadata": {},
|
|||
|
"output_type": "execute_result"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"sqrt_iZ**2"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 16,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAP4AAAA/CAYAAADAInVAAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAKjUlEQVR4Ae1di5HVNhTdZbaADSVABxA6WDpgJxXs0gGZVMCQDqAF0gHQAdABdBCyHWzOEZaR9XRt/SxLlj3jZ0uWdO8519f6WM86Pzs7u8L+Abu9fb+/v39sRx7hg4GDgTYYOD8//wJNnzi0vb4wIp8b5zz9YYWP4MHAwUBbDNxA3YeWyqqSHx0ftftHK0G1QTzJ7nMpB9znucpauxzgfg8ZL1xyWsLh0j8mTroPWuNCwhHDiYkd51/tMiDrjnEP7Au1h6H4LXR8SYA59trxav0G3B8kzDpdL8e5+6AlDuZwSLaei/fFPtb4vhlypAPYS5TzEAC+R5R3jXx2tySomET5QbIyJj7BLeGQ4jPqUkNREz4axjzBEUNsDPatavy/ANDZZJ0DDoCvcP3tXBrPa1HyPcvOnmwGt4RDis+u2xYFCnw0h1nAEUNpMHb2b9WoPpsPMRJL5gFRbOom1fYl9c0lq1fcEn974WMLHJD5H3i92arGl2wqxkPhXLW9KKPGC73ilmyxFz62xlG0jw+wbF3wveIz1NzXknHteOTjmMDz1No+Vr6tT6mwhFvCIcWX0ndtOS4+WsTswhHDXSp2OiN86p4/q+6Q8wY7nZiv4y5NeQg/wn5rxulzxDPflQ7HHodynPJjy0zNB52CcUs4pPhUHUvmD+WjVsyhOGI4jsGOPGzqq/G1Io4/EEGno9BvJlCEqQOd2/VAYB727ZMeSiiDDuaUn1p2bH7oE4xbwiHFx+q2Rb5QPmrFHIojhutY7MinHL/44B6aJ5w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6we96PjV/i23utVFbQI9wnvA4AHTK0mPXFSNObrGx5ODTbPqFtNEM4mYnBt05hsCdm3s7eEQ4fqaz+JiiSjX+TdhW8ia4Tnca8q1yy7FxRzePdvZ5luH5/jQaXgEN6rGj3Z8s7DWz0FG9qZ+65zsUf/Dzr8cv6pR/T3ebAemg4EaGbioUSnqhKczuxL8vzE3zuzitqtFMnvA+NNs099ecZOFWrBX6/jgqPhCgtPbs0ioB4wuInvFTS6qwF5zU7/4QoKuO3TluB4wuijsFTe5qAJ7zY7/EiTtfZHMHjC6HL9X3OSiCuzVNvXxemL8rt5w55CwtRbJvEPZ3ItuhTEWxTYnbEPcm9jZ5GJD7KYaZ9U6vqklBkQ4fZev3FZZJBPG6GaxRJPXGs7Xtq2JsQY7m/qUxG7K5XnNTX2lK8jhiD7/q7/bRTJ7wKiMaf30ips0bI296hpfk4MntfrAJsKs+Xe1SGYPGC1/V8FecRN8DdirrfEHcjjFdreLZPaAUXm59dMrbtJQC/Zqp+yCIM4p5iSeyYbaX5yLP0nYQKAHjC4z9IqbXGyNfZBf7b/z+IGA3S+S2QNGl+P3iptc1IJ9bOrjSXBv7fxP/LEdDBwMNMoA/PmL5dPqY7aEw2Yzm9O/M2BtP/B0OvnWnZXmCB4MHAxUygCcnoPh+i/nppaf/wfk7BIal8UrlgAAAABJRU5ErkJggg==\n",
|
|||
|
"text/latex": [
|
|||
|
"$\\displaystyle \\left[\\begin{matrix}- \\frac{i \\sqrt{- i}}{2} - \\frac{\\sqrt{i} i}{2} & - \\frac{\\sqrt{i}}{2} + \\frac{\\sqrt{- i}}{2}\\\\- \\frac{\\sqrt{i}}{2} + \\frac{\\sqrt{- i}}{2} & \\frac{\\sqrt{i} i}{2} + \\frac{i \\sqrt{- i}}{2}\\end{matrix}\\right]$"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
"⎡ ____ ____ ⎤\n",
|
|||
|
"⎢ ⅈ⋅╲╱ -ⅈ √ⅈ⋅ⅈ √ⅈ ╲╱ -ⅈ ⎥\n",
|
|||
|
"⎢- ──────── - ──── - ── + ────── ⎥\n",
|
|||
|
"⎢ 2 2 2 2 ⎥\n",
|
|||
|
"⎢ ⎥\n",
|
|||
|
"⎢ ____ ____⎥\n",
|
|||
|
"⎢ √ⅈ ╲╱ -ⅈ √ⅈ⋅ⅈ ⅈ⋅╲╱ -ⅈ ⎥\n",
|
|||
|
"⎢ - ── + ────── ──── + ────────⎥\n",
|
|||
|
"⎣ 2 2 2 2 ⎦"
|
|||
|
]
|
|||
|
},
|
|||
|
"execution_count": 16,
|
|||
|
"metadata": {},
|
|||
|
"output_type": "execute_result"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"H_ = sqrt_miX * sqrt_iZ**3 * sqrt_miX\n",
|
|||
|
"H_"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 17,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAQUAAABNCAYAAACv6nEkAAAACXBIWXMAAA7EAAAOxAGVKw4bAAARPklEQVR4Ae2dibXVthaGgUUBQCoIdMBQQUgHJKkA6AAWFbBCB0AFCXSQpIIEOoBXwXu5Hdz3f7q28aDZso/tI62lc2wNe5K0tbUl29cvLy+v1bAPCVy/fv2WKL2jNvuq67tQzfU+qK9U7kUCN9S57iteOuKHvTByJnT+LD4/qa3+1f+viv87E74rmwUloP7zxTHejYVws4frja6/9O65nD0LCTmK5almtIsR7HqbIQHJ8XaoWpV5SEJnn8+EMg4/KuEJiX2l8La0Kdp0zpdVIYzln38vmbKEeKj41dNeL5X/l8r+UGWfL+uj1lSfeDfmTX2FJKMUbowzS903CqG4oilF307hsFx4rEb9U/9PJONnNj4aZYFiqMs/m4BqmlcCiygFddbHYG06r5eAmpkkgT8l049NDbT9W1ftRvYXaguj/V3lanqVwFgCiygFIaGzMlOtHrBQFK2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8EyKavLr7EC2qWnBtCWiA/KsBfTsXbzPAOK6evfSIxS1cfEjFHP6JrWMrJzgsG5JeuIucBOt71cu2FgTjOLsPYibkkLHJfnNpPj6Ut7l179ICFM8cppn7nkkOoi2uEBpZTHZHUmUknl1WQggUcvo5VCg2f9fLBwkx6JCJFcQpy4X4UMe2OpzG6eKBWZVP9u3ifAUDn4Gg+MEif3wA2c8bAFf1bWa4BZU7KUCju2JijvDgV5kosUj8yCnJuvCRt2ulIMYm60WEqzhba/uEtkDehI9MHK51Zya4xav5voz8UNi/5FDgGmA5sFTHR2MSSPq
|
|||
|
"text/latex": [
|
|||
|
"$\\displaystyle \\left[\\begin{matrix}\\frac{i \\left(- \\sqrt{i} + \\left(- i\\right)^{\\frac{5}{2}}\\right)}{2} & - \\frac{\\sqrt{i}}{2} + \\frac{\\sqrt{- i}}{2}\\\\- \\frac{\\sqrt{i}}{2} + \\frac{\\sqrt{- i}}{2} & \\frac{i \\left(\\sqrt{- i} + \\sqrt{i}\\right)}{2}\\end{matrix}\\right]$"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
"⎡ ⎛ 5/2⎞ ____ ⎤\n",
|
|||
|
"⎢ⅈ⋅⎝-√ⅈ + (-ⅈ) ⎠ √ⅈ ╲╱ -ⅈ ⎥\n",
|
|||
|
"⎢───────────────── - ── + ────── ⎥\n",
|
|||
|
"⎢ 2 2 2 ⎥\n",
|
|||
|
"⎢ ⎥\n",
|
|||
|
"⎢ ____ ⎛ ____ ⎞⎥\n",
|
|||
|
"⎢ √ⅈ ╲╱ -ⅈ ⅈ⋅⎝╲╱ -ⅈ + √ⅈ⎠⎥\n",
|
|||
|
"⎢ - ── + ────── ───────────────⎥\n",
|
|||
|
"⎣ 2 2 2 ⎦"
|
|||
|
]
|
|||
|
},
|
|||
|
"execution_count": 17,
|
|||
|
"metadata": {},
|
|||
|
"output_type": "execute_result"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"H_.simplify()\n",
|
|||
|
"H_"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 18,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAGkAAAA/CAYAAADjVebQAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAF6UlEQVR4Ae2ci5EUNxCGb68IAF8IOANwCEsGEMJBBnYRgYsQcAoXAnYG4AwgBHwZrL9/kFQa3bzVmodqp0o3kkZq9d+/WjOrx51ubm7OhM+E9Pp+uVx+TTOv6TIWOJ1OX5H8skP622dR5usoruiPJH1NlrXAPeLvkiYa5wkk4TV/JwWyk/SOy5gQ2j2Nldnjc7A9oNebMd2m4qPcv6ks2nhU3m36wCpNA++Q9V5KDgWr9taU47B9HsLln1noFTzJQlgi4y2KpkNoUuSwyVWxFSGJnvY75v8kCog/5/ZBca4XP2839xDYuLJLH+YWY5PSa+E70xY2u+iPSUCehoJGFvFPPq670oRvcd6R4ugesHk8sf6W+JD1H6F575mShFB50RuvOHExc47S8iblvfR5R7mjcwub9HZYiuBDdkOS6XDnXP81ysfvovc09kVojnz1YBOkVfDN8iSUkie86+r95H8khF41UGaXw10uNudZsoEJPuTMH+5EAEFKyM+fxyQoTWiN1/FzB0C/qL+lddNyW6TRKQtbCXzoNJ8kbzwqawrjo087BfVB0Pue4Zk8UL+gW+TGMvYQR7/Z2Bx+c3zokkWSvjiCN8nwhF4v4pkAPHgSiMujXvj0nu7oNQtbRJA5PnRZTpJTTMNW403ce72IZ76HiRgfVH63HoVuk7BFBGmE8Nh0N8GHnGyS1OMkREqFXpR6hSsjr2uFtNye0ug6CZsjSTZoYVPaAg9yGpI0uakXpoaq2ROdfJaqx90RXlH/O/dqrj1gQweRdP8s06p/UF+/i6oiyNlkN9iyPCmT4Gv1EQvM9iQqaNw1v5YMs9ZK7B3b5OFuD8a0JsfL2zu2W6/o9b5fC0z2pCEI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/YH+sEpfGH4Q7W0s31Wiu6XitZAPt/TTmg6WZ00nCkyG8duvygh4Tp+o7n1yxDC0CQfrrcdYj88j/xBryWF0SjzAAAAABJRU5ErkJggg==\n",
|
|||
|
"text/latex": [
|
|||
|
"$\\displaystyle \\left[\\begin{matrix}\\frac{\\sqrt{2}}{2} & \\frac{\\sqrt{2}}{2}\\\\\\frac{\\sqrt{2}}{2} & - \\frac{\\sqrt{2}}{2}\\end{matrix}\\right]$"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
"⎡√2 √2 ⎤\n",
|
|||
|
"⎢── ── ⎥\n",
|
|||
|
"⎢2 2 ⎥\n",
|
|||
|
"⎢ ⎥\n",
|
|||
|
"⎢√2 -√2 ⎥\n",
|
|||
|
"⎢── ────⎥\n",
|
|||
|
"⎣2 2 ⎦"
|
|||
|
]
|
|||
|
},
|
|||
|
"execution_count": 18,
|
|||
|
"metadata": {},
|
|||
|
"output_type": "execute_result"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"H = sympy.Matrix([[1, 1], [1, -1]]) / sympy.sqrt(2)\n",
|
|||
|
"H"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 19,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [],
|
|||
|
"source": [
|
|||
|
"phi = sympy.symbols(\"phi\")"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 20,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAAgAAAAVCAYAAAB7R6/OAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAARUlEQVQoFWNgYGAoA+K7UGyEhc/QCRR0+f//PwMyBoqBxZmADLxgVAEkeEbDgchwYIEmp5mMjIwgZigQuwBxOhALAfFuAP68FOR8/BSoAAAAAElFTkSuQmCC\n",
|
|||
|
"text/latex": [
|
|||
|
"$\\displaystyle \\left[ \\right]$"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
"[]"
|
|||
|
]
|
|||
|
},
|
|||
|
"execution_count": 20,
|
|||
|
"metadata": {},
|
|||
|
"output_type": "execute_result"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"sympy.solve(sympy.exp(i*phi)*H_ - H)"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 28,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAQoAAABSCAYAAACsYZrnAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAUn0lEQVR4Ae2dYZLVNhLHM1P5vAWkag/A3oBsTpDkBoScgHADqJyACjcg3CBwA8gJErgByfetyobaC8z+f0J+yLIky7b8LD+rqzy2pVaruyW1Wi09z9XNzc1nR4Srq6t7kvt7Xe91fanrJ+niD90bNA00DXgauFrbUGhAvlSdD1XPB6/uTV/F19/i6TZM6PmWbm/1/q9NmQpUXqv+Aqy2pAvWwKqGwnbyJxqAVc3U1jBgKK66tlUartVtpdVm0O6KL4zt17Xx1umu3S9fA9driWiNxPPajATy2gH3TDze57276/EO7zWB1d8T8YSxaNA0sIkGrjVI7um6iVyzOqdofYM06uRvNpEqo1LxxuB7Z3mFzw92UGaUPi+K1eMH8WoM23lrb7UdQQPqW+91Be0A8n/uKOGZngnsuTB3yfBcRL51CdX2LKW8Fk/fYRz0/FjPT7fiUfVjkINGQPx1yyP4A+/VVnzutV7plxjUHdvWLOWYxOb27b2qYYzvnwIIjGHTL11DUWSZoEb5QcT/2EFDMOh+EL9f6P5e/P6s+9nB6uu16v8uVbny8X4wavf13IxFSlnDvAdK+km6Iwfv8SEPDT5pINT/rb4GhuJTqZEnEThZ6AAqHR6PIgl0eCG8E4OLLbvPj94fiy4eUhC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wcJFcDGGQsrAHTOuGPfueZF2WuElGqADj30Ydgn9aFm1PTGRm9AVLbSfjD89VoMxCgfnqZ4Jei6CizEU0gL/HOetOsc5osGLlH7phdUGuMOb/OtDWzcf2x3sbpF2Abp/iIx
|
|||
|
"text/latex": [
|
|||
|
"$\\displaystyle \\left[\\begin{matrix}\\frac{i \\left(\\left(- i\\right)^{\\frac{9}{2}} + \\sqrt{i}\\right)}{2} & \\frac{\\left(- i\\right)^{\\frac{5}{2}}}{2} + \\frac{\\sqrt{i}}{2}\\\\\\frac{\\left(- i\\right)^{\\frac{5}{2}}}{2} + \\frac{\\sqrt{i}}{2} & \\frac{i \\left(- \\sqrt{i} + \\left(- i\\right)^{\\frac{5}{2}}\\right)}{2}\\end{matrix}\\right]$"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
"⎡ ⎛ 9/2 ⎞ 5/2 ⎤\n",
|
|||
|
"⎢ⅈ⋅⎝(-ⅈ) + √ⅈ⎠ (-ⅈ) √ⅈ ⎥\n",
|
|||
|
"⎢──────────────── ─────── + ── ⎥\n",
|
|||
|
"⎢ 2 2 2 ⎥\n",
|
|||
|
"⎢ ⎥\n",
|
|||
|
"⎢ 5/2 ⎛ 5/2⎞⎥\n",
|
|||
|
"⎢ (-ⅈ) √ⅈ ⅈ⋅⎝-√ⅈ + (-ⅈ) ⎠⎥\n",
|
|||
|
"⎢ ─────── + ── ─────────────────⎥\n",
|
|||
|
"⎣ 2 2 2 ⎦"
|
|||
|
]
|
|||
|
},
|
|||
|
"execution_count": 28,
|
|||
|
"metadata": {},
|
|||
|
"output_type": "execute_result"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"H__ = H_ * sympy.exp(i * sympy.pi )\n",
|
|||
|
"H__.simplify()\n",
|
|||
|
"H__"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "markdown",
|
|||
|
"metadata": {},
|
|||
|
"source": [
|
|||
|
"Some other calculatuions:"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 30,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAAcAAAAOCAYAAADjXQYbAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAo0lEQVQYGX2QARGCQBBF9xgDkAErGMEIWEEb0AEaaAVtYATHCFhBGpzv3+ydDCPuzGd3///HfbAYo81hZh04i6sYlnWCmEQGOdbq18ni/StuZAsh1LQj2IKRqwa6paS03u/eM781CxWnGogHUB3AK03+qLOTXdG7spfBrHXxa56JT8Rr3tVzIKXVK9tEesD8nTsEGW8ecNRefh/knV2YMF0kfgByKG0w9dMLeQAAAABJRU5ErkJggg==\n",
|
|||
|
"text/latex": [
|
|||
|
"$\\displaystyle i$"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
"ⅈ"
|
|||
|
]
|
|||
|
},
|
|||
|
"execution_count": 30,
|
|||
|
"metadata": {},
|
|||
|
"output_type": "execute_result"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"sympy.exp(i * sympy.pi/2)"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 31,
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAPIAAAA/CAYAAADaHpXOAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAKoklEQVR4Ae1djZXWKBSd8VjArCVoB7p2MNuBnq1gtAP3bAV73A7cFtwOdDtQO9AO1p0OZu+NwBACCRAIPyHn5Au8AO/dCy9Aki9cXlxcXGP/gN3cvt3d3T0xhSM+GBgMlGHg8vLyMzQ/tWh/+VAT/qKFGfxuxEd0MDAYKMvADdQ/MkyYOmHlyOh9PxoJikdxBbqzGQFbL23yWmUuHDH2toAde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uLE19579zlxJflFU0YzPc/+VLIbEPv7Hx/epaw4ciZse+ttt65y4FPlJns30+zOoTDdr8w2wywFjkzdo2GqGDv3OXEp4bW8Ow7Y+d/jMc2GBgMVMIA/POz4aPT55NoHoe6HAL/zIixfccV5IshG9HBwGCgEANwYj7KlX/V1a349D99FU5F4g7rvwAAAABJRU5ErkJggg==\n",
|
|||
|
"text/latex": [
|
|||
|
"$\\displaystyle \\left[\\begin{matrix}- \\frac{\\sqrt{i}}{2} + \\frac{\\sqrt{- i}}{2} & \\frac{\\sqrt{i} i}{2} + \\frac{i \\sqrt{- i}}{2}\\\\\\frac{\\sqrt{i} i}{2} + \\frac{i \\sqrt{- i}}{2} & - \\frac{\\sqrt{- i}}{2} + \\frac{\\sqrt{i}}{2}\\end{matrix}\\right]$"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
"⎡ ____ ____⎤\n",
|
|||
|
"⎢ √ⅈ ╲╱ -ⅈ √ⅈ⋅ⅈ ⅈ⋅╲╱ -ⅈ ⎥\n",
|
|||
|
"⎢ - ── + ────── ──── + ────────⎥\n",
|
|||
|
"⎢ 2 2 2 2 ⎥\n",
|
|||
|
"⎢ ⎥\n",
|
|||
|
"⎢ ____ ____ ⎥\n",
|
|||
|
"⎢√ⅈ⋅ⅈ ⅈ⋅╲╱ -ⅈ ╲╱ -ⅈ √ⅈ ⎥\n",
|
|||
|
"⎢──── + ──────── - ────── + ── ⎥\n",
|
|||
|
"⎣ 2 2 2 2 ⎦"
|
|||
|
]
|
|||
|
},
|
|||
|
"execution_count": 31,
|
|||
|
"metadata": {},
|
|||
|
"output_type": "execute_result"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"sqrt_miX * sqrt_iZ * sqrt_miX"
|
|||
|
]
|
|||
|
}
|
|||
|
],
|
|||
|
"metadata": {
|
|||
|
"kernelspec": {
|
|||
|
"display_name": "Python 3",
|
|||
|
"language": "python",
|
|||
|
"name": "python3"
|
|||
|
},
|
|||
|
"language_info": {
|
|||
|
"codemirror_mode": {
|
|||
|
"name": "ipython",
|
|||
|
"version": 3
|
|||
|
},
|
|||
|
"file_extension": ".py",
|
|||
|
"mimetype": "text/x-python",
|
|||
|
"name": "python",
|
|||
|
"nbconvert_exporter": "python",
|
|||
|
"pygments_lexer": "ipython3",
|
|||
|
"version": "3.7.3"
|
|||
|
}
|
|||
|
},
|
|||
|
"nbformat": 4,
|
|||
|
"nbformat_minor": 2
|
|||
|
}
|