cudaq-importing
Use when porting circuits from another framework (e.g.
Skill by CUDA-Q Team <cuda-quantum@nvidia.com>
Chalk Labs
Need help deploying cudaq-importing?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/nvidia-cudaq-importing
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: refactoring
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/cudaq-importing
What's inside
- Skill name
cudaq-importing- Description
- Use when porting circuits from another framework (e.g. Qiskit) into CUDA-Q kernels while preserving the source algorithm and validation fidelity.
- License
- Apache-2.0
- Compatibility
- Python 3.10+
- Metadata
- author: CUDA-Q Team <cuda-quantum@nvidia.com> · domain: quantum · short-description: Port circuits from other frameworks into CUDA-Q
- Instructions
- 140 lines in SKILL.md · view on GitHub
Files (6)
- BENCHMARK.md
- SKILL.md
- evals.json · evals/
- porting-reference.md · references/
- skill-card.md
- skill.oms.sig
SKILL.md (first lines)
# 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
1. Read the source circuit construction and identify the exact algorithm,
qubit/register layout, measurement behavior, and any framework helpers.
2. Preserve the high-level quantum algorithm. Do not replace mid-circuit
measurement, QPE structure, oracle definitions, or decomposition strategy
without explicit user permission.
3. Select the CUDA-Q execution pattern:
- Use `cudaq.sample` for final-measurement sampling.
- Use `cudaq.run` when 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.
4. Translate gates and subcircuits. For detailed gate mappings, ordering rules,
precision guidance, and helper-extraction patterns, read
[references/porting-reference.md](references/porting-reference.md).
5. Remove runtime source-framework dependencies from the CUDA-Q port. Extract
pure helpers into framework-free modules.
6. Validate with small deterministic inputs before scaling. Compare raw count
keys and distributions, not just aggregate fidelity.
7. 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](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-guide` skill (`/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.From NVIDIA/skills, Apache-2.0.
More from NVIDIA/skills
- 0.846score
nemo-fabric-integrate
NVIDIA Corporation and Affiliates
Use this skill when integrating NVIDIA NeMo Fabric into a consumer application, service, evaluation harness, or platform through the typed Python SDK —…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
jetson-video-pipeline
Vinit Bansal <vinitkumarb@nvidia.com>
Use when planning, executing, and independently validating Jetson Video Codec SDK or PyNvVideoCodec encode/decode, transcode, segmentation, container decode…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nvflare-convert-pytorch
NVIDIA FLARE Team <federatedlearning@nvidia.com>
Convert existing plain or manual PyTorch training code into an NVFLARE federated job using Client API model exchange, local validation, and job export; use…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nemo-relay-get-started
NVIDIA Corporation and Affiliates
Use this skill when first-time NeMo Relay users want help selecting and following an appropriate quick-start guide or verifying their first working integration.
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
jetson-video-recipe
Vinit Bansal <vinitkumarb@nvidia.com>
Use when turning a Jetson encoder use case into one surface-neutral recipe with native Video Codec SDK and PyNvVideoCodec projections.
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nvidia-broadcast
NVIDIA Broadcast Team <broadcast-skills-dev@nvidia.com>
Use when controlling NVIDIA Broadcast through MCP to apply effects, process local media, select devices, or change camera resolution, or when Broadcast is…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
jetson-video-setup
Vinit Bansal <vinitkumarb@nvidia.com>
Use when installing, repairing, reusing, inspecting, or verifying readiness of the native NVIDIA Video Codec SDK or PyNvVideoCodec on Jetson, including the…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nvflare-diagnose-job
NVIDIA FLARE Team <federatedlearning@nvidia.com>
Use when the user asks why a reported NVFLARE job failure signal occurred: the job failed, stalled, timed out, lost clients, ended with EXECUTION_EXCEPTION…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nvflare-convert-lightning
NVIDIA FLARE Team <federatedlearning@nvidia.com>
Convert existing PyTorch Lightning training code into an NVFLARE federated job using the Lightning Client API patch, local validation, and job export; use…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nemo-relay-install
NVIDIA Corporation and Affiliates
Use this skill when choosing or running NeMo Relay installation for an agent runtime, application language, framework integration, or plugin bundle, or…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nvflare-fed-stats
NVIDIA FLARE Team <federatedlearning@nvidia.com>
Compute federated statistics over tabular data (count, sum, mean, stddev, var, histogram, quantile, noise-protected min/max) and image data (count…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
jetson-video-capability
Vinit Bansal <vinitkumarb@nvidia.com>
Use when Jetson codec, profile, chroma, bit-depth, dimension, engine-count, or operational support must be reconciled from live APIs, authenticated NVIDIA…
SkillAFreshness: A★ 3.7KClaude Code +9
Signals
- Stars
- 3,718
- Forks
- 457
- Open issues
- 8
- Last commit (this folder)
- Sep 12, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/NVIDIA/skills
- Website
- docs.nvidia.com/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from CUDA-Q Team <cuda-quantum@nvidia.com>
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get cudaq-importing running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
cudaq-importing skill. Agent Mart. https://agentmart.dev/skills/nvidia-cudaq-importing (last updated 2026-10-24)