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

[Stable] Transpiler add passes that might be out of the default basis #2386

Merged
merged 3 commits into from
May 10, 2019

Conversation

mtreinish
Copy link
Member

Summary

Fixes #2349

When a basis is not defined for a circuit, the default basis set is the
set of gates used in the circuit. This makes total sense to me.

However, passes might add gates and the might be out of that bases. For
this reason, I'm suggesting to add the base basis (UBase and CXBase) as
part of the default basis set. If I understand correctly, the base
basis (is that their name?) is supported by every backend by
definition, so the gates that are added by the transpiler can run in
the backend.

(cherry picked from commit 4bfcc5d)

Details and comments

Backported from: #2357

…2357)

Fixes Qiskit#2349

When a basis is not defined for a circuit, the default basis set is the
set of gates used in the circuit. This makes total sense to me.

However, passes might add gates and the might be out of that bases. For
this reason, I'm suggesting to add the base basis (UBase and CXBase) as
part of the default basis set. If I understand correctly, the base
basis (is that their name?) is supported by every backend by
definition, so the gates that are added by the transpiler can run in
the backend.

(cherry picked from commit 4bfcc5d)
@1ucian0 1ucian0 merged commit 53c8ea1 into Qiskit:stable May 10, 2019
@mtreinish mtreinish deleted the backport-fix-2349 branch May 10, 2019 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants