cuequivariance
БесплатноЗапускает вложенные скриптыНе проверенUse when defining cuEquivariance groups and irreps, building equivariant tensor products, or validating segmented polynomials with NumPy.
от nvidia395 установок в других каталогахОб этом скилле
cuequivariance: Groups, Irreps, and Segmented Polynomials
Purpose
cuequivariance (imported as cue) provides two core abstractions:
- Group theory:
Irrepsubclasses define irreducible representations of Lie groups (SO3, O3, SU2, or custom).Irrepsmanages collections with multiplicities. - Segmented polynomials:
SegmentedTensorProductdescribes tensor contractions over segments of varying shape, linked byPathobjects carrying Clebsch-Gordan coefficients.SegmentedPolynomialwraps multiple STPs into a polynomial with named inputs/outputs. Two higher-level wrappers attach group representations:EquivariantPolynomial— dense operands withIrrepsAndLayoutmetadataIrDictPolynomial— operands already split by irrep, with per-groupIrrepsmetadata for thedict[Irrep, Array]workflow
Inputs
Required inputs: requested operation, group, input irreps and multiplicities, output irrep types, layout, batch shapes, dtype, and weight ownership. Take explicit user requirements first, then existing project definitions; state defaults for unspecified values. Derive operand sizes and output block order from the descriptor. For custom groups, also establish the selection rules, generators, and Clebsch-Gordan coefficients. Optional inputs include test rotations and a framework backend.
Prerequisites
Use Python 3.10+ with cuequivariance and its NumPy, SciPy, opt_einsum, SymPy, and NetworkX dependencies. Reuse the project's interpreter and lockfile. If setup is needed outside an existing project, the bundled CPU requirements pin the source revision used by these examples; install them with that interpreter's pip. Core NumPy execution requires no GPU stack or API credentials. Check the installed version and API availability before using IrDictPolynomial with an older package.
Instructions
- Check the installed version and requested backend. Install
cuequivariancefor CPU NumPy work; JAX and PyTorch execution use the separatecuequivariance-jaxandcuequivariance-torchskills. Inspect available APIs before using newer features such asIrDictPolynomialin an older environment. - Establish the group, input irreps, multiplicities, layout, and batch shapes before building a descriptor. Preserve the descriptor's actual output block order; a regrouped irrep summary does not reorder its output array.
- Prefer a built-in descriptor. For a custom group, validate parsing, group relations, selection rules, and Clebsch-Gordan covariance on CPU first. Complex mathematical representations do not imply complex CUDA support.
- Execute a small deterministic NumPy example and check shapes and equivariance.
IrDictPolynomialcarries metadata; execute its.polynomialwith operands split according to.input_irrepsand.output_irreps, including weights first when present. - Convert
mul_irandir_mulby transposing the multiplicity and representation axes within each irrep block. A flat reshape alone changes the represented features.
Source paths below are relative to the cuequivariance/ project inside a source checkout. When using this skill separately, inspect the installed package with cue.__file__ or consult https://github.com/NVIDIA/cuEquivariance. The repository is not required for the examples.
Limitations
- Core descriptors and NumPy evaluation do not provide JAX or PyTorch execution kernels; use the corresponding frontend for framework execution and gradients.
- Custom-group mathematics must be checked independently. A valid complex representation does not establish support in a particular CUDA kernel.
IrDictPolynomialdescribes split operands; it does not convert high-level dictionaries into the ordered arrays accepted by its underlying polynomial. Preserve the descriptor's metadata and layout when assembling those arrays.
Troubleshooting
| Symptom | Check and correction |
|---|---|
| Import fails or an API is absent | Check the interpreter, installed version, and module location. Use the project's compatible dependencies or the bundled requirements when setting up a standalone environment. |
| Operand size or output shape is wrong | Compare each array with the descriptor's input/output dimensions; include the weights operand first when present. |
| Values disagree after a layout conversion | Transpose multiplicity and representation axes within each irrep block before flattening; keep output data in the descriptor's block order. |
| Custom-group equivariance fails | Check selection rules, generator relations, and CG covariance on a small NumPy example before changing execution backends. |
Examples
The examples below cover custom groups, descriptors, layouts, and NumPy execution. Some snippets extend variables from the preceding snippet; the final complete example can be run independently.
Defining a custom group
Subclass cue.Irrep (a frozen dataclass) and implement:
from __
Установить cuequivariance в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cuequivariance?
Use when defining cuEquivariance groups and irreps, building equivariant tensor products, or validating segmented polynomials with NumPy.
Как установить скилл cuequivariance?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cuequivariance запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic