quil-lang / quil

Specification of Quil: A Practical Quantum Instruction Set Architecture
https://quil-lang.github.io/
Apache License 2.0
103 stars 16 forks source link

Provide instruction-based semantics for parameter arithmetic #3

Open stylewarning opened 5 years ago

stylewarning commented 5 years ago

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.

stevenheidel commented 5 years ago

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