Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py2bexp bool expressions exporter #28

Closed
dakk opened this issue Mar 23, 2024 · 4 comments · Fixed by #56
Closed

py2bexp bool expressions exporter #28

dakk opened this issue Mar 23, 2024 · 4 comments · Fixed by #56
Assignees
Labels
feature New feature unitaryhack Issue for unitaryhack

Comments

@dakk
Copy link
Owner

dakk commented Mar 23, 2024

Create a cli tool in the qlasskit/tools package called py2bexp that receives a python script (file or stdin) in input and outputs bool expressions. 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
  • Add a parameter [-f/--form] for specifying the expression form (support all sympy: anf, cnf, dnf, nnf
  • Add a parameter [-t/--format] for specifying the output format (default is sympy to_string, supports also dimacs format for cnf https://jix.github.io/varisat/manual/0.2.0/formats/dimacs.html)

py2bexp -i pyfile [-e func_name] -o file

Provide also:

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

Requirements:- Code should be placed on qlasskit/tools

Please read CONTRIBUTING.md before contributing.

@dakk dakk added the feature New feature label Mar 23, 2024
@dakk dakk mentioned this issue May 11, 2024
@dakk dakk added the unitaryhack Issue for unitaryhack label May 28, 2024
@CRTejaswi
Copy link

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

@dakk
Copy link
Owner Author

dakk commented May 30, 2024

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

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

@tomv42
Copy link
Contributor

tomv42 commented Jun 12, 2024

Here's the comment so I can get assigned. I'll start working on issue #26

@dakk dakk closed this as completed in #56 Jun 12, 2024
@dakk dakk assigned dakk and tomv42 and unassigned dakk Jun 12, 2024
@dakk
Copy link
Owner Author

dakk commented Jun 12, 2024

Here's the comment so I can get assigned. I'll start working on issue #26

Great work, merged and assigned (y)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature unitaryhack Issue for unitaryhack
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants