-
Notifications
You must be signed in to change notification settings - Fork 17
feat: Add selene plugin to run *.gpy.py files #1284
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1284 +/- ##
==========================================
- Coverage 93.50% 93.49% -0.02%
==========================================
Files 121 122 +1
Lines 11220 11248 +28
==========================================
+ Hits 10491 10516 +25
- Misses 729 732 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Two thoughts:
|
The former. I agree it would be interesting, but "eval"ing a python file and executing it in a subprocess are pretty different. The latter is much more reliable.
I think this would also require "eval". This case, of the file being a program that emits a hugr, is of interest to me because we have many test programs that match this. |
|
Thoughts:
gpy emulate prog.gpy.py --n-shots=10 --res-file=results.json
gpy compile prog.gpy.py | hugr validate |
Closes #1283