-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure applicable symbolic-accepting compilers are included (#669)
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.
- Loading branch information
1 parent
909cda3
commit b6ceece
Showing
2 changed files
with
158 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters