[cudaq-logical] IR Improvements
Maintainers usually reply within 1 day
@boschmitt is already working on this.
Since Oct 8, 2026.
Assessment
This issue has not been assessed yet.
Description
CUDA-Q Logical is compiler infrastructure for fault tolerant quantum computing. It gives a program a path from logical intent to an implementation: place logical qubits, choose error correction codes and protocols, map them to physical operations, then prepare the control needed to run them. Each step adds detail while preserving what the program means. That lets us study the same workload across different codes, devices, and targets.
The IR as-is grew with the internal early access implementation. It has repeated facts across operations, metadata, and artifacts. Some compiler paths lived in Python while others lived in native code, and some tools identified operations by name or by reading printed IR. These splits have made the system harder to verify and extend. They also made it harder to show that a physical result, resource estimate, or simulation still came from the intended logical program.
This tracker seeks to follow public work on improvements to the cudaq-logical IR. A major theme of this work will be focused on cudaq-logical as infrastructure for fault tolerant compilation. As such, we want to clean up redundancy, expose typed MLIR interfaces for common extensibility tasks, and move early Python IR analysis and passes completely to native C++.
Typed interfaces tell common compiler passes what an operation means. One native pipeline serves Python and command line users. Stable links connect the program, its selected QEC methods, physical events, schedules, detector models, estimates, and results. As the full plan is completed, researchers and providers will be able to add methods, compare architectures, and reproduce results on a shared compiler foundation.
Here we enumerate expected tasks.
IR contracts and stage boundaries
- Define shared IR interfaces for stages, operation meaning, ownership, and extensions. (PR #5574)
- Remove duplicate P0 and P1 facts while keeping placement code agnostic.
- Resolve device and QEC definitions through typed interfaces that any provider can use.
- Track exact value and resource ownership across calls and returns.
- Define one verified contract for handing resources between QEC operations.
- Support reusable QEC callables and lower their calls to selected implementations.
- Define an extensible P2 to P3 boundary for physical events, resources, and records.
- Set typed contracts for cost models, target lowering, and Quake import.
- Reduce physical schedule memory use and share native ownership analysis.
- Track distinct value lifetimes when P1 slots are reused through P2 and P3.
Move compiler work to native C++
- Move authoring analysis, definition linking, and IR verification to C++.
- Compute operation counts and analytical resource estimates in C++.
- Derive component timing and resource use in C++.
- Import CUDA-Q kernels through a native Quake to P0 path.
- Select QEC implementations and lower P1 programs to P2 in C++.
- Handle QEC block placement and resource flow in C++.
- Lower P2 protocols to verified P3 physical events in C++.
- Emit Stim circuits and measurement metadata in C++.
- Remove facet tags and migrate Builds to typed stage and artifact schemas.
- 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 Under an hour Newbie friendliness 88/100
NVIDIA/cuda-quantum#6035 ·
Maintainers usually reply within 1 day
-
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
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