-
-
Save dmasotti/304468a7bc7a73e229140c27322705ee to your computer and use it in GitHub Desktop.
Dirac notation (bra/ket) LaTeX commands for use in Jupyter notebooks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"$$\\newcommand{\\ket}[1]{\\left|{#1}\\right\\rangle}$$\n", | |
"$$\\newcommand{\\bra}[1]{\\left\\langle{#1}\\right|}$$\n", | |
"\n", | |
"$$\\bra{\\Psi}\\Omega\\ket{\\Psi}$$\n" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"$$\\newcommand{\\braket}[2]{\\left\\langle{#1}\\middle|{#2}\\right\\rangle}$$\n", | |
"$$\\braket{\\Psi}{\\Psi}$$\n", | |
"\n", | |
"$$\\braket{\\frac{\\Psi}{2}}{\\Psi}$$" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python [conda env:qm]", | |
"language": "python", | |
"name": "conda-env-qm-py" | |
}, | |
"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.6.5" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment