Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error from unitary plugin interface #7108

Closed
ajavadia opened this issue Oct 7, 2021 · 1 comment
Closed

error from unitary plugin interface #7108

ajavadia opened this issue Oct 7, 2021 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@ajavadia
Copy link
Member

ajavadia commented Oct 7, 2021

the following fails

transpile(circuit, coupling_map=CouplingMap.from_line(8),
              layout_method='sabre', routing_method='sabre')

but it works on commits prior to #6124

The error is:

qiskit/transpiler/passes/synthesis/unitary_synthesis.py in run(self, dag)
    171         """
    172         if self.method not in self.plugins.ext_plugins:
--> 173             raise TranspilerError("Specified method: %s not found in plugin list" % self.method)
    174         default_method = self.plugins.ext_plugins["default"].obj
    175         plugin_method = self.plugins.ext_plugins[self.method].obj

TranspilerError: 'Specified method: default not found in plugin list'
@ajavadia ajavadia added the bug Something isn't working label Oct 7, 2021
@ajavadia ajavadia added this to the 0.19 milestone Oct 7, 2021
@jakelishman
Copy link
Member

jakelishman commented Oct 7, 2021

You probably need to reinstall qiskit-terra - the plugin can't get registered as an entry point til you've rerun pip install -e . or whatever. If it's tox, you can rebuild the environment with tox -r.

This shouldn't happen on a clean install, only on a git checkout where you've pulled the new main without rerunning setup.py in some form or another.

@ajavadia ajavadia closed this as completed Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants