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

[WIP] Create a runtime OQD device that generates openapl #1479

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

paul0403
Copy link
Contributor

@paul0403 paul0403 commented Jan 21, 2025

Context:
After lowering the ion dialect to llvm dialect, and then llvm ir, with calls to the runtime capi stubs (#1466), the final llvm ir needs to be executed. The stubs will need to generate openapl, which is the common entry point for oqd backends.

Description of the Change:

  • Note that since the lowering from ion dialect to llvm dialect ([WIP] Lowering Ion dialect to llvm dialect #1466 ) is not finished yet, we need to manually write an IR (and use replace_ir) for testing. Undo this and use the actual lowering passes to generate llvm once they are in place. As of now, simply run python oqd_run.py to see the effect of the stubs.
  • Create a compilation pipeline for the OQD device. The pipeline needs to diverge from the standard pipeline after reaching the quantum dialect, and needs to go into quantum-to-ion, then ion-to-llvm.
  • Fill the OQD capi stubs with openapl program generation.
  • Isolate the oqd capi stubs into their own .so, instead of throwing them into the existing runtime capi's .so

Benefits:
Catalyst can now generate programs that can be accepted by OQD backends!

[sc-73710]

@paul0403 paul0403 added the OQD OQD-related work label Jan 21, 2025
@paul0403 paul0403 requested a review from mehrdad2m January 21, 2025 22:11
Copy link
Contributor

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md on your branch with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

@@ -0,0 +1,24 @@
// Copyright 2025 Xanadu Quantum Technologies Inc.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OQD OQD-related work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant