cudaq-importing
Skill1.2k starsChanged 2 months agoApache-2.0View on GitHub
Use when porting circuits from another framework (e.g. Qiskit) into CUDA-Q kernels while preserving the source algorithm and validation fidelity.
Trending
Quiet since September.about the whole repository
Who's talking about NVIDIA/cuda-quantum
- dcoapp/app“DCO check failure with merge queues”GitHub · Jul 30, 2026 · 2 reactions
- cloudposse/github-action-matrix-outputs-write“Update to Node 24 runtime and @actions/artifact v2.3”GitHub · Apr 6, 2026 · 1 reactions
- A Hacker News story“Nvidia CUDA Quantum”Hacker News · Aug 18, 2025 · 1 points
- khalatepradnya/cuda-quantum“add headers for quantum machines”GitHub · Aug 8, 2025 · 1 reactions
- softwareQinc/qpp“Support `expandout` for multiple non-consecutive qubits”GitHub · Jul 2, 2025 · 1 reactions
The biggest 5 of 44 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 44
Talked about on GitHub and Hacker News (44 times).
On GitHub · 43
- Jul 30, 2026DCO check failure with merge queues — dcoapp/app2 reactions · 3 comments
- Apr 6, 2026Update to Node 24 runtime and @actions/artifact v2.3 — cloudposse/github-action-matrix-outputs-write1 reaction · 2 comments
- Aug 8, 2025add headers for quantum machines — khalatepradnya/cuda-quantum1 reaction
- Jul 2, 2025Support `expandout` for multiple non-consecutive qubits — softwareQinc/qpp1 reaction · 3 comments
- Apr 8, 2025`uv pip install cudaq` fails first time perhaps due to dynamic install_requires — astral-sh/uv1 reaction · 4 comments
38 more on GitHub
- Sep 28, 2026[Bug]: CudaqBackend analog evolution returns the qubit-reversed final state — qilimanjaro-tech/qilisdk0 reactions
- Sep 22, 2026Update cudaq requirement from >=0.14.0 to >=0.16.0.post1 — YTT-Global/qga-cancer-therapeutics0 reactions · 1 comment
- Sep 20, 2026Spec compliance of controlled parametrized gates — qir-alliance/qir-runner0 reactions · 7 comments
- Sep 16, 2026chore(deps): bump cudaq from 0.15.1 to 0.16.0 — m2papierz/devqubit0 reactions
- Sep 15, 2026Update cudaq requirement from >=0.14.0 to >=0.16.0 — YTT-Global/qga-cancer-therapeutics0 reactions · 2 comments
- Sep 14, 2026[Bug]: Translation Checker Can Miss Translations — qilimanjaro-tech/qilisdk0 reactions
- Sep 9, 2026[Bug]: Wrong plotting in the experiments class — qilimanjaro-tech/qilisdk0 reactions
- Sep 8, 2026test: add verified HSB playback loop regression — NVIDIA/cudaq-qec0 reactions
- Aug 27, 2026[Bug]: Variational annealing returns a complex for expectation values — qilimanjaro-tech/qilisdk0 reactions
- Aug 27, 2026[Bug]: Model.ising() should use SpinVariable not BinaryVariable — qilimanjaro-tech/qilisdk0 reactions
- Aug 21, 2026Consolidate realtime dependency building. — NVIDIA/cudaq-qec0 reactions · 7 comments
- Aug 12, 2026chore(deps): bump cudaq from 0.13.0 to 0.15.1 — m2papierz/devqubit0 reactions
- Aug 11, 2026Update cudaq requirement from >=0.14.0 to >=0.15.1 — YTT-Global/qga-cancer-therapeutics0 reactions · 2 comments
- Aug 5, 2026infra: bump the dev-dependencies group with 7 updates — amazon-braket/amazon-braket-examples0 reactions
- Aug 5, 2026[Bug]: Torch + OpenMP + CUDA crash — qilimanjaro-tech/qilisdk0 reactions
- Aug 5, 2026[Bug]: Importing both analog and digital Paulis — qilimanjaro-tech/qilisdk0 reactions · 4 comments
- Jul 25, 2026infra: bump cudaq from 0.14.2 to 0.16.0 — amazon-braket/qirtoqasm0 reactions · 4 comments
- Jul 21, 2026Update cudaq requirement from >=0.14.0 to >=0.15.0 — YTT-Global/qga-cancer-therapeutics0 reactions · 2 comments
- Jul 20, 2026Converting to a standalone adapter — Munich-Quantum-Software-Stack/MQSS-CUDAQ-Adapter0 reactions · 6 comments
- Jul 15, 2026chore(deps): bump cuda-quantum-cu12 from 0.13.0 to 0.15.0 — m2papierz/devqubit0 reactions
- Jul 15, 2026chore(deps): bump cudaq from 0.13.0 to 0.15.0 — m2papierz/devqubit0 reactions · 1 comment
- Jul 15, 2026infra: bump the dev-dependencies group across 4 directories with 2 updates — amazon-braket/amazon-braket-containers0 reactions · 1 comment
- Jul 14, 2026Update dev scripts to install cudaq-realtime w/ HSB — NVIDIA/cudaq-qec0 reactions
- Jun 27, 2026Bump CUDA-Q commit (with non-trivial updates) — NVIDIA/cudaq-qec0 reactions
- Apr 6, 2026Update dependencies for Node 24 and artifact v7 compatibility — cloudposse/github-action-matrix-outputs-read0 reactions · 3 comments
- Dec 2, 2025Implement CudaQ as new simulator — CESGA-Quantum-Spain/cunqa0 reactions
- Jul 29, 2025Move extension_point from cuda-qx to cudaq — NVIDIA/cudaq-qec0 reactions · 3 comments
- Jun 25, 2025Create issues template. — EwanByrne/hybrid-quantum-classical-Neural-Network-for-radar-data0 reactions · 2 comments
- May 27, 2025✨ MLIR - Conversion from/to CUDA-Q's `quake` dialect — WingCode/core0 reactions
- May 27, 2025✨ MLIR - Conversion from/to CUDA-Q's `quake` dialect — WingCode/core0 reactions
- May 27, 2025✨ MLIR - Conversion from/to CUDA-Q's `quake` dialect — WingCode/core0 reactions
- May 27, 2025✨ MLIR - Conversion from/to CUDA-Q's `quake` dialect — WingCode/core0 reactions
- May 27, 2025✨ MLIR - Conversion from/to CUDA-Q's `quake` dialect — WingCode/core0 reactions
- May 27, 2025✨ MLIR - Conversion from/to CUDA-Q's `quake` dialect — WingCode/core0 reactions
- May 27, 2025✨ MLIR - Conversion from/to CUDA-Q's `quake` dialect — WingCode/core0 reactions
- May 27, 2025✨ MLIR - Conversion from/to CUDA-Q's `quake` dialect — WingCode/core0 reactions
- May 27, 2025✨ MLIR - Conversion from/to CUDA-Q's `quake` dialect — WingCode/core0 reactions
- Apr 14, 2025✨ MLIR - Conversion from/to CUDA-Q's `quake` dialect — munich-quantum-toolkit/core0 reactions · 3 comments
On Hacker News · 1
- Aug 18, 2025Nvidia CUDA Quantum1 point
In this repository2 other files it gives its agents.
- llms.txtllms.txt
- cudaq-guideSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 13 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
Use this skill to port quantum circuits from another framework into CUDA-Q Python kernels.
- Distinctive: line 51
When using CUDA-Q documentation or repository MCP connectors, verify the connector is available before relying on it.
- Distinctive: line 54
When debugging and the installed CUDA-Q version differs from the latest documentation, review relevant documentation or source changes …
- Distinctive: line 60
Read the source circuit construction and identify the exact algorithm, qubit/register layout, measurement behavior, and any framework …
- Very specific: line 66
Use cudaq.sample for final-measurement sampling.
- Very specific: line 67
Use cudaq.run when mid-circuit measurement values must be returned or used per shot.
- Distinctive: line 69
Use runtime-argument kernels instead of generated per-size kernels unless CUDA-Q requires a fixed-length return shape.
- Distinctive: line 74
Remove runtime source-framework dependencies from the CUDA-Q port.
- Distinctive: line 82
Keep the source algorithm intact unless the user approves a change.
- Distinctive: line 83
Do not introduce fixed qubit caps, fixed control arities, or source-framework imports unless they are genuinely unavoidable and documented.
- Very specific: line 85
Prefer native CUDA-Q gates (r1.ctrl, x.ctrl, swap.ctrl, etc.) over transpiling through the source framework.
- Distinctive: line 87
Keep bit-order conversion at the port boundary: allocation order, measurement return list, or final count-key formatting.
- Distinctive: line 96
Read references/porting-reference.md when you need any of the following:
- Distinctive: line 123
Use this format when diagnosing failures:
- Distinctive: line 145
Solution: Use CUDA-Q control-list patterns for arbitrary arity.
- Distinctive: line 149
Solution: Verify the connector/resource list, retry transient failures once, then fall back to local docs/source or official CUDA-Q docs.
- Very specific: line 156
Solution: Check cudaq.__version__, then review relevant documentation or source changes between the installed version and latest before …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CUDA-Q Importing
Purpose
Use this skill to port quantum circuits from another framework into CUDA-Q Python kernels. This includes Qiskit code and Qiskit-style circuit construction, as well as other framework-driven circuit builders. The goal is a framework-free CUDA-Q port that preserves the source quantum algorithm, matches source behavior at small test sizes, and documents any unavoidable CUDA-Q limitations.
For authoring new CUDA-Q kernels from scratch, and for CUDA-Q installation,
simulation targets, QPU access, and parallelization, use the cudaq-guide
skill (/cudaq-guide author for kernel authoring).
Prerequisites
- Python 3.10+.
- CUDA-Q installed in the target environment. Check the runtime with:
python -c "import cudaq; print(getattr(cudaq, '__version__', 'unknown'))". - Access to the source implementation and a way to run or inspect its expected behavior.
- To validate against the source framework (e.g. Qiskit/Aer), it must be installed in the validation environment only. The final CUDA-Q port itself must not require the source framework.
- When using CUDA-Q documentation or repository MCP connectors, verify the connector is available before relying on it; otherwise use local docs or the source tree.
- When debugging and the installed CUDA-Q version differs from the latest documentation, review relevant documentation or source changes before treating a behavior difference as a porting bug.
Workflow
- Read the source circuit construction and identify the exact algorithm, qubit/register layout, measurement behavior, and any framework helpers.
- Preserve the high-level quantum algorithm. Do not replace mid-circuit measurement, QPE structure, oracle definitions, or decomposition strategy without explicit user permission.
- Select the CUDA-Q execution pattern:
- Use
cudaq.samplefor final-measurement sampling. - Use
cudaq.runwhen mid-circuit measurement values must be returned or used per shot. - Use runtime-argument kernels instead of generated per-size kernels unless CUDA-Q requires a fixed-length return shape.
- Use
- Translate gates and subcircuits. For detailed gate mappings, ordering rules, precision guidance, and helper-extraction patterns, read references/porting-reference.md.
- Remove runtime source-framework dependencies from the CUDA-Q port. Extract pure helpers into framework-free modules.
- Validate with small deterministic inputs before scaling. Compare raw count keys and distributions, not just aggregate fidelity.
- Re-run any previously failing configurations after every fix.
Core Rules
- Keep the source algorithm intact unless the user approves a change.
- Do not introduce fixed qubit caps, fixed control arities, or source-framework imports unless they are genuinely unavoidable and documented.
- Prefer native CUDA-Q gates (
r1.ctrl,x.ctrl,swap.ctrl, etc.) over transpiling through the source framework. - Keep bit-order conversion at the port boundary: allocation order, measurement return list, or final count-key formatting.
- Match floating-point precision when comparing CUDA-Q and source results if fidelity differences matter (CUDA-Q defaults to fp32, Qiskit to fp64).
- Accept source flags that become no-ops in CUDA-Q when doing so preserves source-compatible behavior.
When to Read the Reference
Read references/porting-reference.md when you need any of the following:
- Qiskit-to-CUDA-Q gate translation table.
- Bit-ordering and count-key conventions.
- CUDA-Q fp32 vs Qiskit fp64 precision implications.
- Pure-Python helper extraction and import-blocker validation.
- Recursive-constructor emitters or gate-recorder patterns.
- Detailed port validation checklist and external CUDA-Q references.
Limitations
- Guidance targets CUDA-Q 0.14/0.15 decorator-mode Python APIs. Re-check behavior against the installed CUDA-Q version for version-sensitive features.
- Some CUDA-Q kernel-language constructs are constrained compared with normal
Python; use the companion
cudaq-guideskill (/cudaq-guide author) for core CUDA-Q authoring constraints and shared kernel patterns. - CUDA-Q and source frameworks differ in default precision and count-key display order. Apparent fidelity or bitstring mismatches may be convention differences.
- Hardware-target behavior, available backends, and target options depend on the local CUDA-Q installation.
- This skill does not guarantee equivalent performance; it focuses on correctness-preserving ports.
Troubleshooting
Use this format when diagnosing failures:
- Error:
ModuleNotFoundError: qiskit(or another source framework) from a CUDA-Q path. Cause: The port still imports the source framework. Solution: Move pure helpers into a framework-free module and verify with the import-blocker pattern in the reference. - Error: Fidelity looks plausible but raw keys are reversed. Cause: The source framework and CUDA-Q count-key ordering differ. Solution: Fix allocation, return-list order, or formatting at the port boundary. Do not alter the algorithm.
- Error: Deep-circuit fidelity differs between frameworks. Cause: CUDA-Q and the source framework may be using different floating-point precision. Solution: Match precision before comparing, then rerun the smallest failing deterministic case.
- Error: A multi-controlled operation works for small controls but fails or silently changes behavior at higher arity. Cause: The port used a fixed-arity dispatcher. Solution: Use CUDA-Q control-list patterns for arbitrary arity.
- Error: MCP documentation or repository lookup fails. Cause: Connector unavailable, stale, or transiently failing. Solution: Verify the connector/resource list, retry transient failures once, then fall back to local docs/source or official CUDA-Q docs. Do not change the port based on unverified MCP results.
- Error: CUDA-Q behavior conflicts with documentation while debugging.
Cause: The installed CUDA-Q version may differ from the latest
documentation.
Solution: Check
cudaq.__version__, then review relevant documentation or source changes between the installed version and latest before changing the port.
References
- Detailed porting reference
- Companion skill:
cudaq-guide(/cudaq-guide author) for CUDA-Q authoring patterns, kernel-language constraints, execution APIs, and debugging workflow.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

