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

We need a way to convert a Program into a String #12

Closed
MarquessV opened this issue Nov 15, 2022 · 0 comments · Fixed by #18
Closed

We need a way to convert a Program into a String #12

MarquessV opened this issue Nov 15, 2022 · 0 comments · Fixed by #18

Comments

@MarquessV
Copy link
Contributor

We can use parse_program to convert a String into a Program but no way to turn it back into an object that can really be used outside of this crate. The inner quilc_program is just a pointer, with no way to de-reference it or get at the data inside. This means, other than print_program, which prints directly to stdout, we have no way of converting a compiled program into, say, a quil_rs::Program

&compiled_program = Program(
    0x0000000000000002,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant