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

PRAGMA syntax for rewiring is clunky #661

Open
lcapelluto opened this issue Nov 5, 2018 · 1 comment · May be fixed by #1282
Open

PRAGMA syntax for rewiring is clunky #661

lcapelluto opened this issue Nov 5, 2018 · 1 comment · May be fixed by #1282
Labels
good first issue 👶 A place to get started.

Comments

@lcapelluto
Copy link
Contributor

lcapelluto commented Nov 5, 2018

Improve the following form:

p = Program()
p += Pragma('INITIAL_REWIRING', ['"GREEDY"'])
@lcapelluto lcapelluto added the good first issue 👶 A place to get started. label Nov 5, 2018
@stylewarning stylewarning pinned this issue Dec 14, 2018
@notmgsk
Copy link
Contributor

notmgsk commented Mar 10, 2019

I was thinking something like the following would be nice sugar:

p = Program()
p += Pragma.initial_rewiring('PARTIAL') # Let compiler search for a "good" rewiring
p += Pragma.preserve(I(0)) # Prevent the identity gate from being compiled away
p += CNOT(0, 1)
# etc ...

@karalekas karalekas unpinned this issue Sep 22, 2019
@notmgsk notmgsk linked a pull request Dec 7, 2020 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue 👶 A place to get started.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants