File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 55
66A tool for converting Hierarchical Unified Graph Representation (HUGR, pronounced _ hugger_ ) formatted quantum programs into [ QIR] ( https://github.com/qir-alliance/qir-spec ) format.
77
8- Warning: Not all hugr/guppy programs can be converted to QIR
8+ Warning: Not all hugr/guppy programs can be converted to QIR.
99
1010## Installation
1111
@@ -32,10 +32,12 @@ hugr-qir test-file.hugr
3232Run ` hugr-qir --help ` to see the available options.
3333
3434If you want to generate a hugr file from guppy, you can do this in two steps:
35- 1 . add this to the end of your guppy file:
35+ 1 . Add this to the end of your guppy file:
3636```
3737if __name__ == "__main__":
38- sys.stdout.buffer.write(guppy.compile(main).package.to_bytes())
38+ sys.stdout.buffer.write(main.compile().to_bytes())
39+ # Or to compile a non-main guppy function:
40+ sys.stdout.buffer.write(guppy_func.compile_function().to_bytes())
3941```
4042
41432 . Generate the hugr file with:
You can’t perform that action at this time.
0 commit comments