Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Feb 8, 2024
1 parent 4312259 commit 376d90f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/transpile/transpiler-plugins.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"source": [
"## List available plugins and install new ones\n",
"\n",
"Qiskit already includes some built-in plugins for transpilation. To install more, you can use your Python package manager. For example, you might run `pip install qiskit-toqm` to install the [Qiskit TOQM](https://github.com/qiskit-toqm/qiskit-toqm) routing stage plugin.\n",
"Qiskit already includes some built-in plugins for transpilation. To install more, you can use your Python package manager. For example, you might run `pip install qiskit-toqm` to install the [Qiskit TOQM](https://github.com/qiskit-toqm/qiskit-toqm) routing stage plugin. A number of third-party plugins are part of the [Qiskit ecosystem](https://qiskit.github.io/ecosystem/), and you can find them on [this page](https://qiskit.github.io/ecosystem/#transpiler_plugin).\n",
"\n",
"### List available transpiler stage plugins\n",
"\n",
Expand Down Expand Up @@ -150,7 +150,7 @@
"\n",
"### Use a transpiler stage plugin\n",
"\n",
"To use a transpiler stage plugin, specify its name with the appropriate argument to [`generate_preset_pass_manager`](/api/qiskit/transpiler_preset#generate_preset_pass_manager) or [`transpile`](/api/qiskit/compiler#qiskit.compiler.transpile). The argument is formed by appending `_method` to the name of the transpilation stage. For example, to use the `sabre` routing plugin, we would specify `sabre` for the `routing_method` argument:"
"To use a transpiler stage plugin, specify its name with the appropriate argument to [`generate_preset_pass_manager`](/api/qiskit/transpiler_preset#generate_preset_pass_manager) or [`transpile`](/api/qiskit/compiler#qiskit.compiler.transpile). The argument is formed by appending `_method` to the name of the transpilation stage. For example, to use the `dense` routing plugin, we would specify `dense` for the `routing_method` argument:"
]
},
{
Expand All @@ -166,7 +166,7 @@
"backend = service.backend(\"ibm_brisbane\")\n",
"\n",
"pass_manager = generate_preset_pass_manager(\n",
" optimization_level=3, backend=backend, routing_method=\"sabre\"\n",
" optimization_level=3, backend=backend, routing_method=\"stochastic\"\n",
")"
]
},
Expand Down Expand Up @@ -245,7 +245,7 @@
"[`name`](/api/qiskit/qiskit.circuit.Operation#name) attribute of the [Operation](/api/qiskit/qiskit.circuit.Operation) class representing the type of object being synthesized.\n",
"For each high-level object, the list of given plugins are tried in sequence until one of them\n",
"succeeds (in the example above, each list only contains a single plugin). In addition to specifying\n",
"a plugin by its name, you can instead pass a `(name, options)` tuple, where the second element of the tuple is a dictionary containing options for the plugin.\n",
"a plugin by its name, you can instead pass a `(name, options)` tuple, where the second element of the tuple is a dictionary containing options for the plugin. The documentation of the synthesis method should explain the options it supports.\n",
"\n",
"Once you have created the `HLSConfig` object, pass it as the\n",
"`hls_config` argument to [`generate_preset_pass_manager`](/api/qiskit/transpiler_preset#generate_preset_pass_manager) or [`transpile`](/api/qiskit/compiler#qiskit.compiler.transpile):"
Expand Down Expand Up @@ -276,7 +276,6 @@
}
],
"metadata": {
"title": "Transpiler plugins",
"description": "How to use transpiler plugins in Qiskit.",
"kernelspec": {
"display_name": "documentation--fuetTj0",
Expand All @@ -294,7 +293,8 @@
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
}
},
"title": "Transpiler plugins"
},
"nbformat": 4,
"nbformat_minor": 4
Expand Down

0 comments on commit 376d90f

Please sign in to comment.