Bending bits...

Bytes and Words...

QC Schematic

Repository link:

License file

Requirements

  1. The output shall be qcircuit buildable source code.
  2. A DSL (based on OpenQASM) shall be defined
  3. The application shall compile the DSL into qcircuit Latex.

DSL Specification

  1. The lines shall be separated by ;
  2. # will mark a comment line. No multiline comments
  3. Gate arguments shall be separated by ,
  4. Single qubit gates will have the format gate A qubit, where A will be the gate name (X,Y,Z,H,U etc).
  5. Multi qubit gates will have the format ctrl A, v0,v1,v2; The last parameter shall be the target A.
  6. 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;