Skip to content

Commit

Permalink
S
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhartman committed Apr 19, 2022
1 parent 281046b commit 6f81c34
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions qiskit/compiler/transpiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ def transpile(
[qr[0], None, None, qr[1], None, qr[2]]
layout_method: Name of layout selection pass ('trivial', 'dense', 'noise_adaptive', 'sabre')
routing_method: Name of routing pass ('basic', 'lookahead', 'stochastic', 'sabre', 'none')
layout_method: Name of layout selection pass
('trivial', 'dense', 'noise_adaptive', 'sabre', 'toqm')
routing_method: Name of routing pass
('basic', 'lookahead', 'stochastic', 'sabre', 'toqm', 'none')
translation_method: Name of translation pass ('unroller', 'translator', 'synthesis')
scheduling_method: Name of scheduling pass.
* ``'as_soon_as_possible'``: Schedule instructions greedily, as early as possible
Expand Down
2 changes: 1 addition & 1 deletion qiskit/transpiler/preset_passmanagers/level0.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def _choose_layout_condition(property_set):
elif layout_method == "toqm":
HAS_TOQM.require_now("TOQM-based layout")
if routing_method != "toqm":
raise TranspilerError(f"Layout method 'toqm' requires routing method 'toqm'.")
raise TranspilerError("Layout method 'toqm' requires routing method 'toqm'.")
_choose_layout = TrivialLayout(coupling_map)
else:
raise TranspilerError("Invalid layout method %s." % layout_method)
Expand Down
2 changes: 1 addition & 1 deletion qiskit/transpiler/preset_passmanagers/level1.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def _vf2_match_not_found(property_set):
elif layout_method == "toqm":
HAS_TOQM.require_now("TOQM-based layout")
if routing_method != "toqm":
raise TranspilerError(f"Layout method 'toqm' requires routing method 'toqm'.")
raise TranspilerError("Layout method 'toqm' requires routing method 'toqm'.")
_improve_layout = TrivialLayout(coupling_map)
else:
raise TranspilerError("Invalid layout method %s." % layout_method)
Expand Down
2 changes: 1 addition & 1 deletion qiskit/transpiler/preset_passmanagers/level2.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def _vf2_match_not_found(property_set):
elif layout_method == "toqm":
HAS_TOQM.require_now("TOQM-based layout")
if routing_method != "toqm":
raise TranspilerError(f"Layout method 'toqm' requires routing method 'toqm'.")
raise TranspilerError("Layout method 'toqm' requires routing method 'toqm'.")
_choose_layout_1 = TrivialLayout(coupling_map)
else:
raise TranspilerError("Invalid layout method %s." % layout_method)
Expand Down
2 changes: 1 addition & 1 deletion qiskit/transpiler/preset_passmanagers/level3.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def _vf2_match_not_found(property_set):
elif layout_method == "toqm":
HAS_TOQM.require_now("TOQM-based layout")
if routing_method != "toqm":
raise TranspilerError(f"Layout method 'toqm' requires routing method 'toqm'.")
raise TranspilerError("Layout method 'toqm' requires routing method 'toqm'.")
_choose_layout_1 = TrivialLayout(coupling_map)
else:
raise TranspilerError("Invalid layout method %s." % layout_method)
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ seaborn>=0.9.0
reno>=3.4.0
Sphinx>=3.0.0
qiskit-sphinx-theme>=1.6
qiskit-toqm>=0.0.1
sphinx-autodoc-typehints<1.14.0
jupyter-sphinx
sphinx-panels
Expand Down

0 comments on commit 6f81c34

Please sign in to comment.