-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure an
ion.yield
operation is returning a region output to all p…
…arallal protocol ops (#1475) **Context:** During `quantum-to-ion` pass, when decomposing RX, RY and MS gates to pulses in a `ParallelProtocolOp`'s region, the region was terminated with yield ops without any operands. This means no SSA values were actually yielded from the region. At the same time, `ParallelProtocolOp` returns (variadic-length) values of type `!quantum.bit`. This means the IR is ill-formed. **Description of the Change:** Ensure that all `ParallelProtocolOp`s will yield the input-ed qubit SSA values by doing so in the builder, when building the region of the `ParallelProtocolOp`. **Benefits:** mlir is no longer ill-formed; increased readability
- Loading branch information
Showing
4 changed files
with
30 additions
and
16 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
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