Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

Commit 8e1b2cd

Browse files
Fix typos in 04_transpiler_passes_and_passmanager.ipynb (#1494)
Built on top of #1239. --------- Co-authored-by: Bochen "Daniel" Tan <[email protected]>
1 parent 1814041 commit 8e1b2cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorials/circuits_advanced/04_transpiler_passes_and_passmanager.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@
797797
"cell_type": "markdown",
798798
"metadata": {},
799799
"source": [
800-
"Each node is an instance of the ``DAGOpNode`` class. Let's examine the information stored in the second op node."
800+
"Each node is an instance of the ``DAGOpNode`` class. Let's examine the information stored in the fourth op node."
801801
]
802802
},
803803
{
@@ -1293,7 +1293,7 @@
12931293
"cell_type": "markdown",
12941294
"metadata": {},
12951295
"source": [
1296-
"The `basicConfig()` function (see the docs here: https://docs.python.org/3/library/logging.html#logging.basicConfig) configures a root handler and formatter. We also specify the [log level](https://docs.python.org/3/library/logging.html#levels) to display with the `level` kwarg. Setting it to a level will also include and higher levels. For example, if you set it to `'INFO'` in addition to the `INFO` level this will also include the `WARNING`, `ERROR`, and `CRITICAL` log levels.\n",
1296+
"The `basicConfig()` function (see the docs here: https://docs.python.org/3/library/logging.html#logging.basicConfig) configures a root handler and formatter. We also specify the [log level](https://docs.python.org/3/library/logging.html#levels) to display with the `level` kwarg. Setting it to a level will also include and higher levels. For example, if you set it to `'INFO'`, in addition to the `INFO` level, this will also include the `WARNING`, `ERROR`, and `CRITICAL` log levels.\n",
12971297
"\n",
12981298
"Now the python environment in this notebook is configured to emit log messages to stderr when you run the transpiler. For example:"
12991299
]
@@ -2119,7 +2119,7 @@
21192119
"cell_type": "markdown",
21202120
"metadata": {},
21212121
"source": [
2122-
"As you can see here we get log messages from all 3 circuits being transpiled together. There is no way to know which pass is part of which circuit's transpilation. Luckily Python logging provides tools to deal with this. The simplest one is to just change the [log formatter](https://docs.python.org/3/library/logging.html#logging.Formatter) so that includes additional information so we can associate a log message with the process it came from."
2122+
"As you can see here we get log messages from both circuits being transpiled together. There is no way to know which pass is part of which circuit's transpilation. Luckily Python logging provides tools to deal with this. The simplest one is to just change the [log formatter](https://docs.python.org/3/library/logging.html#logging.Formatter) so that includes additional information so we can associate a log message with the process it came from."
21232123
]
21242124
},
21252125
{

0 commit comments

Comments
 (0)