Add QPU device_call host-dispatch path for realtime QEC decoding#618
Draft
vedika-saravanan wants to merge 1 commit into
Draft
Add QPU device_call host-dispatch path for realtime QEC decoding#618vedika-saravanan wants to merge 1 commit into
vedika-saravanan wants to merge 1 commit into
Conversation
234f516 to
0d73f27
Compare
…ching QPU test Signed-off-by: vedika-saravanan <vsaravanan@nvidia.com>
0d73f27 to
aef3222
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a CUDA-Q
device_callhost-dispatch path for realtime QEC decoding.The new path allows a lowered QPU kernel call to invoke QEC decoder operations through CUDA-Q's
--cudaq-device-call=host-dispatchruntime. The HOST_CALL handlers forward into the existing CUDA-QX realtime decoder host API, enabling an end-to-end QPU-kernel-to-decoder flow for CPU decoders such as vanilla PyMatching.Changes include:
cudaq-qec-realtime-decoding-host-dispatch, aDeviceCallServiceplugin for QEC realtime decoder calls.enqueue_syndromes,get_corrections, andreset_decoderusingcudaq::device_call(0, ...).uint64_tenqueue/get/reset decoder RPCs.Runtime / performance impact
N/A for existing paths. The new host-dispatch target is optional and only built when CUDA-Q realtime/device_call dependencies are available.
Self-review checklist
Please confirm each item before requesting review. Check
[x]or strikethrough and explain.
Before requesting review
Scope and size
(if so, an issue has been raised).
Tests
just when it is missing.
EXPECT_*/assertchecks areinsufficient for algorithmic correctness.
Documentation
tracked.
Docs: N/A. This PR adds internal host-dispatch wiring and an integration test; it does not introduce a new public API or documented user workflow.
Code style
snake_casevscamelCase) forthe area being modified.
Dependencies
OSRB tickets filed.