Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cudaq-algorithms

БесплатноЗапускает вложенные скриптыНе проверен

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

NVIDIAот NVIDIA★ 4 269 звёзд на GitHub

Об этом скилле

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 exa

Полный SKILL.md на GitHub

Установить cudaq-algorithms в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

BENCHMARK.mdevals/EVAL.mdevals/config.ymlevals/evals.jsonevals/files/application_request.mdevals/files/example_change_request.mdevals/files/pauli_lcu_example.pyevals/files/pauli_lcu_public_source.pyevals/files/pauli_lcu_reference_example.pyreferences/application-composition.mdreferences/block-encoding/block-encoding.mdreferences/block-encoding/pauli-lcu.mdreferences/catalog.mdreferences/chemistry/chemistry-bridges.mdreferences/chemistry/chemistry-from-fcidump.mdreferences/chemistry/chemistry-from-psi4.mdreferences/chemistry/chemistry-from-pyscf.mdreferences/chemistry/chemistry-qubit-hamiltonian.mdreferences/chemistry/chemistry-spin-orbital-tensors.mdreferences/conventions.mdreferences/conventions/kernel-boundaries.mdreferences/conventions/numerical-comparison.mdreferences/conventions/ordering.mdreferences/conventions/resource-levels.mdreferences/conventions/spectral-processing.mdreferences/double-factorization/double-factorization-compressed.mdreferences/double-factorization/double-factorization-error.mdreferences/double-factorization/double-factorization-explicit.mdreferences/double-factorization/double-factorization-modified-one-body.mdreferences/double-factorization/double-factorization-one-norm.mdreferences/double-factorization/double-factorization-reconstruction.mdreferences/double-factorization/double-factorization.mdreferences/fermion-transforms/bravyi-kitaev.mdreferences/fermion-transforms/fermion-transforms.mdreferences/fermion-transforms/jordan-wigner.mdreferences/primitives/primitives-alias-sampling.mdreferences/primitives/primitives-arithmetic.mdreferences/primitives/primitives-qrom.mdreferences/primitives/primitives-unary-iteration.mdreferences/primitives/primitives.md

FAQ

Что делает скилл cudaq-algorithms?

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

Как установить скилл cudaq-algorithms?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cudaq-algorithms запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить cudaq-algorithms с