eclipse / xacc

XACC - eXtreme-scale Accelerator programming framework
https://xacc.readthedocs.io
BSD 3-Clause "New" or "Revised" License
167 stars 86 forks source link

jaqal code generation #366

Open amccaskey opened 3 years ago

amccaskey commented 3 years ago

We should implement a compiler that enables translation of openqasm to jaqal via https://gitlab.com/jaqal/jaqalpaq-extras/-/blob/master/src/jaqalpaq/transpilers/qiskit/frontend.py#L40

i think we can really only consider a JaqalCompiler::translate implementation that delegates to the StaqCompiler to map IR to OpenQasm, then delegate to the above qiskit transpiler frontend to generate a jaqal circuit.

amccaskey commented 3 years ago

https://gitlab.com/jaqal/jaqalpaq/-/blob/master/src/jaqalpaq/generator/generator.py

this will generate jaqal as a string