Messaging Protocol examples use TYPE_UINT32, a payload type id that does not exist
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 88/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- cpp
- Domain
- documentation
Research direction
In realtime/docs/cudaq_realtime_message_protocol.md, Example 2 registers a 4-byte integer using TYPE_UINT32; the issue says the defined ID is TYPE_INT32. Read the Type System section and update the example's ID. Check that the example uses the defined ID and that the Sphinx copy and QEC decoder example mentioned in the issue have been removed by #5926.
Written by the indexing model from the issue text.
Description
Required prerequisites
- Consult the security policy. If reporting a security vulnerability, do not report the bug using this form. Use the process described in the policy to report the issue.
- Make sure you've read the documentation. Your issue may be addressed there.
- Search the issue tracker to verify that this hasn't already been reported. +1 or comment there if it has.
- If possible, make a PR with a failing test to give us a starting point to work on!
Describe the bug
The Messaging Protocol's examples register a uint32_t argument as TYPE_UINT32, but there is no such payload type id. Neither PayloadTypeID nor cudaq_payload_type_t defines one: the 4-byte integer id is TYPE_INT32 (0x11). So a schema written from Example 2 (decode(const uint8_t* bits, uint32_t num_bits)) can't be encoded as shown. CUDA-Q's own DeviceCallLibrary.h maps every 4-byte integer to TYPE_INT32.
Steps to reproduce the bug
$ git grep -n TYPE_UINT32 -- realtime/docs docs/sphinx
docs/sphinx/using/realtime/protocol.md:242:- `arg1`: `TYPE_UINT32`, `size_bytes=4`, `num_elements=1`
docs/sphinx/using/realtime/protocol.md:414:- `arg1`: `TYPE_UINT32`, 4 bytes (number of detection events)
realtime/docs/cudaq_realtime_message_protocol.md:244:- `arg1`: `TYPE_UINT32`, `size_bytes=4`, `num_elements=1`
realtime/docs/cudaq_realtime_message_protocol.md:416:- `arg1`: `TYPE_UINT32`, 4 bytes (number of detection events)
$ git grep -n -E "UINT32 *=" -- realtime/include
$
Expected behavior
The examples use an id that exists, TYPE_INT32, and the Type System section says that ids give the width, not the signedness.
Is this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
- CUDA-Q version: main at 2c37740
- Operating system: any (docs only)
Suggestions
Change TYPE_UINT32 to TYPE_INT32 in realtime/docs/cudaq_realtime_message_protocol.md. #5926 removes the Sphinx copy and the QEC decoder example, so once it lands only Example 2's line is left to fix.
- Dominant language
- C++
- Stars
- 1.2k
- Forks
- 508
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 100
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NVIDIA/cuda-quantum
-
Difficulty 1/5 1-3 hours Newbie friendliness 77/100
NVIDIA/cuda-quantum#6034 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-quantum#6033 ·
Maintainers usually reply within 1 day
-
Point the CUDA-Q Pulse research preview docs to the released cudaq-pulse packagePossibly taken @fedonman claimed this 2 days ago. Open
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
NVIDIA/cuda-quantum#6031 ·
Maintainers usually reply within 1 day
-
Realtime fnv1a_hash sign-extends char, so a non-ASCII handler name gets a platform-dependent function idPossibly taken @fedonman claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
NVIDIA/cuda-quantum#6029 ·
Maintainers usually reply within 1 day
-
SyntaxWarning in test_Quantinuum_kernel.py: use equality check rather than identity on string literalPossibly taken @sisco0 claimed this 7 days ago. Openstale-notified
Difficulty 1/5 Under an hour Newbie friendliness 94/100
NVIDIA/cuda-quantum#5952 · 2 comments ·
Maintainers usually reply within 1 day
All issues in NVIDIA/cuda-quantum
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 2 days
-
bug data-types
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
ClickHouse/clickhouse-cpp#645 ·
Maintainers usually reply within 1 day
-
bug compatibility difficulty:easy prio:normal
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NatronGitHub/openfx-misc#524 ·
Maintainers usually reply within 1 day
-
documentation enhancement help wanted P0
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP#359 ·
Maintainers usually reply within 1 day
-
Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
openscad/openscad#7360 · 2 comments ·
Maintainers usually reply within 1 day