qlasskit icon indicating copy to clipboard operation
qlasskit copied to clipboard

py2qasm cli tool

Open dakk opened this issue 1 year ago • 0 comments

Create a cli tool in the qlasskit/tools package called py2qasm that receives a python script (file or stdin) in input and outputs qasm code. The python script should contain at least one qlassf function.

  • If not specified by --input-file/-i, read from stdin (-).
  • If not specified by --entrypoint/-e, func_name is the last qlassf defined.
  • If not specified by --output/-o, output to stdout
  • If not specified by --compiler/-c use internal compiler (or tweedledum)
  • If not specified by --qasm-version/-q use v3 qasm version

py2qasm -i pyfile [-e func_name] [-c internal] -o qasm_file

Provide also:

  • -h\--help for usage
  • -v\--version for qlasskit version

Requirements:

Please read CONTRIBUTING.md before contributing.

dakk avatar Mar 23 '24 14:03 dakk