qiskit-to-cudaq

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

Guidance for translating quantum circuits written with Qiskit, a Python framework for quantum computing, into CUDA-Q Python kernels. It aims to keep the original algorithm and check the translated results against the source implementation.

In plain words
What is it for?
Use it to inspect Qiskit circuit construction, create the equivalent CUDA-Q kernel, document limitations, and validate results at small test sizes with Qiskit or Aer when available.
Why use it?
It helps when moving a quantum program between these two frameworks while preserving its behavior. It also highlights version differences and checks that the final CUDA-Q code does not depend on Qiskit.

Skill for Claude CodeCodex ✓ vendor

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

Good fit Use it to inspect Qiskit circuit construction, create the equivalent CUDA-Q kernel, document limitations, and validate results at small test sizes with Qiskit or Aer when available.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nvidia/cuda-quantum/qiskit-to-cudaq
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,126 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 qiskit-to-cudaq
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 qiskit-to-cudaq

README.md
[![agentmods](https://agentmods.dev/badge/skills/nvidia/cuda-quantum/qiskit-to-cudaq/github.svg)](https://agentmods.dev/skills/nvidia/cuda-quantum/qiskit-to-cudaq)
Your own site
<a href="https://agentmods.dev/skills/nvidia/cuda-quantum/qiskit-to-cudaq"><img src="https://agentmods.dev/badge/skills/nvidia/cuda-quantum/qiskit-to-cudaq/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 qiskit-to-cudaq

Your own site · 80×15
<a href="https://agentmods.dev/skills/nvidia/cuda-quantum/qiskit-to-cudaq"><img src="https://agentmods.dev/badge/skills/nvidia/cuda-quantum/qiskit-to-cudaq.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,510 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00028 $0.01510
Opus 5 $0.00014 $0.00755
Sonnet 5 $0.00006 $0.00302
Haiku 4.5 $0.00003 $0.00151

Measured 9d ago against content hash 21e2cfce3e34, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

qiskit-to-cudaq 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 9d ago.

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/qiskit-to-cudaq/SKILL.md · 155 lines

How it starts

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

Qiskit to CUDA-Q

Purpose

Use this skill to port Qiskit Python code, or code with Qiskit-style circuit construction, to CUDA-Q Python kernels. 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.

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.
  • For validation against Qiskit, Qiskit/Aer must be installed in the validation environment. The final CUDA-Q port itself must not require Qiskit.
  • 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 · 155 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. 9d ago First seen · 155 lines · 28 tokens per session scan A 21e2cfce3e34

Subscribe to this mod's changes

qiskit-to-cudaq is a skill published in the GitHub repository NVIDIA/cuda-quantum (1,126 stars, last pushed today), licensed Apache-2.0. It adds 28 tokens to every session and 1,510 once invoked, about $0.0001 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-08-30.

Related

Other skills, from other repositories