If I understand correctly: cis, sin,cos,exp, andsqrt` are all standard functions that can be used in (at least) gate definitions, but they don't appear in the spec outside of the above example. It would be nice to document their existence, where they can be used, and if they are treated like other keywords.
The Quil spec references the
cis
function in an example forDEFGATE
:If I understand correctly:
cis
,sin,
cos,
exp, and
sqrt` are all standard functions that can be used in (at least) gate definitions, but they don't appear in the spec outside of the above example. It would be nice to document their existence, where they can be used, and if they are treated like other keywords.