quil-lang / quil

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

propose DEFGATE ... AS PAULI-SUM for inclusion #38

Closed ecpeterson closed 4 years ago

jmbr commented 4 years ago

I guess a natural way to add Trotterization on top of this would be with some sort of gate modifier. For instance,

DEFGATE FOOBAR(...) ... AS PAULI-SUM:
    ...

TROTTERIZE FOOBAR(...) ... ORDER 4

In this case, TROTTERIZE would extract commuting terms from the Pauli sum and construct a circuit satisfying the desired error bound.

jmbr commented 4 years ago

Does the latex / mathjax ever get rendered? I wonder if there is a way to make github render it when displaying the markdown.

Not that I know of. I render the spec with pandoc --standalone --to latex --output Quil.tex Quil.md && xelatex Quil.tex

ecpeterson commented 4 years ago

It gets rendered when I open it in MacDown. :/