cudaq-importing

cudaq-importing is a skill for Claude Code, Codex from NVIDIA/cuda-quantum. It costs 34 tokens per session (1,616 once invoked), scanned A, original, Apache-2.0.

A procedure for converting quantum circuits from another framework, such as Qiskit, into CUDA-Q Python kernels while checking that their behavior is preserved.

In plain words
What is it for?
Use it to port and validate small quantum circuits, record differences, and handle limitations in CUDA-Q.
Why use it?
It helps avoid changing the quantum algorithm during the port and keeps the final code independent of the original framework.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Use it to port and validate small quantum circuits, record differences, and handle limitations in CUDA-Q.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nvidia/cuda-quantum/cudaq-importing
About the project

CUDA-Q is a programming platform for hybrid quantum-classical systems that combines quantum processing units with GPUs and CPUs. Developers and researchers use its C++ and Python tools, compiler, runtime, and hardware backends to build and test quantum applications. The catalogue skills support development with CUDA-Q.

NVIDIA/cuda-quantum · 1,129 stars · on GitHub · nvidia.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add NVIDIA/cuda-quantum --skill cudaq-importing
Clone the repo
git clone --depth 1 https://github.com/NVIDIA/cuda-quantum

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cudaq-importing

README.md
[![agentmods](https://agentmods.dev/badge/skills/nvidia/cuda-quantum/cudaq-importing/github.svg)](https://agentmods.dev/skills/nvidia/cuda-quantum/cudaq-importing)
Your own site
<a href="https://agentmods.dev/skills/nvidia/cuda-quantum/cudaq-importing"><img src="https://agentmods.dev/badge/skills/nvidia/cuda-quantum/cudaq-importing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cudaq-importing

Your own site · 80×15
<a href="https://agentmods.dev/skills/nvidia/cuda-quantum/cudaq-importing"><img src="https://agentmods.dev/badge/skills/nvidia/cuda-quantum/cudaq-importing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,616 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.01616
Opus 5 $0.00017 $0.00808
Sonnet 5 $0.00007 $0.00323
Haiku 4.5 $0.00003 $0.00162

Measured today against content hash b1993b02b3d0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

cudaq-importing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cudaq-importing/SKILL.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.
  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.

Read the full file on GitHub · 165 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 165 lines · 34 tokens per session scan A b1993b02b3d0

Subscribe to this mod's changes

cudaq-importing is a skill published in the GitHub repository NVIDIA/cuda-quantum (1,129 stars, last pushed today), licensed Apache-2.0. It adds 34 tokens to every session and 1,616 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-11.

Related

Other skills, from other repositories