Skip to content

Commit 42c3da0

Browse files
committed
Fix LaTeX rendering in GateNoiseModels.ipynb
1 parent 87eb965 commit 42c3da0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

notebooks/GateNoiseModels.ipynb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Simulating Gate Noise"
7+
"# Simulating Gate Noise\n",
8+
"$$\n",
9+
"\\newcommand{ket}[1]{\\left|{#1}\\right\\rangle}\n",
10+
"\\newcommand{bra}[1]{\\left\\langle {#1}\\right|}\n",
11+
"\\newcommand{tr}{\\mathrm{Tr}}\n",
12+
"$$"
813
]
914
},
1015
{
@@ -13,7 +18,6 @@
1318
"source": [
1419
"## Pure states vs. mixed states\n",
1520
"\n",
16-
"\n",
1721
"Errors in quantum computing can introduce classical uncertainty in what the underlying state is.\n",
1822
"When this happens we sometimes need to consider not only wavefunctions but also probabilistic sums of\n",
1923
"wavefunctions when we are uncertain as to which one we have. For example, if we think that an X gate\n",
@@ -555,7 +559,7 @@
555559
{
556560
"data": {
557561
"text/plain": [
558-
"<matplotlib.legend.Legend at 0x1320abdd8>"
562+
"<matplotlib.legend.Legend at 0x1384f5160>"
559563
]
560564
},
561565
"execution_count": 12,

0 commit comments

Comments
 (0)