¶Repository link:
¶License file
¶Requirements
- The output shall be qcircuit buildable source code.
- A DSL (based on OpenQASM) shall be defined
- The application shall compile the DSL into qcircuit Latex.
¶DSL Specification
- The lines shall be separated by ;
- # will mark a comment line. No multiline comments
- Gate arguments shall be separated by ,
- Single qubit gates will have the format gate A qubit, where A will be the gate name (X,Y,Z,H,U etc).
- Multi qubit gates will have the format ctrl A, v0,v1,v2; The last parameter shall be the target A.
- Barriers shall have as parameters the impacted qubits.
ket v0,v1,v2; ket v1; gate H,v0; ctrl U,v0,v1,v2; barrier v0,v1,v2;