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

Add constructors and mutators useful downstream #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ausbin
Copy link
Collaborator

@ausbin ausbin commented Jun 30, 2024

These are useful for me downstream in the Qwerty compiler/runtime.

It would be nicer to pass the accelerator and shots as arguments to qiree::Executor somehow, but this solves my immediate engineering problem.

Testing

Once rebased against #4, this builds and passes ctest. I previously tested this code end-to-end in the Qwerty runtime but the code is in a state where it will be tough to do that again.

This is useful when a user generates an llvm::Module that may have
multiple entry points, as the Qwerty compiler/runtime does.
In my experience, it has been easier to treat XaccQuantum as a singleton
to avoid issues with XACC initializing itself twice.

It is probably cleaner to pass (accelerator, shots) via qiree::Executor,
but this solves my immediate implementaiton problem in the Qwerty
compiler/runtime.
@wongey wongey requested a review from sethrj July 2, 2024 16:22
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 this pull request may close these issues.

None yet

1 participant