-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
priority: lowlow priority tasks, backlogs, good-to-haveslow priority tasks, backlogs, good-to-havessquinsquin related issuessquin related issues
Description
I just realized from a comment @david-pl left on #510 that SquinU3ToClifford currently does not handle cases like the following:
# If the measurement result is True,
# apply Rz to a single qubit
if meas_res:
squin.rz(pi, q[0])
This could easily be interpreted as a CZ.
One could just have some additional logic in the IfToStim rule to handle this but I think the more architecturally correct way to go about this is to bump SquinU3ToClifford up on the chain of rewrites in the SquinToStimPass and THEN let the other rules like IfToStim handle what's left over.
Metadata
Metadata
Assignees
Labels
priority: lowlow priority tasks, backlogs, good-to-haveslow priority tasks, backlogs, good-to-havessquinsquin related issuessquin related issues