Skip to content

SquinU3ToClifford on scf.IfElse #544

@johnzl-777

Description

@johnzl-777

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-havessquinsquin related issues

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions