Skip to content

Commit

Permalink
Reword messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelishman committed Dec 5, 2023
1 parent 0383141 commit bcee103
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion qiskit/transpiler/passes/synthesis/unitary_synthesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def __init__(
self._synth_gates = set(self._synth_gates) - self._basis_gates

if self.method != "default" and self.method not in self.plugins.ext_plugins:
raise TranspilerError("Specified methodd: %s not found in plugin list" % self.method)
raise TranspilerError(f"Specified method '{self.method}' not found in plugin list")

def run(self, dag: DAGCircuit) -> DAGCircuit:
"""Run the UnitarySynthesis pass on ``dag``.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
fixes:
- |
fixes issue #11355. If a nonexistent synthesis plugin is passed, `generate_preset_pass_manager` now raises an error
when the pass manager is created, not when it is run.
The :class:`.UnitarySynthesis` transpiler pass will now generate an error on initialization when
a nonexistent sythesis plugin is specified, rather than waiting until runtime to raise. Fixed
`#11355 <https://github.com/Qiskit/qiskit/issues/11355>`__.

0 comments on commit bcee103

Please sign in to comment.