quil icon indicating copy to clipboard operation
quil copied to clipboard

Provide instruction-based semantics for parameter arithmetic

Open stylewarning opened this issue 6 years ago • 1 comments

This refers to interpreting gate parameters as actual sequences of Quil instructions. For example,

RX(2*a) 0

is presently not very meaningful as a linear list of instructions. It could be interpreted as something like

temp = a
temp *= 2
RX(temp) 0

but Quil doesn't say.

stylewarning avatar Feb 15 '19 21:02 stylewarning

It would be neat to also allow something like: MOVE a 2*pi*b

stevenheidel avatar Feb 19 '19 02:02 stevenheidel