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

Move gateset construction to adapter #146

Merged
merged 5 commits into from
Feb 8, 2024
Merged

Move gateset construction to adapter #146

merged 5 commits into from
Feb 8, 2024

Conversation

speller26
Copy link
Collaborator

@speller26 speller26 commented Feb 8, 2024

Summary

Put gateset construction in a more logical place and made constants and methods private as needed.

Details and comments

Also skip gateset construction when running circuits verbatim.

@speller26 speller26 changed the title Make constants and methods private as needed Move gateset construction to adapter Feb 8, 2024
Copy link
Collaborator

@jcjaskula-aws jcjaskula-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

gateset: Optional[Iterable[str]] = None,
basis_gates: Optional[
Iterable[str]
] = None, # TODO: Use backend instead of basis_gates
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I like passing list[str] that is simpler than a Backend. One could tweak their circuits for a certain gateset that they'd like to try.
At some point, I think we should expose to_braket and to_qiskit at higher level.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense; this TODO was motivated by looking at all the work put into constructing a Target only to never use it.

@speller26 speller26 merged commit d5eb538 into main Feb 8, 2024
7 checks passed
@speller26 speller26 deleted the private branch February 8, 2024 23:58
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.

2 participants