Add Broadcast to wire dialect #217
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@weinbe58 and I are in agreement that the work on #209 should be mirrored (that is, the statement
Broadcast
that exists in the qubit dialect) should be present in the wire dialect as well.It occurred to me during the development thatPhillip pointed out this not worth it for just two similar classes and I find myself in agreementApply
andBroadcast
in BOTH dialects have identical structure and that it might be worth introducing a parent class to them to keep things DRY so I've gone ahead and done that.I don't know if this is related (I can try to create an MWE and file a bug report) but the pretty printing that used to work (even before I made modifications to the statements in the dialects) now seems to fail to find the default pretty print
impl
in statement. It just goes straight to saying theABCMeta
doesn't have it implemented which is a bit odd to me.