dakk / qlasskit

A python-to-quantum compiler
https://dakk.github.io/qlasskit/
Apache License 2.0
52 stars 9 forks source link

py2qasm cli tool #26

Closed dakk closed 3 weeks ago

dakk commented 3 months ago

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.

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

Provide also:

Requirements:

Please read CONTRIBUTING.md before contributing.

CRTejaswi commented 1 month ago

Hi, @dakk ! I'd like to work on this issue as a part of unitaryhack.

dakk commented 1 month ago

Hi, wonderful, please go on and let me know if you need anything.

CRTejaswi commented 1 month ago

Hi, @dakk! Can you please share a couple of sample python files to be transpiled?

dakk commented 1 month ago

There is one in the test_tools file linked above. If you need more you can find some example code in test cases and in the docs; let me know if you need something different

tomv42 commented 3 weeks ago

I'll start working on this issue

dakk commented 3 weeks ago

Thank you for the contributions @tomv42 ; I hope you enjoyed working on the qlasskit library: if so, please "star" the project, and tell your quantum friends about qlasskit :)

tomv42 commented 3 weeks ago

This was my first experience in open source and I really enjoyed working on qlasskit. I learned a lot. Also, I've already starred the project :)

dakk commented 3 weeks ago

This was my first experience in open source and I really enjoyed working on qlasskit. I learned a lot. Also, I've already starred the project :)

Great!

@tomv42 Also, if you have an idea about a quantum algorithm to be implemented in qlasskit, you can propose it on this issue https://github.com/dakk/qlasskit/issues/32 still open for unitary hack.

KallieFerguson commented 5 days ago

@tomv42 it doesn't look like you registered for unitaryhack, send me an email at kallie@unitary.fund if you want the bounty.