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

Calls to transpile fail #7343

Closed
nonhermitian opened this issue Dec 2, 2021 · 4 comments
Closed

Calls to transpile fail #7343

nonhermitian opened this issue Dec 2, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@nonhermitian
Copy link
Contributor

Environment

  • Qiskit Terra version: master
  • Python version:
  • Operating system:

What is happening?

Attempting to look at #7341

File "/Users/paul/Desktop/GitHub/qiskit-terra/qiskit/transpiler/passes/synthesis/unitary_synthesis.py", line 208, in run
raise TranspilerError("Specified method: %s not found in plugin list" % self.method)
TranspilerError: 'Specified method: default not found in plugin list'

How can we reproduce the issue?

qc2 = transpile(qc, backend)

What should happen?

it should work

Any suggestions?

No response

@nonhermitian nonhermitian added the bug Something isn't working label Dec 2, 2021
@jakelishman
Copy link
Member

You likely need to reinstall with pip install -e . to trigger the setuptools entry points to register the unitary synthesis plugins.

@nonhermitian
Copy link
Contributor Author

I cannot just work in the dir anymore?

@jakelishman
Copy link
Member

jakelishman commented Dec 2, 2021

You can once you've re-run pip install -e . once - the new unitary synthesis method registers an entry point for plugins, and the default plugin (and the AQC) needs to register itself with that. That only needs to happen one time when a new plugin is added, and after that you'll be able to work as before.

@nonhermitian
Copy link
Contributor Author

Ahh cool. Thanks for the info.

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