Allow passing Target as backend argument in transpile()#16000
Allow passing Target as backend argument in transpile()#16000lschleck24 wants to merge 1 commit intoQiskit:mainfrom
Conversation
|
Thank you for opening a new pull request. Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient. While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone. One or more of the following people are relevant to this code:
|
|
|
Fixes #15066
When a Target is passed as the second positional argument to transpile(), it is now automatically treated as the target argument instead of backend. A TypeError is raised if both are specified simultaneously.
This makes transpile() consistent with generate_preset_pass_manager() which already supports this behavior.