-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use only discrete-basis translations in
GateDirection
(#10786)
* Use only discrete-basis translations in `GateDirection` This makes it a little more likely that it'll be possible to use the transpiler when targetting a discrete basis, such as a Clifford simulator. We still in general do not offer full support for discrete-basis translation, and certainly not for optimal discrete-basis transpilation, but this is a relatively easy change that makes us marginally more reliable with them. * Fix global phase in tests
- Loading branch information
1 parent
df9eae4
commit f87bb01
Showing
4 changed files
with
80 additions
and
19 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
8 changes: 8 additions & 0 deletions
8
releasenotes/notes/discrete-basis-gatedirection-bdffad3b47c1c532.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
fixes: | ||
- | | ||
The :class:`.GateDirection` transpiler pass will now use discrete-basis translations rather than | ||
relying on a continuous :class:`.RYGate`, which should help make some discrete-basis-set targets | ||
slightly more reliable. In general, :func:`.transpile` only has partial support for basis sets | ||
that do not contain a continuously-parametrised operation, and so it may not always succeed in | ||
these situations, and will almost certainly not produce optimal results. |
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