QGL icon indicating copy to clipboard operation
QGL copied to clipboard

Can't push back frame change to/before control instruction

Open dieris opened this issue 8 years ago • 0 comments

Can't apply a Z gate right after a control flow instruction, e.g.

[qwait('CMP')]+ qif(0,[Z(q)])

or

[qwait('CMP')]+ qif(0,[Id(q), Z(q)]).

In both cases the frame rotation is be pushed back before qwait('CMP') and becomes unconditional!

See Compiler.py#L611-615

dieris avatar Oct 13 '16 17:10 dieris