-
Notifications
You must be signed in to change notification settings - Fork 74
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
Parametric compilation broken #667
Labels
bug
Something isn't working
Comments
Was the "broken after" determined by bisection? |
Yes |
Possibly a red herring, however. I have a different program that causes the issue before #655
|
stylewarning
added a commit
to stylewarning/quilc
that referenced
this issue
Aug 5, 2020
When we changed the way occ-tbl metrics were calculated, it caused quilc to find particularly good collections of compilers ("compiler paths") for certain gate sets. These particularly good compiler paths were better than before! But there was a hitch... the better compilers were also less flexible in what they matched against, though that wasn't apparent from the binding patterns themselves. In particular, in some cases, the better compilers were ones that also did _not_ accept symbolic parameters (e.g., a memory reference). This means these better compilers failed to take into account inputs like `RX(theta) 0` even though the pattern `RX(_) _` was compilable. The fix in this commit has two facets: - First, we use heuristics to determine if a compiler can accept symbolic parameters. This heuristic can be improved, but works fine for one-parameter compilers, which are the real-world cases that failed. - Second, even if we find a better compiler path when warming the chip spec, as long as a symbolic-accepting path was found, it's included in the list of compilers. This may still fail, if the entire path doesn't allow symbolic compilers. This was too complicated to check for this commit with too little gain. This fixes both issues reported in issue quil-lang#667.
stylewarning
added a commit
to stylewarning/quilc
that referenced
this issue
Aug 5, 2020
When we changed the way occ-tbl metrics were calculated, it caused quilc to find particularly good collections of compilers ("compiler paths") for certain gate sets. These particularly good compiler paths were better than before! But there was a hitch... the better compilers were also less flexible in what they matched against, though that wasn't apparent from the binding patterns themselves. In particular, in some cases, the better compilers were ones that also did _not_ accept symbolic parameters (e.g., a memory reference). This means these better compilers failed to take into account inputs like `RX(theta) 0` even though the pattern `RX(_) _` was compilable. The fix in this commit has two facets: - First, we use heuristics to determine if a compiler can accept symbolic parameters. This heuristic can be improved, but works fine for one-parameter compilers, which are the real-world cases that failed. - Second, even if we find a better compiler path when warming the chip spec, as long as a symbolic-accepting path was found, it's included in the list of compilers. This may still fail, if the entire path doesn't allow symbolic compilers. This was too complicated to check for this commit with too little gain. This fixes both issues reported in issue quil-lang#667.
notmgsk
pushed a commit
that referenced
this issue
Aug 16, 2020
When we changed the way occ-tbl metrics were calculated, it caused quilc to find particularly good collections of compilers ("compiler paths") for certain gate sets. These particularly good compiler paths were better than before! But there was a hitch... the better compilers were also less flexible in what they matched against, though that wasn't apparent from the binding patterns themselves. In particular, in some cases, the better compilers were ones that also did _not_ accept symbolic parameters (e.g., a memory reference). This means these better compilers failed to take into account inputs like `RX(theta) 0` even though the pattern `RX(_) _` was compilable. The fix in this commit has two facets: - First, we use heuristics to determine if a compiler can accept symbolic parameters. This heuristic can be improved, but works fine for one-parameter compilers, which are the real-world cases that failed. - Second, even if we find a better compiler path when warming the chip spec, as long as a symbolic-accepting path was found, it's included in the list of compilers. This may still fail, if the entire path doesn't allow symbolic compilers. This was too complicated to check for this commit with too little gain. This fixes both issues reported in issue #667.
@notmgsk can you confirm your test case is fixed? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For some qubits on Aspen-8 the following program raises a
compiler-does-not-apply
error.@colescott
The text was updated successfully, but these errors were encountered: