Skip to main content

Cudaq Algorithms

v0.2.0New

Install this skill

No account required. Pick your tool, then copy.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install skills-cudaq-algorithms

What this does: Use CUDA-Q Algorithms contracts: state_prep injection, QSP/QSVT, chemistry, dynamics and primitives. Excludes setup and standalone kernels.

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/skills-cudaq-algorithms/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

CUDA-Q Algorithms

When to use

Use when designing, implementing, debugging, reviewing, validating, or composing
cudaq_algorithms / CUDA-Q Algorithms APIs and fault-tolerant primitives, including
scientific requests expressed as molecular geometry/integrals to energies, lattice
Hamiltonians to dynamics, or prepared states to spectral and conditional observables.
Covers state preparation, Pauli/block encoding, qubitization, QSP/QSVT,
Suzuki-Trotter evolution, fermion transforms, chemistry, double factorization,
fault-tolerant circuit primitives (QROM, unary iteration, reversible arithmetic,
alias sampling), and statevector analysis. Not for CUDA-Q installation, backend setup, basic standalone
kernels such as Bell states, or unrelated quantum-computing questions.
For an excluded request, use the ordinary CUDA-Q workflow without loading this
skill's scientific references. A basic state used as an input to a packaged
algorithm remains in scope through that algorithm's contract.

Before implementation

Keep a short request-to-evidence checklist: requested results, constructed library
objects or preparations, input conventions/physical sector, and output interface.
Before finishing, associate each item with its implementation or answer location
and observed check. Compare the actual constructor settings with the declared
input conventions; a default argument must not silently replace them. Numerical
agreement does not replace an explicitly requested operation or preparation, even
when the remaining calculation is classical.

Route the in-scope task once. From the directory containing this SKILL.md,
run python3 scripts/route.py "<original request>", or pass the request on
standard input. Preserve preparation requirements, convention tags and output
fields. Read the whole output; do not pipe it through head. It carries the
exact calls, the executable little-endian dense reference for numerical tasks,
the selected contracts and checks, and a resolved fetch command for any section
it had to omit. Open more text only for an unresolved contract. --paths gives
navigation only; --full prints the complete selected guides.

Deliverable rules:

  • Library participation. When the request names CUDA-Q Algorithms or a
    library operation, every reported number must come from a library construction
    whose returned data enters the result. A dense or NumPy calculation is a check,
    never the deliverable, even when the remaining computation is classical; an
    unused object or an occupation list implements nothing. See
    task completion.
  • Ordering. q[0] is the least-significant bit in statevectors and
    SpinOperator.to_matrix(). Before trusting any dense Hamiltonian, operator or
    state reference, run the dense-operator self-test;
    norms, Hermiticity and agreement between two objects built with the same
    reversed ordering do not detect a reversal. For complex input to
    real-Hamiltonian QSVT recovery follow the
    reconstruction recipe.
  • Claims. Derive thresholds, selections and changes from the validated rows.
    State the threshold and its source for every sufficiency claim; without a
    supplied criterion, quantify the change and make sufficiency conditional.
    Print one CHECK line per independent comparison and claim only checks that
    ran; distinguish percentage points from percent; include the exact
    reproduction command for executed work. See
    completion.
  • Machine-readable results. When an output interface is requested, run the
    actual entrypoint once and validate the complete payload at that interface per
    output validation; a
    separate complete file does not validate an incomplete stdout result.

Work discipline:

  • Run the artifact once per change and keep its captured output as evidence;
    never rerun unchanged code to read its output again.
  • When implementation and reference disagree, make at most two repair rounds,
    then report the discrepancy with the evidence instead of iterating.
  • Use the named checkout paths; never search the whole filesystem or parent
    directories. Define kernels in a .py file, not a heredoc, and batch related
    shell steps into one call.

Prerequisites

A local CUDA-Q Algorithms checkout matching the task's target version is required
to verify API behavior against source and tests; establish its root before
following checkout-relative paths such as python/cudaq_algorithms/,
tests/python/, and docs/sphinx/examples/python/. This skill does not include
that source tree; without it, identify the missing evidence and label
version-dependent claims unverified. The routing script needs only Python 3 and
never imports the package; executing examples needs CUDA-Q Algorithms and the
selected workflow's dependencies.

Instructions

Start from the researcher's inputs and desired output; they need not name APIs,
repository files, or tests. Use the existing API contracts together with the
selected guide's Workflow and Verification sections. Lead the answer with
the scientific result or actionable conclusion, then give its evidence and material
limitations. Cite the records used, check consequential premises, and identify
unresolved inputs; do not turn every scientific result into a contract inventory.
For a contract audit, organize these as Record consulted, Premise check, Boundaries,
and Unknowns. A record sentence is source evidence, never an observed run.

Available scripts

ScriptInvocation and inputsOutput
route.pyFrom the skill directory: python3 scripts/route.py [--paths | --full] "<request>"; reads standard input when request arguments are omitted or empty. --help shows usage.Exact calls, the executable dense reference for numerical tasks, bounded relevant sections from the selected guides and records, source pointers, shared checkpoints and a resolved fetch command for each omitted section. --paths prints navigation only; --full prints complete selected guides. Standalone Bell/basic-kernel requests return a scope note; unmatched requests return the catalog entry point.

If your agent runtime supports run_script, use it to run scripts/route.py;
otherwise run it with python3 as shown. Reuse the emitted sections and follow
their focused source pointers; routing is a navigation aid, not a scientific
decision.

Use supplied data and derive the intermediate inputs the model determines, such as
integrals from geometry, basis, charge and spin. Ask only for missing choices that
change the scientific result or scope, resolve the version/source boundary of a
requested inventory from context first, never invent data or APIs, and proceed
when the available inputs resolve the task.

Use CUDA-Q Algorithms as a BLAS/LAPACK-like set of small scientific building
blocks: start with the requested operation and mathematical object, choose the
smallest matching contract, and compose through explicit representations,
signatures, capabilities and conventions. Links resolve relative to their
document; source and test paths are checkout-relative.

  • Known API or operation: use its focused record from the router (the
    catalog lists every path), then the named current
    source and tests. The record carries the contract, boundaries and provenance,
    the source carries behavior; an answer about a contract, capability boundary or
    dependency that cites no record is incomplete, and the checkout controls API
    behavior.
  • Unknown family: select the operation and mathematical object in the
    catalog, then open only the matching records.
  • Multi-step advice, implementation or repair: apply the emitted shared
    workflow checkpoints; advice alone does not
    authorize file changes.
  • Molecular energies or lattice dynamics without a named algorithm: start from
    the application composition
    sections selected by the router and choose the method from the requested
    output, accuracy and execution constraints; a default route does not mandate a
    circuit.
  • Contract or boundary question: check the applicable premise rows against the
    current source and cite the focused record; keyword overlap alone does not
    establish that a row applies, and an unsupported premise is never confirmed.

For an unresolved boundary, consult the relevant conventions,
composition or validation
section; source lookup gives shared paths.
Match signatures, representations, capabilities, register geometry,
normalization, ordering, signs, phases and execution layers. Fix an independent
oracle, precision and tolerance before judging agreement; report the evidence
actually gathered and label unexecuted code as such. Unsupported, absent and
unverified mean different things; roadmap-only APIs are unavailable.

Limitations

Installation, backend setup, and optimizer-driven NISQ workflows are outside the
scope of this skill; parameterized UCC construction remains an in-scope
state-preparation primitive. Dependencies, credentials, remote jobs, paid/shared
QPUs, publishing, and external contact require authorization covering those actions.

Before writing CUDA-Q kernels, read the
kernel boundaries.
Define kernels in a .py file run with python3 file.py; CUDA-Q cannot compile
kernels defined in a heredoc or -c string. Mint kernels and compute NumPy/host
data outside @cudaq.kernel; inside it allocate registers, apply gates, and call
captured kernels. Pass statevector input with state_from(ket) as a cudaq.State
argument; there is no cudaq.prepare_state. CUDA-Q statevectors are little-endian
(q[0] is the least-significant bit); the good subspace is the first
2**num_system amplitudes when the system register is allocated first.

For implementation requests, deliver a runnable script and the observed output when
execution is available; keep the requested artifact in the workspace. For predictions
or advice, supply the requested scientific result and sufficient evidence without
claiming circuit execution. Preserve user files. If inputs remain unavailable after
checking the named locations, identify what is missing and which work depends on it.

Examples

Starting routes, not substitutes for the source and verification checks:

RequestStarting guide
Check a PauliLCU block encoding against a dense matrixBlock encoding
Compute molecular energies from geometry and a basisChemistry and composition
Compare Suzuki-Trotter evolution with exact dynamicsTrotter
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
web-performance-auditorAI-powered web performance auditor for frontend and web developers. Use it to audit a website or web app, diagnose poor Core Web Vitals (LCP, CLS, INP) and low Lighthouse scores, review JavaScript bundle size, code splitting, lazy loading, image and font loading, hydration, React rendering, Next.js/Nuxt patterns, network waterfalls, third-party scripts, and caching. Produces a prioritized, senior-engineer performance audit with a score and concrete fixes.13 installsi4h-catheter-navigationOverview of `workflows/catheter_navigation/` (fluorosim DRR, XPBD physics, vasculature digital twin). Use when the user asks what the catheter navigation workflow is, what's supported, or where to start.0 installsmcore-linting-and-formattingLinting and formatting for Megatron-LM. Covers running autoformat.sh, tools (ruff, black, isort, pylint, mypy), and code style rules.0 installsomniverse-content-servicesOmniverse Content Services, also discoverable as Omniverse Content Workspace or USD Content Workspace. Use for USD content collaboration as well as content access. Guide USD workflows on existing infrastructure, USD content versioning, 3D creation pipelines, and data access across distributed and scale-out compute. Use for manufacturing, automotive, factory and digital-twin workflows, architecture and construction, media and 3D content, robotics, fleet simulation, and physical AI content delivery. Discover requirements and route to ovstorage, ovpackage, ovlive, usd-content-workspace, and usd-caches experts.0 installsdoca-rmaxDOCA Rivermax (doca_rmax) receive streams for timing-precise media over IP (SMPTE ST 2110 video / audio, market data, scientific feeds) on a target BlueField DPU (DOCA Rivermax apps run only there), once the Rivermax libraries and license are installed; getting them is doca-setup / doca-public-knowledge-map territory. Trigger on "ST 2110 receive isn't getting frames", "sub-microsecond jitter on my media receiver", "NOT_SUPPORTED from doca_rmax_init", "no recv events after stream start", or "license check failing on a media receiver", even without naming Rivermax. Covers doca_rmax_in_stream sessions, the SDK + license precondition check, doca_rmax_get_*_supported capability queries, pairing with doca-eth queues and doca-flow steering, and DOCA_ERROR_* from Rivermax calls. Refuse and route elsewhere for programming the underlying queue (doca-eth), steering rules (doca-flow), PTP / clock sync (doca-firefly), or best-effort packet I/O.0 installstao-train-segformerSegFormer for semantic segmentation. Lightweight transformer-based architecture with hierarchical feature extraction, efficient for real-time segmentation tasks. Use when training, evaluating, exporting, quantizing, or running inference for a TAO SegFormer model. Trigger phrases include "train SegFormer", "semantic segmentation", "lightweight transformer segmenter", "real-time semantic segmentation".0 installs

More from skills

View source →
nvidia-appNVIDIA App MCP: drivers, games, laptops, overlay. Check drivers, manage and optimize games, configure laptop features.3 installsnvidia-ontology-setupSet up or troubleshoot the Auto Ontology runtime. Use for Helm (the official install), Docker Compose, developer setup, and MCP connection to an existing deployment.1 installstao-run-automlRun container-backed AutoML / hyperparameter optimization (HPO) for NVIDIA TAO networks using AutoMLRunner. Handles algorithm selection (bayesian, hyperband, asha, bohb, llm, hybrid, autoresearch), WandB experiment tracking, job execution on any TAO SDK platform, result interpretation, and per-rec custom evaluation hooks. Use when the user mentions TAO AutoML, hyperparameter optimization, HPO, automl, automl_settings, AutoMLRunner, tao_automl, bayesian search, hyperband, ASHA, LLM-guided search, autoresearch, or wants to tune train/evaluate/inference/distill/prune/quantize for a TAO network. Model actions use the resolved image; venv training requires an explicit request. Platform-agnostic — runs on any SDK (Brev, SLURM, Kubernetes, Docker). Do not use generic "keep improving" language alone to override a matching domain-specific DEFT workflow; attribute-labelled CLIP / SigLIP image-retrieval loops belong to tao-run-deft-pas unless HPO is explicit.1 installsrunai-diagnose-failed-workloadUse to diagnose failed, crashed, stopped, OOMKilled, CrashLoopBackOff, ImagePullBackOff, init, mount, node, or policy-terminated Run:ai workloads. Investigate one workload's failure; use other skills for workload health summaries, cluster health, scheduling-only Pending, or inference latency without a confirmed failure.1 installscdf-event-video-generationRun the CDF Orchestration Event Video Generation DAG on Kubernetes or OSMO - image-to-video anomaly generation, auto-labeling, and anomaly dataset generation. Select for requests about event video generation, anomaly video generation, image-to-video synthesis, Cosmos3 image2video, anomaly dataset creation, safety/surveillance SDG, or generating person-falling, person-climbing, person-running, fighting, smoking/vaping, fire/smoke, or shoplifting video clips from a seed image. Covers both event_video_generation_dag_k8s and the external-endpoints-only event_video_generation_dag_osmo. Runs environment setup first when controller readiness is unknown. Not for person-crop clothing/attribute augmentation (that is cdf-image-attribute-augmentation) and not for video style transfer.1 installsnvidia-skill-finderUse for NVIDIA-related requests where an NVIDIA skill might help, even if the user did not ask for a skill. Trigger on NVIDIA products, hardware, software, SDKs, GPUs, Jetson/JetPack/L4T/BSP/SDK Manager/driver/flashing/setup, CUDA, NIM, NeMo, Omniverse/OpenUSD/SimReady, Isaac, RAPIDS/cuDF, cuPyNumeric, cuOpt, Dynamo, Holoscan, TensorRT, DeepStream, VSS, TAO, NGC/NVCF. Do not use for generic non-NVIDIA route, optimize, deploy, AI, video, data, or infrastructure tasks.1 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.653 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.553 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.365 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.265 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.185 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions149 installs

Frequently asked questions about cudaq-algorithms

What does the cudaq-algorithms skill do?

Use CUDA-Q Algorithms contracts: state_prep injection, QSP/QSVT, chemistry, dynamics and primitives. Excludes setup and standalone kernels. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the cudaq-algorithms skill?

Run `npx @skills-hub-ai/cli install skills-cudaq-algorithms` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/skills-cudaq-algorithms/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does cudaq-algorithms work with?

cudaq-algorithms runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the cudaq-algorithms skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use cudaq-algorithms after installing it?

In Claude Code, type `/skills-cudaq-algorithms` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the cudaq-algorithms skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.